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

Issue 2247503002: mash: Create and show a shelf in mash. (Closed)

Created:
4 years, 4 months ago by msw
Modified:
4 years, 4 months ago
Reviewers:
James Cook, 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

mash: Create and show a shelf in mash. Allow mash to use the shelf, widget, and layout manager. Delay moving files to ease oshima's concurrent Shelf CL. Consolidate WmShelf[Aura|Mus] functionality on WmShelf. WmShelfMus ctor inits Shelf, ShelfView, ShelfWidget, etc. Use a ShelfDelegateStub for now; add TODO for real impl. WmShelfAura still uses root event handlers; shelf dimmer. Nix ShelfIconObserver interface; use WmShelfObserver. Nix redundant mash RootWindowController::CreateStatusArea. Change ShelfWidget's WmShelfAura* member to WmShelf*. Call WmShell::ShutDown before destruction in WindowManager. Teardown PointerWatcherEventRouter after window destruction. BUG=557406, 612631, 615155, 621112 TEST=Automated; no cros changes; chrome --mash has a shelf. R=jamescook@chromium.org,sky@chromium.org Committed: https://crrev.com/ccb5d69efde4c915618f8334fa4a5231a09d3bb7 Cr-Commit-Position: refs/heads/master@{#412630}

Patch Set 1 #

Patch Set 2 : Sync and rebase; move Shelf ownership to WmShelf. #

Patch Set 3 : Consolidate WmShelf impl; remove redundant StatusAreaWidget. #

Patch Set 4 : Cleanup; add DEPS exceptions. #

Patch Set 5 : Keep Shelf lifetime as-is with some ugly changes. #

Patch Set 6 : Remove ShelfIconObserver; update users to WmShelfObserver; cleanup shutdown. #

Patch Set 7 : Cleanup. #

Total comments: 18

Patch Set 8 : Remove shelf_icon_observer; workaround mash_unittests shutdown crashes. #

Patch Set 9 : Address comments. #

Total comments: 8

Patch Set 10 : Fix WindowManager WmShell::Shutdown; delay PointerWatcherEventRouter teardown; cleanup shutdown wor… #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -586 lines) Patch
M ash/app_list/app_list_presenter_delegate.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate.cc View 1 2 3 4 5 4 chunks +6 lines, -3 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ash/aura/wm_shelf_aura.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -60 lines 0 comments Download
M ash/aura/wm_shelf_aura.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -167 lines 0 comments Download
M ash/common/shelf/DEPS View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
D ash/common/shelf/shelf_icon_observer.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -23 lines 0 comments Download
M ash/common/shelf/shelf_view.h View 1 2 3 4 5 4 chunks +0 lines, -7 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 2 3 4 5 4 chunks +2 lines, -13 lines 0 comments Download
M ash/common/shelf/wm_shelf.h View 1 2 3 4 5 6 7 8 4 chunks +61 lines, -27 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 3 4 5 6 7 8 2 chunks +161 lines, -1 line 0 comments Download
M ash/common/wm_shell.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 2 chunks +13 lines, -13 lines 0 comments Download
A + ash/mus/bridge/DEPS View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M ash/mus/bridge/wm_shelf_mus.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -32 lines 0 comments Download
M ash/mus/bridge/wm_shelf_mus.cc View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -128 lines 0 comments Download
M ash/mus/root_window_controller.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ash/mus/root_window_controller.cc View 1 2 3 3 chunks +0 lines, -19 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 3 4 3 chunks +29 lines, -2 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M ash/shelf/shelf.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +37 lines, -43 lines 0 comments Download
M ash/shelf/shelf_widget.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 7 chunks +10 lines, -14 lines 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/pointer_watcher_event_router.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 3 comments Download

Messages

Total messages: 44 (33 generated)
msw
Hey James, please take a look; thanks!
4 years, 4 months ago (2016-08-16 20:44:07 UTC) #10
James Cook
https://codereview.chromium.org/2247503002/diff/120001/ash/ash.gyp File ash/ash.gyp (left): https://codereview.chromium.org/2247503002/diff/120001/ash/ash.gyp#oldcode144 ash/ash.gyp:144: 'common/shelf/shelf_icon_observer.h', File not deleted in CL? https://codereview.chromium.org/2247503002/diff/120001/ash/aura/wm_shelf_aura.cc File ash/aura/wm_shelf_aura.cc ...
4 years, 4 months ago (2016-08-16 23:21:35 UTC) #15
msw
Hey James, please take another look; thanks! https://codereview.chromium.org/2247503002/diff/120001/ash/ash.gyp File ash/ash.gyp (left): https://codereview.chromium.org/2247503002/diff/120001/ash/ash.gyp#oldcode144 ash/ash.gyp:144: 'common/shelf/shelf_icon_observer.h', On ...
4 years, 4 months ago (2016-08-17 01:09:02 UTC) #23
James Cook
Code LG, just a couple questions. https://codereview.chromium.org/2247503002/diff/100002/ash/common/shelf/shelf_window_watcher.cc File ash/common/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2247503002/diff/100002/ash/common/shelf/shelf_window_watcher.cc#newcode105 ash/common/shelf/shelf_window_watcher.cc:105: if (WmShell::HasInstance()) Why ...
4 years, 4 months ago (2016-08-17 03:29:39 UTC) #26
msw
Hey James, please take another look; thanks! https://codereview.chromium.org/2247503002/diff/100002/ash/common/shelf/shelf_window_watcher.cc File ash/common/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2247503002/diff/100002/ash/common/shelf/shelf_window_watcher.cc#newcode105 ash/common/shelf/shelf_window_watcher.cc:105: if (WmShell::HasInstance()) ...
4 years, 4 months ago (2016-08-17 17:45:44 UTC) #29
James Cook
LGTM. Nice patch -- it'll be good to see the shelf again. https://codereview.chromium.org/2247503002/diff/190001/ui/views/mus/pointer_watcher_event_router.cc File ui/views/mus/pointer_watcher_event_router.cc ...
4 years, 4 months ago (2016-08-17 18:31:51 UTC) #32
msw
Scott, please take a look for ui/views/* OWNERS review. Also, FYI on ash/mus/window_manager.cc, feel free ...
4 years, 4 months ago (2016-08-17 18:55:17 UTC) #35
sky
LGTM https://codereview.chromium.org/2247503002/diff/190001/ui/views/mus/pointer_watcher_event_router.cc File ui/views/mus/pointer_watcher_event_router.cc (right): https://codereview.chromium.org/2247503002/diff/190001/ui/views/mus/pointer_watcher_event_router.cc#newcode93 ui/views/mus/pointer_watcher_event_router.cc:93: DCHECK(!pointer_watchers_.might_have_observers()); I suspect we'll have to remove this, ...
4 years, 4 months ago (2016-08-17 19:50:36 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247503002/190001
4 years, 4 months ago (2016-08-17 20:00:23 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:190001)
4 years, 4 months ago (2016-08-17 20:38:14 UTC) #42
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 20:40:14 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ccb5d69efde4c915618f8334fa4a5231a09d3bb7
Cr-Commit-Position: refs/heads/master@{#412630}

Powered by Google App Engine
This is Rietveld 408576698