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

Issue 210363004: Linux: App windows with frame: chrome and no color are now native. (Closed)

Created:
6 years, 9 months ago by Matt Giuca
Modified:
6 years, 9 months ago
Reviewers:
benwells
CC:
chromium-reviews, tfarina, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Linux: App windows with frame: chrome and no color are now native. This is bringing Aura in line with the existing GTK behaviour. Windows with a coloured frame still have the Windows 8 look. App windows on Linux now always use AppWindowFrameView instead of the blue CustomFrameView. BUG=322256 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260176

Patch Set 1 #

Patch Set 2 : Renamed has_frame to draw_frame. #

Patch Set 3 : Remove ShouldUseNativeFrame and inline it. #

Patch Set 4 : Removed window_ field from AppWindowFrameView. #

Total comments: 3

Patch Set 5 : Removed has_frame argument from CreateAppWindowFrameView and moved its logic into that function. #

Patch Set 6 : Don't restrict draggable region to draw_frame_. This is no longer sensible (even though it doesn't … #

Total comments: 1

Patch Set 7 : Built in the infrastructure to fix window border bounds issue (dependent on fix to DesktopWindowTre… #

Total comments: 2

Patch Set 8 : Don't need not IsFrameless(); that is implied by has_frame_color_. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -44 lines) Patch
M apps/app_window_browsertest.cc View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M apps/ui/views/app_window_frame_view.h View 1 2 3 3 chunks +11 lines, -5 lines 0 comments Download
M apps/ui/views/app_window_frame_view.cc View 1 2 3 4 5 6 11 chunks +30 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Matt Giuca
Hi Ben, Doing a weird thing and sending you a CL I don't think is ...
6 years, 9 months ago (2014-03-25 08:13:35 UTC) #1
Matt Giuca
Sorry this took awhile. I got bogged down with draggable regions and a bit more ...
6 years, 9 months ago (2014-03-27 06:39:38 UTC) #2
benwells
lgtm if you remove the if (!has_frame) and make it if (draggable_region_ https://codereview.chromium.org/210363004/diff/100001/apps/ui/views/app_window_frame_view.cc File apps/ui/views/app_window_frame_view.cc ...
6 years, 9 months ago (2014-03-27 08:53:45 UTC) #3
Matt Giuca
Thanks for your late night review! https://codereview.chromium.org/210363004/diff/100001/apps/ui/views/app_window_frame_view.cc File apps/ui/views/app_window_frame_view.cc (right): https://codereview.chromium.org/210363004/diff/100001/apps/ui/views/app_window_frame_view.cc#newcode196 apps/ui/views/app_window_frame_view.cc:196: if (!draw_frame_) { ...
6 years, 9 months ago (2014-03-27 09:16:27 UTC) #4
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 9 months ago (2014-03-27 09:21:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/210363004/120001
6 years, 9 months ago (2014-03-27 09:21:44 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 10:44:27 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-27 10:44:27 UTC) #8
Matt Giuca
Oh no, looks like this is regressing Thanh-Mai's bug (http://crbug.com/346115) and I will need to ...
6 years, 9 months ago (2014-03-27 11:26:59 UTC) #9
benwells
slgtm with one optional nit type thing. https://codereview.chromium.org/210363004/diff/140001/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc File chrome/browser/ui/views/apps/chrome_native_app_window_views.cc (right): https://codereview.chromium.org/210363004/diff/140001/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc#newcode361 chrome/browser/ui/views/apps/chrome_native_app_window_views.cc:361: !IsFrameless() && ...
6 years, 9 months ago (2014-03-28 10:36:31 UTC) #10
Matt Giuca
https://codereview.chromium.org/210363004/diff/140001/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc File chrome/browser/ui/views/apps/chrome_native_app_window_views.cc (right): https://codereview.chromium.org/210363004/diff/140001/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc#newcode361 chrome/browser/ui/views/apps/chrome_native_app_window_views.cc:361: !IsFrameless() && has_frame_color_, On 2014/03/28 10:36:31, benwells wrote: > ...
6 years, 9 months ago (2014-03-28 10:39:51 UTC) #11
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 9 months ago (2014-03-28 10:41:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/210363004/160001
6 years, 9 months ago (2014-03-28 10:42:34 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 12:15:41 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=290256
6 years, 9 months ago (2014-03-28 12:15:41 UTC) #15
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 9 months ago (2014-03-28 12:48:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/210363004/160001
6 years, 9 months ago (2014-03-28 12:49:33 UTC) #17
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 17:06:49 UTC) #18
Message was sent while issue was closed.
Change committed as 260176

Powered by Google App Engine
This is Rietveld 408576698