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

Issue 2927693002: mash: Limit ShelfWindowWatcher to panels and dialogs. (Closed)

Created:
3 years, 6 months ago by msw
Modified:
3 years, 6 months ago
Reviewers:
James Cook, sky
CC:
chromium-reviews, kalyank, tfarina, sadrul, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, khmel, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Limit ShelfWindowWatcher to panels and dialogs. Chrome now syncs its own ShelfModel with Ash in Mash. Avoid ShelfWindowWatcher and ChromeLauncherController clashing. (ie. don't create SWW items for windows that CLC will handle) Set TYPE_APP for extension and arc app windows to avoid SWW items. Set TYPE_APP_PANEL in extension code; simplify ChromeNativeAppWindowViewsAuraAsh. Make SWW items for transient windows (per discussion w/oshima). Only make SWW items for WINDOW_TYPE_NORMAL windows w/o a ShelfItemType. (avoid making items for [transient] controls, popups, etc.) Only make SWW items for visible windows (or minimized panels). (clients set a ShelfItemType before Show() to avoid SWW items) (fixes StatusAreaBubble, prior to WindowState::ignored_by_shelf) Expand and refine ShelfWindowWatcher unit tests. Fix simulated panel window creation in other unit tests. Restore ExperimentalAppWindowApiTest.SetIcon to mash white lists. Disable WindowSelectorTest.MultipleDisplays in mash for now. TODO: Determine why OnAppWindowAdded is only called in Mash... BUG=557406, 679087, 695562, 729425, 730759 TEST=Automated; chrome --mash doesn't crash opening the wallpaper picker. R=sky@chromium.org TBR=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2927693002 Cr-Commit-Position: refs/heads/master@{#477884} Committed: https://chromium.googlesource.com/chromium/src/+/feae432eb3cfeafbd4c30795171ac46462a23c80

Patch Set 1 #

Patch Set 2 : Restore ExperimentalAppWindowApiTest.SetIcon to mash browser test whitelists. #

Patch Set 3 : Set the ShelfItemType for Arc app windows. #

Patch Set 4 : Fix panel behavior, unit tests, etc. #

Total comments: 4

Patch Set 5 : Disable WindowSelectorTest.MultipleDisplays in mash. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -110 lines) Patch
M ash/shelf/shelf_window_watcher.cc View 1 2 3 4 chunks +10 lines, -8 lines 2 comments Download
M ash/shelf/shelf_window_watcher_unittest.cc View 1 2 3 9 chunks +88 lines, -82 lines 4 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 3 chunks +30 lines, -2 lines 1 comment Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 3 chunks +4 lines, -18 lines 0 comments Download
M testing/buildbot/filters/mash.browser_tests.filter View 1 1 chunk +1 line, -0 lines 0 comments Download
M testing/buildbot/filters/mojo.fyi.browser_tests.filter View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
msw
Hey James, please take a look; thanks! (hopefully I can land this before leaving!)
3 years, 6 months ago (2017-06-07 23:41:05 UTC) #11
sky
https://codereview.chromium.org/2927693002/diff/60001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2927693002/diff/60001/ash/shelf/shelf_window_watcher.cc#newcode249 ash/shelf/shelf_window_watcher.cc:249: // Create a new item for |window|, if it ...
3 years, 6 months ago (2017-06-07 23:50:22 UTC) #14
msw
Thanks for taking a quick look, Scott. https://codereview.chromium.org/2927693002/diff/60001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2927693002/diff/60001/ash/shelf/shelf_window_watcher.cc#newcode249 ash/shelf/shelf_window_watcher.cc:249: // Create ...
3 years, 6 months ago (2017-06-08 00:00:11 UTC) #15
sky
Ok, LGTM
3 years, 6 months ago (2017-06-08 00:03:02 UTC) #16
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/2927693002/80001
3 years, 6 months ago (2017-06-08 01:20:41 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/429308)
3 years, 6 months ago (2017-06-08 01:54:09 UTC) #26
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/2927693002/80001
3 years, 6 months ago (2017-06-08 02:11:32 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/feae432eb3cfeafbd4c30795171ac46462a23c80
3 years, 6 months ago (2017-06-08 04:24:41 UTC) #31
James Cook
As you requested, a review while you're on vacation. LGTM with the usual nits. https://codereview.chromium.org/2927693002/diff/80001/ash/shelf/shelf_window_watcher.cc ...
3 years, 6 months ago (2017-06-08 17:14:00 UTC) #32
James Cook
3 years, 6 months ago (2017-06-08 17:14:16 UTC) #33
Message was sent while issue was closed.
As you requested, a review while you're on vacation.

LGTM with the usual nits.

Powered by Google App Engine
This is Rietveld 408576698