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

Issue 1882713004: Only create DockedBackgroundWidget as needed. (Closed)

Created:
4 years, 8 months ago by msw
Modified:
4 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only create DockedBackgroundWidget as needed. This util widget shows up as a user window shelf icon in mash. Don't create this widget until it's needed (not used in mash). We currently put kShellWindowId_DockedContainer windows in mash::wm::mojom::Container::USER_WINDOWS, which might be okay in the long run, but even if we put them in a separate container, we would need UserWindowControllerImpl to track that container's set of user windows (to show shelf icons); so we would need to single out this widget as a non-user-window somehow. We currently don't support docking in mash, but if we choose to use ash's DockedWindowLayoutManager (and DockedBackgroundWidget), we'll need to avoid tracking this background widget as a user window. BUG=603419 TEST="mojo_runner mojo:mash_session" doesn't show a mysterious shelf icon at startup. R=sky@chromium.org Committed: https://crrev.com/14816ec6589c41b5a34f7b534b1c1565c97fe2d7 Cr-Commit-Position: refs/heads/master@{#387182} Committed: https://crrev.com/21a784910f87c59e1db7d8034088d34268753d9d Cr-Commit-Position: refs/heads/master@{#387486}

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 2

Patch Set 3 : Make DockedBackgroundWidget the ShelfLayoutManagerObserver; init background type. #

Patch Set 4 : Show and Hide after create, rather than re-create. #

Total comments: 6

Patch Set 5 : Address comment to set bounds before showing. #

Patch Set 6 : Add comment about stacking. #

Patch Set 7 : Use the DockedWindowLayoutManager's shelf pointer. #

Total comments: 5

Patch Set 8 : Revise comment. #

Patch Set 9 : Use a more verbose comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -60 lines) Patch
M ash/wm/dock/docked_window_layout_manager.h View 1 2 4 chunks +0 lines, -7 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 6 7 8 21 chunks +58 lines, -53 lines 0 comments Download

Messages

Total messages: 43 (19 generated)
msw
Hey Scott, please take a look; thanks!
4 years, 8 months ago (2016-04-13 20:28:12 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882713004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882713004/20001
4 years, 8 months ago (2016-04-13 20:28:33 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/154183)
4 years, 8 months ago (2016-04-13 21:17:28 UTC) #7
sky
https://codereview.chromium.org/1882713004/diff/20001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/20001/ash/wm/dock/docked_window_layout_manager.cc#newcode831 ash/wm/dock/docked_window_layout_manager.cc:831: background_widget_->SetBackgroundType(background_type, change_type); If you lazily create background_widget_ after this ...
4 years, 8 months ago (2016-04-13 21:45:42 UTC) #8
msw
Please take another look; thanks! https://codereview.chromium.org/1882713004/diff/20001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/20001/ash/wm/dock/docked_window_layout_manager.cc#newcode831 ash/wm/dock/docked_window_layout_manager.cc:831: background_widget_->SetBackgroundType(background_type, change_type); On 2016/04/13 ...
4 years, 8 months ago (2016-04-13 23:07:05 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882713004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882713004/40001
4 years, 8 months ago (2016-04-13 23:07:39 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882713004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882713004/60001
4 years, 8 months ago (2016-04-13 23:29:00 UTC) #13
sky
https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc#newcode166 ash/wm/dock/docked_window_layout_manager.cc:166: parent->StackChildAtBottom(GetNativeWindow()); Why do you need this change? https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc#newcode1298 ash/wm/dock/docked_window_layout_manager.cc:1298: ...
4 years, 8 months ago (2016-04-13 23:47:00 UTC) #14
msw
https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc#newcode166 ash/wm/dock/docked_window_layout_manager.cc:166: parent->StackChildAtBottom(GetNativeWindow()); On 2016/04/13 23:47:00, sky wrote: > Why do ...
4 years, 8 months ago (2016-04-13 23:58:17 UTC) #15
sky
LGTM https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc#newcode166 ash/wm/dock/docked_window_layout_manager.cc:166: parent->StackChildAtBottom(GetNativeWindow()); On 2016/04/13 23:58:17, msw wrote: > On ...
4 years, 8 months ago (2016-04-14 00:01:13 UTC) #16
msw
https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/60001/ash/wm/dock/docked_window_layout_manager.cc#newcode166 ash/wm/dock/docked_window_layout_manager.cc:166: parent->StackChildAtBottom(GetNativeWindow()); On 2016/04/14 00:01:13, sky wrote: > On 2016/04/13 ...
4 years, 8 months ago (2016-04-14 00:17:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882713004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882713004/100001
4 years, 8 months ago (2016-04-14 00:18:25 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-14 01:09:14 UTC) #22
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/14816ec6589c41b5a34f7b534b1c1565c97fe2d7 Cr-Commit-Position: refs/heads/master@{#387182}
4 years, 8 months ago (2016-04-14 01:10:47 UTC) #24
vabr (Chromium)
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1888733002/ by vabr@chromium.org. ...
4 years, 8 months ago (2016-04-14 08:01:01 UTC) #25
msw
Scott, please take a look at patch set 7 to address the test crashes that ...
4 years, 8 months ago (2016-04-14 19:21:21 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882713004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882713004/140001
4 years, 8 months ago (2016-04-14 19:21:55 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-14 20:03:12 UTC) #32
sky
https://codereview.chromium.org/1882713004/diff/140001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/140001/ash/wm/dock/docked_window_layout_manager.cc#newcode78 ash/wm/dock/docked_window_layout_manager.cc:78: manager_->shelf()->shelf_layout_manager()->RemoveObserver(this); Are you sure you don't need the conditional ...
4 years, 8 months ago (2016-04-14 20:55:07 UTC) #33
msw
https://codereview.chromium.org/1882713004/diff/140001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/140001/ash/wm/dock/docked_window_layout_manager.cc#newcode78 ash/wm/dock/docked_window_layout_manager.cc:78: manager_->shelf()->shelf_layout_manager()->RemoveObserver(this); On 2016/04/14 20:55:07, sky wrote: > Are you ...
4 years, 8 months ago (2016-04-14 21:33:48 UTC) #34
sky
LGTM https://codereview.chromium.org/1882713004/diff/140001/ash/wm/dock/docked_window_layout_manager.cc File ash/wm/dock/docked_window_layout_manager.cc (right): https://codereview.chromium.org/1882713004/diff/140001/ash/wm/dock/docked_window_layout_manager.cc#newcode163 ash/wm/dock/docked_window_layout_manager.cc:163: // Stack the background below any windows already ...
4 years, 8 months ago (2016-04-14 23:00:38 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882713004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882713004/180001
4 years, 8 months ago (2016-04-14 23:08:13 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 8 months ago (2016-04-15 00:09:46 UTC) #41
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 00:16:25 UTC) #43
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/21a784910f87c59e1db7d8034088d34268753d9d
Cr-Commit-Position: refs/heads/master@{#387486}

Powered by Google App Engine
This is Rietveld 408576698