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

Issue 146363002: Linux Aura: Use system title bar is now set by preference, not flag. (Closed)

Created:
6 years, 11 months ago by Matt Giuca
Modified:
6 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tfarina, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, Jói
Visibility:
Public.

Description

Linux Aura: Use system title bar is now set by preference, not flag. The "Use system title bar and borders" preference can now be set on Linux Aura, through the settings page or tabstrip menu, and is used to determine whether the system title bar or custom Chrome title bar style is used. Changing the preference dynamically updates the browser style. Removed the --use-system-title-bar flag. BUG=317859 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250995

Patch Set 1 #

Patch Set 2 : Rebase, and base off CL 145973004. #

Patch Set 3 : Rebase off CL 136093007 instead (precursor CL). #

Patch Set 4 : Actually change the window, and clean up. #

Patch Set 5 : Fix presubmit errors. #

Patch Set 6 : Added Use System Title Bar and Borders menu item. #

Patch Set 7 : Rebase. #

Patch Set 8 : Moved menu item to match GTK menu. #

Patch Set 9 : Fix build on Windows. #

Total comments: 2

Patch Set 10 : Rebase. #

Patch Set 11 : Revert adding argument to FrameTypeChanged everywhere (thanks sky). #

Total comments: 20

Patch Set 12 : Rebase. #

Patch Set 13 : Address msw comments. #

Total comments: 10

Patch Set 14 : Rebase. #

Patch Set 15 : Address more of msw's comments. #

Patch Set 16 : Rename BrowserView pref registration functions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -36 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_view_prefs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_view_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +21 lines, -2 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 11 12 13 14 3 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/system_menu_model_builder.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/system_menu_model_delegate.cc View 1 2 3 4 5 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 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 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Matt Giuca
Huge review, sorry. I can split up certain features (like adding to the menu) and ...
6 years, 10 months ago (2014-02-03 04:13:14 UTC) #1
cpu_(ooo_6.6-7.5)
lgtm on file: chrome_command_ids.h
6 years, 10 months ago (2014-02-03 22:50:02 UTC) #2
Elliot Glaysher
On 2014/02/03 22:50:02, cpu wrote: > lgtm on file: chrome_command_ids.h lgtm. (I tried patching this ...
6 years, 10 months ago (2014-02-03 23:48:06 UTC) #3
Matt Giuca
Yes, it is dependent on http://crrev.com/136093007/
6 years, 10 months ago (2014-02-03 23:57:30 UTC) #4
sky
https://codereview.chromium.org/146363002/diff/340001/ui/views/widget/native_widget_aura.h File ui/views/widget/native_widget_aura.h (right): https://codereview.chromium.org/146363002/diff/340001/ui/views/widget/native_widget_aura.h#newcode59 ui/views/widget/native_widget_aura.h:59: virtual void FrameTypeChanged(Widget::FrameType new_type) OVERRIDE; Why can't whoever needs ...
6 years, 10 months ago (2014-02-04 01:03:17 UTC) #5
Pam (message me for reviews)
chrome/browser/prefs* and chrome/browser/resources/* lgtm - pam
6 years, 10 months ago (2014-02-05 13:11:30 UTC) #6
Matt Giuca
https://codereview.chromium.org/146363002/diff/340001/ui/views/widget/native_widget_aura.h File ui/views/widget/native_widget_aura.h (right): https://codereview.chromium.org/146363002/diff/340001/ui/views/widget/native_widget_aura.h#newcode59 ui/views/widget/native_widget_aura.h:59: virtual void FrameTypeChanged(Widget::FrameType new_type) OVERRIDE; On 2014/02/04 01:03:18, sky ...
6 years, 10 months ago (2014-02-06 00:28:50 UTC) #7
msw
https://codereview.chromium.org/146363002/diff/620001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/146363002/diff/620001/chrome/browser/about_flags.cc#oldcode1959 chrome/browser/about_flags.cc:1959: IDS_FLAGS_USE_SYSTEM_TITLE_BAR, You should remove these two string resources from ...
6 years, 10 months ago (2014-02-06 00:50:26 UTC) #8
Elliot Glaysher
https://codereview.chromium.org/146363002/diff/620001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/146363002/diff/620001/chrome/browser/resources/options/browser_options.html#newcode85 chrome/browser/resources/options/browser_options.html:85: <if expr="is_posix and not pp_ifdef('chromeos') and not is_macosx"> On ...
6 years, 10 months ago (2014-02-06 00:52:30 UTC) #9
Pam (message me for reviews)
https://codereview.chromium.org/146363002/diff/620001/chrome/browser/ui/browser_view_prefs.cc File chrome/browser/ui/browser_view_prefs.cc (right): https://codereview.chromium.org/146363002/diff/620001/chrome/browser/ui/browser_view_prefs.cc#newcode39 chrome/browser/ui/browser_view_prefs.cc:39: user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); On 2014/02/06 00:50:27, msw wrote: > nit: why ...
6 years, 10 months ago (2014-02-06 10:31:26 UTC) #10
Matt Giuca
https://codereview.chromium.org/146363002/diff/620001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/146363002/diff/620001/chrome/browser/about_flags.cc#oldcode1959 chrome/browser/about_flags.cc:1959: IDS_FLAGS_USE_SYSTEM_TITLE_BAR, On 2014/02/06 00:50:27, msw wrote: > You should ...
6 years, 10 months ago (2014-02-11 04:57:38 UTC) #11
msw
https://codereview.chromium.org/146363002/diff/620001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/146363002/diff/620001/chrome/browser/resources/options/browser_options.html#newcode85 chrome/browser/resources/options/browser_options.html:85: <if expr="is_posix and not pp_ifdef('chromeos') and not is_macosx"> On ...
6 years, 10 months ago (2014-02-11 19:32:58 UTC) #12
Matt Giuca
https://codereview.chromium.org/146363002/diff/620001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/146363002/diff/620001/chrome/browser/resources/options/browser_options.html#newcode85 chrome/browser/resources/options/browser_options.html:85: <if expr="is_posix and not pp_ifdef('chromeos') and not is_macosx"> This ...
6 years, 10 months ago (2014-02-12 01:09:18 UTC) #13
msw
LGTM, though I'd like to see use of PrefRegistrySimple if that is non-syncable. (sadly, the ...
6 years, 10 months ago (2014-02-12 18:03:42 UTC) #14
Jói
If the preferences you added are per-profile, then you should use PrefRegistrySyncable, and you should ...
6 years, 10 months ago (2014-02-12 19:50:17 UTC) #15
Matt Giuca
On 2014/02/12 19:50:17, Jói wrote: > If the preferences you added are per-profile, then you ...
6 years, 10 months ago (2014-02-12 23:12:30 UTC) #16
msw
LGTM, thanks!
6 years, 10 months ago (2014-02-12 23:35:25 UTC) #17
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-13 00:11:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/146363002/1450001
6 years, 10 months ago (2014-02-13 00:12:24 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 02:21:48 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 10 months ago (2014-02-13 02:21:49 UTC) #21
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 10 months ago (2014-02-13 05:03:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/146363002/1450001
6 years, 10 months ago (2014-02-13 05:03:52 UTC) #23
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 14:43:38 UTC) #24
Message was sent while issue was closed.
Change committed as 250995

Powered by Google App Engine
This is Rietveld 408576698