Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Issue 1053303003: [MacViews] Implement colored window frames. (Closed)

Created:
5 years, 8 months ago by jackhou1
Modified:
5 years, 7 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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 Committed: https://crrev.com/2ebfcc03fc85c4578008cfed368097950f9d6348 Cr-Commit-Position: refs/heads/master@{#329999}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Sync and rebase #

Patch Set 3 : Address comments. #

Patch Set 4 : Missed a few things. #

Total comments: 18

Patch Set 5 : Address comments. #

Patch Set 6 : Fix compile on Aura. #

Total comments: 6

Patch Set 7 : Fix unit tests. #

Patch Set 8 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -126 lines) Patch
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm View 1 2 3 4 5 chunks +4 lines, -39 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm View 1 2 5 chunks +4 lines, -61 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm View 1 2 3 4 5 6 7 2 chunks +37 lines, -3 lines 0 comments Download
A chrome/browser/ui/cocoa/apps/titlebar_background_view.h View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/apps/titlebar_background_view.mm View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/ui/test/scoped_fake_nswindow_main_status.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/ui/test/scoped_fake_nswindow_main_status.mm View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/app_window_native_widget_mac.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_window_native_widget_mac.mm View 1 2 3 4 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/shaped_app_window_targeter_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
jackhou1
tapted, what do you think? https://codereview.chromium.org/1053303003/diff/1/ui/gfx/mac/nswindow_frame_controls.h File ui/gfx/mac/nswindow_frame_controls.h (right): https://codereview.chromium.org/1053303003/diff/1/ui/gfx/mac/nswindow_frame_controls.h#newcode40 ui/gfx/mac/nswindow_frame_controls.h:40: GFX_EXPORT void AddColoredTitlebarToNSWindow( Should ...
5 years, 8 months ago (2015-04-24 07:05:03 UTC) #2
tapted
Don't forget a brief summary in the description too https://codereview.chromium.org/1053303003/diff/1/ui/gfx/mac/nswindow_frame_controls.h File ui/gfx/mac/nswindow_frame_controls.h (right): https://codereview.chromium.org/1053303003/diff/1/ui/gfx/mac/nswindow_frame_controls.h#newcode40 ui/gfx/mac/nswindow_frame_controls.h:40: ...
5 years, 7 months ago (2015-05-06 02:58:29 UTC) #3
tapted
some comments on the test (The CL description should say you're adding a test too, ...
5 years, 7 months ago (2015-05-06 03:15:42 UTC) #4
jackhou1
https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm File chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm (right): https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm#newcode5 chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm:5: // This file tests whichever implementation of NativeAppWindow is ...
5 years, 7 months ago (2015-05-12 05:39:05 UTC) #5
tapted
https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm File chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm (right): https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm#newcode49 chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm:49: EXPECT_EQ([blueColor blueComponent], [color blueComponent]); On 2015/05/12 05:39:05, jackhou1 wrote: ...
5 years, 7 months ago (2015-05-12 06:15:44 UTC) #6
jackhou1
https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm File chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm (right): https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm#newcode49 chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm:49: EXPECT_EQ([blueColor blueComponent], [color blueComponent]); On 2015/05/12 06:15:43, tapted wrote: ...
5 years, 7 months ago (2015-05-14 02:59:14 UTC) #7
tapted
https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm File chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm (right): https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm#newcode49 chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm:49: EXPECT_EQ([blueColor blueComponent], [color blueComponent]); On 2015/05/14 02:59:13, jackhou1 wrote: ...
5 years, 7 months ago (2015-05-14 04:23:51 UTC) #8
jackhou1
https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm File chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm (right): https://codereview.chromium.org/1053303003/diff/1/chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm#newcode49 chrome/browser/ui/cocoa/apps/native_app_window_cocoa_interactive_uitest.mm:49: EXPECT_EQ([blueColor blueComponent], [color blueComponent]); On 2015/05/14 04:23:50, tapted wrote: ...
5 years, 7 months ago (2015-05-14 06:20:41 UTC) #9
tapted
sweet! lgtm
5 years, 7 months ago (2015-05-14 06:32:12 UTC) #10
jackhou1
sky, please review for OWNERS in: chrome/browser/ui/test/
5 years, 7 months ago (2015-05-14 06:45:24 UTC) #12
sky
LGTM
5 years, 7 months ago (2015-05-14 15:51:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053303003/130001
5 years, 7 months ago (2015-05-15 00:42:43 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 7 months ago (2015-05-15 00:51:19 UTC) #16
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 00:52:35 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2ebfcc03fc85c4578008cfed368097950f9d6348
Cr-Commit-Position: refs/heads/master@{#329999}

Powered by Google App Engine
This is Rietveld 408576698