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

Issue 111723012: Linux Aura: Added --use-system-title-bar flag. (Closed)

Created:
7 years ago by Matt Giuca
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tfarina, ben+views_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Linux Aura: Added --use-system-title-bar flag. This flag makes browser windows use the system window dressing and title bar, instead of the custom frame. This is a Linux Aura equivalent of the "Use System Title Bar and Border" preference in Linux GTK. (Eventually, this part will be controlled by the same preference, rather than this flag.) With this flag, browser windows use the native system window decoration, with our custom close/minimize/maximize buttons removed, and the tab strip being condensed vertically with square corners (like the maximized tab strip). Popup browser windows (including V1 apps and the Developer Tools window) drop the blue custom frame altogether in favour of the native frame. BUG=317859 TEST=With --use-system-title-bar, open a browser window. Both maximized and restored windows should have a system native title bar, and the tab strip should be compacted into a single row (as when maximized). TEST=With --use-system-title-bar, open a hosted app window. It should have a system native title bar, with no second blue title bar. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245433 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246244

Patch Set 1 #

Patch Set 2 : Revert some unneeded changes in DesktopRootWindowHostX11. #

Patch Set 3 : Fixed Chrome app and developer tools windows. #

Patch Set 4 : Blank line. #

Patch Set 5 : Only obey --use-system-title-bar on Linux. #

Patch Set 6 : Formatting. #

Total comments: 7

Patch Set 7 : Rebase. #

Patch Set 8 : Fixing jamescook nits. #

Total comments: 3

Patch Set 9 : Rebase. #

Patch Set 10 : Clarify comment (suggested by jamescook). #

Patch Set 11 : Rebase. #

Patch Set 12 : Revert changes relating to app windows. Will deal with this in another CL. #

Patch Set 13 : Fix spelling mistake. #

Patch Set 14 : Set remove_standard_frame = true for dialogs on Linux. #

Patch Set 15 : Rebase. #

Patch Set 16 : Fixed DesktopScreenX11Test (remove standard frame; otherwise widget dimensions exclude the standard… #

Patch Set 17 : Rebase. #

Patch Set 18 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -31 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +37 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Matt Giuca
Hi reviewers. This CL goes most of the way to bringing back to the "Use ...
7 years ago (2013-12-19 08:47:11 UTC) #1
benwells
On 2013/12/19 08:47:11, Matt Giuca wrote: > Hi reviewers. > > This CL goes most ...
7 years ago (2013-12-19 19:30:12 UTC) #2
James Cook
c/b/ui/frame is looking good. One question: I notice that the task manager (Shift-Esc) has a ...
7 years ago (2013-12-19 20:57:54 UTC) #3
Matt Giuca
On 2013/12/19 19:30:12, benwells wrote: > Is your thinking that the native title bar flag ...
7 years ago (2013-12-19 23:01:25 UTC) #4
Matt Giuca
Thanks for the review. I actually did cause the double title issue for Task Manager ...
7 years ago (2013-12-20 03:53:21 UTC) #5
benwells
On 2013/12/19 23:01:25, Matt Giuca wrote: > On 2013/12/19 19:30:12, benwells wrote: > > Is ...
7 years ago (2013-12-20 04:26:43 UTC) #6
Matt Giuca
On 2013/12/20 04:26:43, benwells wrote: > I meant the other native frame flag Oh, --apps-use-native-frame. ...
7 years ago (2013-12-20 05:21:39 UTC) #7
James Cook
c/b/ui/views/frame LGTM https://codereview.chromium.org/111723012/diff/160001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/111723012/diff/160001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode63 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:63: // When the title bar is in ...
7 years ago (2013-12-20 22:23:51 UTC) #8
Matt Giuca
https://codereview.chromium.org/111723012/diff/160001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/111723012/diff/160001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode63 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:63: // When the title bar is in its normal ...
6 years, 11 months ago (2014-01-06 04:28:20 UTC) #9
Elliot Glaysher
Patched it in locally. LGTM.
6 years, 11 months ago (2014-01-06 21:24:13 UTC) #10
Elliot Glaysher
ping? The tentative plan is to release next week's dev channel to be aura. I'd ...
6 years, 11 months ago (2014-01-14 19:16:02 UTC) #11
sky
widget.h LGTM
6 years, 11 months ago (2014-01-14 20:31:28 UTC) #12
Matt Giuca
Sorry, I had a chat with benwells last week, and he wasn't happy with using ...
6 years, 11 months ago (2014-01-14 23:09:51 UTC) #13
Elliot Glaysher
On 2014/01/14 23:09:51, Matt Giuca wrote: > Perhaps it would be good to remove the ...
6 years, 11 months ago (2014-01-14 23:41:28 UTC) #14
Matt Giuca
Okay, I'll try to get the preference stuff for M34. Does it need to be ...
6 years, 11 months ago (2014-01-14 23:45:21 UTC) #15
Elliot Glaysher
It's entirely fine to dump this mostly as is to the tree today with the ...
6 years, 11 months ago (2014-01-14 23:58:23 UTC) #16
benwells
On 2014/01/14 23:58:23, Elliot Glaysher wrote: > It's entirely fine to dump this mostly as ...
6 years, 11 months ago (2014-01-15 02:56:45 UTC) #17
Matt Giuca
I have removed app windows from this CL, so now it just affects browser windows ...
6 years, 11 months ago (2014-01-16 08:18:36 UTC) #18
Elliot Glaysher
On 2014/01/16 08:18:36, Matt Giuca wrote: > I have removed app windows from this CL, ...
6 years, 11 months ago (2014-01-16 19:15:59 UTC) #19
Matt Giuca
Cool :) Ben, are you okay with this now? (Technically I don't need your LGTM ...
6 years, 11 months ago (2014-01-16 23:05:42 UTC) #20
benwells
native_app_window_views lgtm
6 years, 11 months ago (2014-01-17 02:44:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/111723012/680001
6 years, 11 months ago (2014-01-17 02:55:02 UTC) #22
commit-bot: I haz the power
Change committed as 245433
6 years, 11 months ago (2014-01-17 06:17:37 UTC) #23
Matt Giuca
This had to be reverted (https://codereview.chromium.org/139303014/) because it broke DesktopScreenX11Test (which unfortunately didn't run on ...
6 years, 11 months ago (2014-01-20 00:57:58 UTC) #24
Elliot Glaysher
lgtm
6 years, 11 months ago (2014-01-21 18:26:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/111723012/1100001
6 years, 11 months ago (2014-01-22 03:25:22 UTC) #26
commit-bot: I haz the power
6 years, 11 months ago (2014-01-22 08:57:14 UTC) #27
Message was sent while issue was closed.
Change committed as 246244

Powered by Google App Engine
This is Rietveld 408576698