[MacViews] Implement colored window frames.
commit2ebfcc03fc85c4578008cfed368097950f9d6348
authorjackhou <jackhou@chromium.org>
Fri, 15 May 2015 00:51:10 +0000 (14 17:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 15 May 2015 00:51:49 +0000 (15 00:51 +0000)
tree919be2d7070e61d20d7ec3ae42f7160d210ecbb7
parentafc451774403bb76323d40020dcb48ffd0306461
[MacViews] Implement colored window frames.

This works the same way as NativeAppWindowCocoa by inserting a colored
NSView into the window's contentView's superview.

This also adds a test that checks for correct frame colors when active and
inactive.

BUG=459877

Review URL: https://codereview.chromium.org/1053303003

Cr-Commit-Position: refs/heads/master@{#329999}
19 files changed:
chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm
chrome/browser/ui/cocoa/apps/titlebar_background_view.h [new file with mode: 0644]
chrome/browser/ui/cocoa/apps/titlebar_background_view.mm [new file with mode: 0644]
chrome/browser/ui/test/scoped_fake_nswindow_main_status.h [new file with mode: 0644]
chrome/browser/ui/test/scoped_fake_nswindow_main_status.mm [new file with mode: 0644]
chrome/browser/ui/views/apps/app_window_native_widget_mac.h
chrome/browser/ui/views/apps/app_window_native_widget_mac.mm
chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
chrome/browser/ui/views/apps/chrome_native_app_window_views.h
chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h
chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h
chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
chrome/browser/ui/views/apps/shaped_app_window_targeter_unittest.cc
chrome/chrome_browser_ui.gypi
chrome/chrome_tests.gypi