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

Issue 149303003: [Refactor] Move the logic to update bounds for show type from WorkspaceLayoutManager to DefaultState (Closed)

Created:
6 years, 10 months ago by oshima
Modified:
6 years, 10 months ago
Reviewers:
pkotwicz, benwells
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

Move the logic to update bounds for show type from WorkspaceLayoutManager to DefaultState * Introduced WindowStateObserver::{Pre|Post}WindowShowTypeChange We had implicit dependency between OnWindowShowTypeChanged implementations. This clearly separate the things that should happen before and after the window's bounds is updated. This is another step to introduce state machine. BUG=318325 TEST=no functional change. all tests should pass. TBR=benwells@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251191 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251539

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : build fix #

Patch Set 4 : #

Total comments: 23

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Total comments: 28

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : fix rebase #

Patch Set 12 : handle show_inactive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -272 lines) Patch
M ash/wm/custom_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/default_state.h View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -2 lines 0 comments Download
M ash/wm/default_state.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +264 lines, -11 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/panels/panel_layout_manager.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/resize_handle_window_targeter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/resize_handle_window_targeter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M ash/wm/window_state.h View 1 2 3 4 5 6 7 8 4 chunks +25 lines, -3 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +105 lines, -30 lines 0 comments Download
M ash/wm/window_state_observer.h View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -4 lines 0 comments Download
M ash/wm/wm_types.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +23 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 3 chunks +2 lines, -10 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +5 lines, -194 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 1 chunk +1 line, -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 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (0 generated)
oshima
https://codereview.chromium.org/149303003/diff/30001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/149303003/diff/30001/ash/wm/default_state.cc#newcode237 ash/wm/default_state.cc:237: void DefaultState::UpdateBoundsFromShowType(wm::WindowState* window_state, The code that updates window state ...
6 years, 10 months ago (2014-02-11 21:49:34 UTC) #1
pkotwicz
https://codereview.chromium.org/149303003/diff/170001/ash/wm/panels/panel_layout_manager.cc File ash/wm/panels/panel_layout_manager.cc (right): https://codereview.chromium.org/149303003/diff/170001/ash/wm/panels/panel_layout_manager.cc#newcode462 ash/wm/panels/panel_layout_manager.cc:462: void PanelLayoutManager::OnPreWindowShowTypeChange( Given my suggestion about keeping WorkspaceLayoutManager::ShowTypeChanged() in ...
6 years, 10 months ago (2014-02-12 05:10:00 UTC) #2
pkotwicz
https://codereview.chromium.org/149303003/diff/170001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/149303003/diff/170001/ash/wm/default_state.cc#newcode112 ash/wm/default_state.cc:112: // TODO(oshima): Make docked window a state. I don't ...
6 years, 10 months ago (2014-02-12 05:44:48 UTC) #3
oshima
https://codereview.chromium.org/149303003/diff/170001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/149303003/diff/170001/ash/wm/default_state.cc#newcode112 ash/wm/default_state.cc:112: // TODO(oshima): Make docked window a state. On 2014/02/12 ...
6 years, 10 months ago (2014-02-12 14:08:33 UTC) #4
pkotwicz
https://codereview.chromium.org/149303003/diff/170001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/149303003/diff/170001/ash/wm/window_state.cc#newcode34 ash/wm/window_state.cc:34: // manager with proper friendship. Can you remove this ...
6 years, 10 months ago (2014-02-12 18:20:17 UTC) #5
oshima
https://codereview.chromium.org/149303003/diff/170001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/149303003/diff/170001/ash/wm/window_state.cc#newcode34 ash/wm/window_state.cc:34: // manager with proper friendship. On 2014/02/12 18:20:18, pkotwicz ...
6 years, 10 months ago (2014-02-12 19:56:16 UTC) #6
pkotwicz
LGTM with nits https://codereview.chromium.org/149303003/diff/170001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/149303003/diff/170001/ash/wm/window_state.cc#newcode34 ash/wm/window_state.cc:34: // manager with proper friendship. I ...
6 years, 10 months ago (2014-02-12 22:27:27 UTC) #7
oshima
https://codereview.chromium.org/149303003/diff/360001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/149303003/diff/360001/ash/wm/default_state.cc#newcode113 ash/wm/default_state.cc:113: if (!window_state->IsDocked() && !window_state->IsPanel()) On 2014/02/12 22:27:27, pkotwicz wrote: ...
6 years, 10 months ago (2014-02-13 14:52:33 UTC) #8
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-13 14:53:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/570001
6 years, 10 months ago (2014-02-13 14:54:41 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 15:35:56 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50066
6 years, 10 months ago (2014-02-13 15:35:57 UTC) #12
oshima
tbr'ing benwells@chromium.org for trivial renaming in chrome/browser/ui/views/apps
6 years, 10 months ago (2014-02-13 16:02:42 UTC) #13
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-13 16:02:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/570001
6 years, 10 months ago (2014-02-13 16:03:36 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 16:42:33 UTC) #16
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=115303
6 years, 10 months ago (2014-02-13 16:42:33 UTC) #17
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-13 17:07:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/780003
6 years, 10 months ago (2014-02-13 17:07:27 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 18:17:37 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 10 months ago (2014-02-13 18:17:38 UTC) #21
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-13 19:17:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/990002
6 years, 10 months ago (2014-02-13 19:21:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/990002
6 years, 10 months ago (2014-02-13 20:03:39 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 21:38:51 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=263751
6 years, 10 months ago (2014-02-13 21:38:55 UTC) #26
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-13 22:06:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/990002
6 years, 10 months ago (2014-02-13 22:08:53 UTC) #28
commit-bot: I haz the power
Change committed as 251191
6 years, 10 months ago (2014-02-13 23:50:58 UTC) #29
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-14 20:10:36 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/1490001
6 years, 10 months ago (2014-02-14 20:11:38 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 20:50:51 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 20:50:52 UTC) #33
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-14 22:44:03 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/1490001
6 years, 10 months ago (2014-02-14 22:52:32 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 22:59:55 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 22:59:57 UTC) #37
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-15 00:19:36 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/1490001
6 years, 10 months ago (2014-02-15 00:36:37 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-15 00:56:48 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-15 00:56:49 UTC) #41
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-15 03:42:07 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/149303003/1490001
6 years, 10 months ago (2014-02-15 03:42:38 UTC) #43
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 05:31:13 UTC) #44
Message was sent while issue was closed.
Change committed as 251539

Powered by Google App Engine
This is Rietveld 408576698