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

Issue 13934007: Adding experimental maximize mode (behind a flag) (Closed)

Created:
7 years, 8 months ago by Mr4D (OOO till 08-26)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, sadrul, marja+watch_chromium.org, tfarina, ben+watch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Adding experimental maximize mode (behind a flag) This experimental feature is behind a flag and allows our user interface designers to experiment with an always maximized window mode. It also removes certain context menu options which make no sense in that mode anymore. No goals for this CL are: - The minimal / maximal window size properties of V2 apps will get ignored, and the apps will always get maximized. - Rather then not creating buttons in the first place, they only get hidden to keep the changes to the code to a minimum. Note: Since this feature is entirely experimental + behind a flag + subject to change + does only contain minor behavioral changes, there are no unit tests for this at this time. BUG=230510 TEST=visual (browser, hosted apps, V1 apps) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197856

Patch Set 1 #

Patch Set 2 : A few self nits #

Total comments: 22

Patch Set 3 : git try #

Total comments: 2

Patch Set 4 : Added TODO #

Total comments: 1

Patch Set 5 : Changed as requested #

Total comments: 1

Patch Set 6 : Step back and a few changes #

Total comments: 10

Patch Set 7 : Removed flag usage again #

Total comments: 4

Patch Set 8 : . #

Patch Set 9 : Added comment and tabbed reference #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -22 lines) Patch
M ash/ash_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M ash/shell.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ash/wm/workspace/frame_maximize_button.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/workspace/frame_maximize_button.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_event_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 5 6 3 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 3 4 2 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 4 5 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
7 years, 8 months ago (2013-04-22 20:01:28 UTC) #1
James Cook
https://codereview.chromium.org/13934007/diff/2001/ash/ash_switches.cc File ash/ash_switches.cc (right): https://codereview.chromium.org/13934007/diff/2001/ash/ash_switches.cc#newcode131 ash/ash_switches.cc:131: const char kForceMaximizeMode[] = "force_maximize_mode"; force_maximize_mode -> force-maximize-mode https://codereview.chromium.org/13934007/diff/2001/ash/shell.h ...
7 years, 8 months ago (2013-04-22 22:15:46 UTC) #2
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/13934007/diff/2001/ash/ash_switches.cc File ash/ash_switches.cc (right): https://codereview.chromium.org/13934007/diff/2001/ash/ash_switches.cc#newcode131 ash/ash_switches.cc:131: const char kForceMaximizeMode[] = "force_maximize_mode"; ...
7 years, 8 months ago (2013-04-23 04:41:28 UTC) #3
James Cook
LGTM but please file a bug for the restore/maximize buttons. https://codereview.chromium.org/13934007/diff/2001/chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc File chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc (right): https://codereview.chromium.org/13934007/diff/2001/chrome/browser/ui/views/frame/app_non_client_frame_view_ash.cc#newcode49 ...
7 years, 8 months ago (2013-04-23 18:27:32 UTC) #4
Mr4D (OOO till 08-26)
Added comment and submitted. As discussed I added a TODO for this case. Thanks for ...
7 years, 8 months ago (2013-04-23 22:24:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/13934007/34001
7 years, 8 months ago (2013-04-23 22:25:30 UTC) #6
commit-bot: I haz the power
Presubmit check for 13934007-34001 failed and returned exit status 1. INFO:root:Found 16 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-23 22:25:41 UTC) #7
Mr4D (OOO till 08-26)
Please do an owners review for chrome/browser/extensions/api/app_window/app_window_api.cc chrome/browser/extensions/extension_prefs.cc chrome/browser/sessions/session_restore.cc chrome/browser/ui/app_list/extension_app_item.cc chrome/browser/ui/window_sizer/window_sizer_ash.cc Thanks in advance!
7 years, 8 months ago (2013-04-23 22:33:26 UTC) #8
sky
https://codereview.chromium.org/13934007/diff/34001/chrome/browser/sessions/session_restore.cc File chrome/browser/sessions/session_restore.cc (right): https://codereview.chromium.org/13934007/diff/34001/chrome/browser/sessions/session_restore.cc#newcode1046 chrome/browser/sessions/session_restore.cc:1046: if (ash::Shell::IsForcedMaximizeMode()) It seems like we shouldn't have to ...
7 years, 8 months ago (2013-04-24 00:31:59 UTC) #9
Mr4D (OOO till 08-26)
Please have another look!
7 years, 7 months ago (2013-04-29 17:49:04 UTC) #10
sky
https://codereview.chromium.org/13934007/diff/41001/ash/wm/property_util.h File ash/wm/property_util.h (right): https://codereview.chromium.org/13934007/diff/41001/ash/wm/property_util.h#newcode75 ash/wm/property_util.h:75: ASH_EXPORT void SetCanBeMaximizedByWorkspace(aura::Window* window, bool value); This is roughly ...
7 years, 7 months ago (2013-04-29 20:36:53 UTC) #11
Mr4D (OOO till 08-26)
As discussed - reworked. I might have missed something (since the day was long) and ...
7 years, 7 months ago (2013-05-01 01:08:05 UTC) #12
sky
https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc File ash/wm/workspace/frame_maximize_button.cc (right): https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc#newcode314 ash/wm/workspace/frame_maximize_button.cc:314: if (ash::Shell::IsForcedMaximizeMode()) Is there a reason you went this ...
7 years, 7 months ago (2013-05-01 04:32:03 UTC) #13
Mr4D (OOO till 08-26)
Removed the flag usage again. Please have another look! https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc File ash/wm/workspace/frame_maximize_button.cc (right): https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc#newcode314 ash/wm/workspace/frame_maximize_button.cc:314: ...
7 years, 7 months ago (2013-05-01 17:57:23 UTC) #14
sky
https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc File ash/wm/workspace/frame_maximize_button.cc (right): https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc#newcode314 ash/wm/workspace/frame_maximize_button.cc:314: if (ash::Shell::IsForcedMaximizeMode()) On 2013/05/01 17:57:23, Mr4D wrote: > There ...
7 years, 7 months ago (2013-05-01 21:01:56 UTC) #15
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc File ash/wm/workspace/frame_maximize_button.cc (right): https://codereview.chromium.org/13934007/diff/58001/ash/wm/workspace/frame_maximize_button.cc#newcode314 ash/wm/workspace/frame_maximize_button.cc:314: if (ash::Shell::IsForcedMaximizeMode()) This makes sure ...
7 years, 7 months ago (2013-05-01 22:48:49 UTC) #16
sky
LGTM
7 years, 7 months ago (2013-05-02 00:34:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/13934007/102001
7 years, 7 months ago (2013-05-02 00:36:42 UTC) #18
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=35829
7 years, 7 months ago (2013-05-02 02:56:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/13934007/102001
7 years, 7 months ago (2013-05-02 03:18:25 UTC) #20
commit-bot: I haz the power
7 years, 7 months ago (2013-05-02 07:53:49 UTC) #21
Message was sent while issue was closed.
Change committed as 197856

Powered by Google App Engine
This is Rietveld 408576698