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

Issue 2918223002: mash: Make ShelfWindowWatcher items for unknown windows. (Closed)

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

Description

mash: Make ShelfWindowWatcher items for unknown windows. Restore some ShelfWindowWatcher functionality for Mash: Assign default shelf ids and item types to windows. (respect the WindowState::ignored_by_shelf flag) (use TYPE_DIALOG to avoid Chrome setting an icon, etc.) (ignore windows with transient parents) Update the items if an app (ie. Chrome) claims the windows. Inline GetShelfItemIndexForWindow helper function. Improve ShelfController and CLC logging. Add transient, ignored_by_shelf, and mash unit tests. TODO: Make ignored_by_shelf a window property to fix observation. (WindowState changes don't notify; StatusBubble gets an item...) BUG=557406, 729425 TEST=chrome --mash shows a shelf item for QuickLaunch. R=sky@chromium.org Review-Url: https://codereview.chromium.org/2918223002 Cr-Commit-Position: refs/heads/master@{#476922} Committed: https://chromium.googlesource.com/chromium/src/+/70ac45fc6ef3bc0acb2260a5aba251a13afd6f15

Patch Set 1 #

Patch Set 2 : Limit behavior to Mash for now; cleanup. #

Patch Set 3 : Sync and rebase #

Patch Set 4 : Nix viz check (broke panels); use TYPE_DIALOG to avoid Chrome meddling; add tests. #

Total comments: 2

Patch Set 5 : Address comment. #

Patch Set 6 : Disable failing mash browser test for now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -71 lines) Patch
M ash/shelf/shelf_controller.cc View 1 2 3 4 chunks +20 lines, -20 lines 0 comments Download
M ash/shelf/shelf_window_watcher.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/shelf/shelf_window_watcher.cc View 1 2 3 4 8 chunks +48 lines, -23 lines 0 comments Download
M ash/shelf/shelf_window_watcher_unittest.cc View 1 2 3 4 6 chunks +65 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 5 chunks +20 lines, -20 lines 0 comments Download
M testing/buildbot/filters/mash.browser_tests.filter View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M testing/buildbot/filters/mojo.fyi.browser_tests.filter View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 39 (26 generated)
msw
Hey Scott, please take a look; thanks! ( replaces https://codereview.chromium.org/2915223002 ) ( lmk if you'd ...
3 years, 6 months ago (2017-06-02 23:12:49 UTC) #13
sky
LGTM
3 years, 6 months ago (2017-06-02 23:37:16 UTC) #14
sky
One comment, LGTM with it addressed. https://codereview.chromium.org/2918223002/diff/70001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2918223002/diff/70001/ash/shelf/shelf_window_watcher.cc#newcode54 ash/shelf/shelf_window_watcher.cc:54: const ash::ShelfID shelf_id("ShelfWindowWatcher" ...
3 years, 6 months ago (2017-06-02 23:46:40 UTC) #15
msw
https://codereview.chromium.org/2918223002/diff/70001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2918223002/diff/70001/ash/shelf/shelf_window_watcher.cc#newcode54 ash/shelf/shelf_window_watcher.cc:54: const ash::ShelfID shelf_id("ShelfWindowWatcher" + base::IntToString(id++)); On 2017/06/02 23:46:40, sky ...
3 years, 6 months ago (2017-06-03 00:25:32 UTC) #18
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/2918223002/90001
3 years, 6 months ago (2017-06-03 00:26:06 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/399430)
3 years, 6 months ago (2017-06-03 01:33:43 UTC) #23
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/2918223002/90001
3 years, 6 months ago (2017-06-03 03:47:53 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/399485)
3 years, 6 months ago (2017-06-03 04:48:45 UTC) #27
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/2918223002/90001
3 years, 6 months ago (2017-06-04 21:37:58 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/399592)
3 years, 6 months ago (2017-06-04 22:28:22 UTC) #31
msw
I'm disabling ExperimentalAppWindowApiTest.SetIcon in mash_browser_tests for now to land this cl. I think the usability ...
3 years, 6 months ago (2017-06-05 00:35:03 UTC) #33
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/2918223002/110001
3 years, 6 months ago (2017-06-05 00:35:19 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 02:02:58 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/70ac45fc6ef3bc0acb2260a5aba2...

Powered by Google App Engine
This is Rietveld 408576698