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

Issue 149493008: Use active window if on current workspace for fullscreen mode. (Closed)

Created:
6 years, 10 months ago by flackr
Modified:
6 years, 9 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Use active window if on current workspace for fullscreen mode. BUG=330566, 340647 TEST=WindowSelectorTest.FullscreenWindow,RootWindowControllerTest.GetWindowForFullscreenMode,RootWindowControllerTest.MultipleDisplaysGetWindowForFullscreenMode,PanelWindowResizerTest.AttachToSecondFullscreenDisplay TEST=Open a panel and navigate a browser to an html5 fullscreen page, and fullscreen it. Alt+tab to the panel, should be able to see the panel. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253794

Patch Set 1 #

Total comments: 8

Patch Set 2 : Merge with master and address comments. #

Patch Set 3 : Update fullscreen state tracking in workspace and only consider switchable containers for active no… #

Total comments: 9

Patch Set 4 : Address comments. #

Patch Set 5 : Only consider the currently active window on current root. #

Total comments: 6

Patch Set 6 : Merge with master and add review suggestions. #

Total comments: 2

Patch Set 7 : Always update fullscreen state on window visibility change. #

Patch Set 8 : Only include active window in switchable container. #

Patch Set 9 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -28 lines) Patch
M ash/root_window_controller.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -9 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
M ash/switchable_windows.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M ash/switchable_windows.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M ash/wm/mru_window_tracker.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -11 lines 0 comments Download
M ash/wm/overview/window_selector_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 4 5 6 4 chunks +32 lines, -5 lines 0 comments Download

Messages

Total messages: 53 (0 generated)
flackr
PTAL, I considered a few approaches for this: - using the active window or topmost ...
6 years, 10 months ago (2014-02-07 20:48:34 UTC) #1
oshima
lgtm with nits https://codereview.chromium.org/149493008/diff/1/ash/root_window_controller.h File ash/root_window_controller.h (right): https://codereview.chromium.org/149493008/diff/1/ash/root_window_controller.h#newcode118 ash/root_window_controller.h:118: } can you group by method ...
6 years, 10 months ago (2014-02-10 19:21:06 UTC) #2
oshima
lgtm with nits
6 years, 10 months ago (2014-02-10 19:21:08 UTC) #3
flackr
https://codereview.chromium.org/149493008/diff/1/ash/root_window_controller.h File ash/root_window_controller.h (right): https://codereview.chromium.org/149493008/diff/1/ash/root_window_controller.h#newcode118 ash/root_window_controller.h:118: } On 2014/02/10 19:21:06, oshima wrote: > can you ...
6 years, 10 months ago (2014-02-10 21:45:27 UTC) #4
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 10 months ago (2014-02-10 22:08:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/180001
6 years, 10 months ago (2014-02-10 22:10:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/180001
6 years, 10 months ago (2014-02-10 22:54:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/180001
6 years, 10 months ago (2014-02-10 23:49:59 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-11 01:47:04 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=200284
6 years, 10 months ago (2014-02-11 01:47:05 UTC) #10
flackr
Thankfully the tests pointed out to me that we currently do not expect windows like ...
6 years, 10 months ago (2014-02-13 22:22:31 UTC) #11
oshima
On 2014/02/13 22:22:31, flackr wrote: > Thankfully the tests pointed out to me that we ...
6 years, 10 months ago (2014-02-14 00:56:23 UTC) #12
oshima
On 2014/02/13 22:22:31, flackr wrote: > Thankfully the tests pointed out to me that we ...
6 years, 10 months ago (2014-02-14 00:56:24 UTC) #13
oshima
https://codereview.chromium.org/149493008/diff/530001/ash/shelf/shelf_layout_manager_unittest.cc File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/149493008/diff/530001/ash/shelf/shelf_layout_manager_unittest.cc#newcode1373 ash/shelf/shelf_layout_manager_unittest.cc:1373: wm::GetWindowState(window1)->Activate(); Does this mean that when we create a ...
6 years, 10 months ago (2014-02-14 17:24:25 UTC) #14
flackr
https://codereview.chromium.org/149493008/diff/530001/ash/shelf/shelf_layout_manager_unittest.cc File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/149493008/diff/530001/ash/shelf/shelf_layout_manager_unittest.cc#newcode1373 ash/shelf/shelf_layout_manager_unittest.cc:1373: wm::GetWindowState(window1)->Activate(); On 2014/02/14 17:24:26, oshima wrote: > Does this ...
6 years, 10 months ago (2014-02-14 20:00:01 UTC) #15
oshima
https://codereview.chromium.org/149493008/diff/530001/ash/shelf/shelf_layout_manager_unittest.cc File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/149493008/diff/530001/ash/shelf/shelf_layout_manager_unittest.cc#newcode1373 ash/shelf/shelf_layout_manager_unittest.cc:1373: wm::GetWindowState(window1)->Activate(); On 2014/02/14 20:00:02, flackr wrote: > On 2014/02/14 ...
6 years, 10 months ago (2014-02-14 20:09:30 UTC) #16
flackr
https://codereview.chromium.org/149493008/diff/530001/ash/wm/workspace/workspace_layout_manager.cc File ash/wm/workspace/workspace_layout_manager.cc (left): https://codereview.chromium.org/149493008/diff/530001/ash/wm/workspace/workspace_layout_manager.cc#oldcode221 ash/wm/workspace/workspace_layout_manager.cc:221: UpdateFullscreenState(); On 2014/02/14 20:09:30, oshima wrote: > I think ...
6 years, 10 months ago (2014-02-14 20:15:01 UTC) #17
flackr
As discussed, I've updated this to consider the active window if it's on the current ...
6 years, 10 months ago (2014-02-20 20:14:25 UTC) #18
oshima
https://codereview.chromium.org/149493008/diff/690001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/149493008/diff/690001/ash/root_window_controller.cc#newcode575 ash/root_window_controller.cc:575: const aura::Window* active_window = wm::GetActiveWindow(); can you add comment ...
6 years, 10 months ago (2014-02-21 19:49:46 UTC) #19
flackr
https://codereview.chromium.org/149493008/diff/690001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/149493008/diff/690001/ash/root_window_controller.cc#newcode575 ash/root_window_controller.cc:575: const aura::Window* active_window = wm::GetActiveWindow(); On 2014/02/21 19:49:46, oshima ...
6 years, 10 months ago (2014-02-24 16:21:09 UTC) #20
oshima
lgtm with a nit. https://codereview.chromium.org/149493008/diff/780001/ash/wm/workspace/workspace_layout_manager.cc File ash/wm/workspace/workspace_layout_manager.cc (right): https://codereview.chromium.org/149493008/diff/780001/ash/wm/workspace/workspace_layout_manager.cc#newcode101 ash/wm/workspace/workspace_layout_manager.cc:101: UpdateFullscreenState(); I think this should ...
6 years, 10 months ago (2014-02-24 16:39:03 UTC) #21
flackr
https://codereview.chromium.org/149493008/diff/780001/ash/wm/workspace/workspace_layout_manager.cc File ash/wm/workspace/workspace_layout_manager.cc (right): https://codereview.chromium.org/149493008/diff/780001/ash/wm/workspace/workspace_layout_manager.cc#newcode101 ash/wm/workspace/workspace_layout_manager.cc:101: UpdateFullscreenState(); On 2014/02/24 16:39:04, oshima wrote: > I think ...
6 years, 10 months ago (2014-02-24 16:52:35 UTC) #22
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 10 months ago (2014-02-24 17:01:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/830001
6 years, 10 months ago (2014-02-24 17:01: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-24 18:09:07 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268868
6 years, 10 months ago (2014-02-24 18:09:07 UTC) #26
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 10 months ago (2014-02-24 18:24:09 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/830001
6 years, 10 months ago (2014-02-24 18:27:57 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/830001
6 years, 10 months ago (2014-02-24 20:25:49 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/830001
6 years, 10 months ago (2014-02-24 21:09:26 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-24 22:43:33 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=269169
6 years, 10 months ago (2014-02-24 22:43:33 UTC) #32
flackr
Sorry, one more update. In ShelfLayoutManagerTest.OpenAppListWithShelfAutoHideState we expect the shelf to remain hidden when bringing ...
6 years, 10 months ago (2014-02-25 14:52:49 UTC) #33
oshima
lgtm
6 years, 10 months ago (2014-02-25 18:03:14 UTC) #34
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 10 months ago (2014-02-25 18:03:56 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1120001
6 years, 10 months ago (2014-02-25 18:05:06 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1120001
6 years, 10 months ago (2014-02-25 21:49:44 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1120001
6 years, 10 months ago (2014-02-25 22:14:24 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1120001
6 years, 10 months ago (2014-02-25 23:17:48 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1120001
6 years, 10 months ago (2014-02-26 00:04:53 UTC) #40
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:34:14 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 05:34:52 UTC) #42
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:42:34 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1120001
6 years, 10 months ago (2014-02-26 05:51:38 UTC) #44
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 22:52:09 UTC) #45
Paweł Hajdan Jr.
On 2014/02/26 22:52:09, Paweł Hajdan Jr. wrote: > The CQ bit was unchecked by mailto:phajdan.jr@chromium.org ...
6 years, 10 months ago (2014-02-26 22:52:57 UTC) #46
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 10 months ago (2014-02-27 01:53:34 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1140001
6 years, 10 months ago (2014-02-27 01:55:09 UTC) #48
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 04:54:58 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-02-27 04:54:59 UTC) #50
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 9 months ago (2014-02-27 05:01:32 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/149493008/1140001
6 years, 9 months ago (2014-02-27 05:01:51 UTC) #52
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 13:58:16 UTC) #53
Message was sent while issue was closed.
Change committed as 253794

Powered by Google App Engine
This is Rietveld 408576698