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

Issue 308683002: Move MaximizeModeWindowManager to the controller (Closed)

Created:
6 years, 6 months ago by jonross
Modified:
6 years, 6 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, tfarina, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Mr4D (OOO till 08-26)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move MaximizeModeWindowManager to the controller Remove MaximizeModeWindowManager from Shell. Place it within MaximizeModeController. Move notifications to ShellObserver to after the creation of the window manager. This way checks for it being enabled are correct during notifications. Update all files that were working around this deficiency. TEST=MaximizeModeController Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275843

Patch Set 1 : #

Total comments: 33

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -133 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M ash/display/virtual_keyboard_window_controller_unittest.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M ash/frame/caption_buttons/frame_caption_button_container_view.h View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M ash/frame/caption_buttons/frame_caption_button_container_view.cc View 5 chunks +9 lines, -12 lines 0 comments Download
M ash/frame/custom_frame_view_ash.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M ash/frame/custom_frame_view_ash_unittest.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M ash/shell.h View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 2 chunks +3 lines, -15 lines 0 comments Download
M ash/system/chromeos/brightness/tray_brightness.cc View 3 chunks +5 lines, -1 line 0 comments Download
M ash/system/chromeos/brightness/tray_brightness_unittest.cc View 3 chunks +17 lines, -8 lines 0 comments Download
M ash/system/chromeos/rotation/tray_rotation_lock.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc View 5 chunks +28 lines, -14 lines 0 comments Download
M ash/system/overview/overview_button_tray.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/overview/overview_button_tray.cc View 5 chunks +8 lines, -11 lines 0 comments Download
M ash/system/overview/overview_button_tray_unittest.cc View 5 chunks +17 lines, -8 lines 0 comments Download
M ash/test/shell_test_api.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 3 chunks +23 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 6 chunks +26 lines, -6 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 1 2 3 4 7 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
jonross
Hi Rob, Could you review this change to move maximize mode window manager into maximize ...
6 years, 6 months ago (2014-05-29 15:24:42 UTC) #1
flackr
Nice, thanks for moving this! LGTM with a few nits. +skuhne FYI. https://codereview.chromium.org/308683002/diff/20001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc ...
6 years, 6 months ago (2014-05-29 16:10:06 UTC) #2
jonross
Hi Oshima, This review cleans up all of the logic around toggling maximize mode. https://codereview.chromium.org/308683002/diff/20001/ash/accelerators/accelerator_controller.cc ...
6 years, 6 months ago (2014-05-29 17:39:59 UTC) #3
Mr4D (OOO till 08-26)
Nice! lgtm (see comments) https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc#newcode682 ash/shell.cc:682: maximize_mode_controller_->Shutdown(); Combining the two is ...
6 years, 6 months ago (2014-05-29 22:15:24 UTC) #4
oshima
IIRC, there was a place that is not using ShellObserver::OnMaximizeModeStarted|Ended because Shell::IsMaximizeModeWindowManagerEnabled() isn't accurate. skuhne@, ...
6 years, 6 months ago (2014-05-29 22:44:44 UTC) #5
oshima
never mind. you've already address it (shelf_layout_manager.h). So internal display issue is the only question.
6 years, 6 months ago (2014-05-29 22:54:01 UTC) #6
jonross
https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc#newcode682 ash/shell.cc:682: maximize_mode_controller_->Shutdown(); On 2014/05/29 22:15:24, Mr4D wrote: > Combining the ...
6 years, 6 months ago (2014-05-30 14:37:50 UTC) #7
oshima
On 2014/05/30 14:37:50, jonross wrote: > https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc > File ash/shell.cc (right): > > https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc#newcode682 > ...
6 years, 6 months ago (2014-05-30 17:04:10 UTC) #8
jonross
On 2014/05/30 17:04:10, oshima wrote: > On 2014/05/30 14:37:50, jonross wrote: > > https://codereview.chromium.org/308683002/diff/40001/ash/shell.cc > ...
6 years, 6 months ago (2014-05-30 17:25:49 UTC) #9
oshima
On 2014/05/30 17:25:49, jonross wrote: > On 2014/05/30 17:04:10, oshima wrote: > > On 2014/05/30 ...
6 years, 6 months ago (2014-05-30 18:43:07 UTC) #10
jonross
Hi James, Would you be able to provide owner review to a few chrome/browser files ...
6 years, 6 months ago (2014-05-30 18:49:20 UTC) #11
James Cook
LGTM with nits. Nice refactor. Next time please let me know which specific files or ...
6 years, 6 months ago (2014-05-30 19:47:50 UTC) #12
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-02 13:47:41 UTC) #13
jonross
https://codereview.chromium.org/308683002/diff/50001/ash/frame/caption_buttons/frame_caption_button_container_view.h File ash/frame/caption_buttons/frame_caption_button_container_view.h (right): https://codereview.chromium.org/308683002/diff/50001/ash/frame/caption_buttons/frame_caption_button_container_view.h#newcode91 ash/frame/caption_buttons/frame_caption_button_container_view.h:91: // maximized and is Maximize Mode is enabled. A ...
6 years, 6 months ago (2014-06-02 13:48:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/308683002/70001
6 years, 6 months ago (2014-06-02 13:48:16 UTC) #15
jonross
The CQ bit was unchecked by jonross@chromium.org
6 years, 6 months ago (2014-06-02 17:04:58 UTC) #16
jonross
This change has been rebased. This picks up changes to ShelfLayoutManager, which had removed its ...
6 years, 6 months ago (2014-06-06 15:02:40 UTC) #17
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-06 15:02:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/308683002/110001
6 years, 6 months ago (2014-06-06 15:04:05 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 20:04:15 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 22:58:47 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/17995)
6 years, 6 months ago (2014-06-06 22:58:48 UTC) #22
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-09 13:02:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/308683002/110001
6 years, 6 months ago (2014-06-09 13:02:59 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 20:02:34 UTC) #25
Message was sent while issue was closed.
Change committed as 275843

Powered by Google App Engine
This is Rietveld 408576698