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

Issue 2462753002: Use Ash's ShelfWindowWatcher for app panel windows. (Closed)

Created:
4 years, 1 month ago by msw
Modified:
4 years, 1 month ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Ash's ShelfWindowWatcher for app panel windows. Do not use ExtensionAppWindowLauncher[Item]Controller for panels. Extend and use ShelfWindowWatcher to add shelf items for panels. Add delegate panel support; track windows with items; refactor. Load icons in ExtensionAppWindowLauncherController::RegisterApp. Add ShelfItem::app_id; taken from the window property. Add/update tests; let ShelfModel remove all items (used in tests). TODO: Support window/app icons for ui::Window/WmWindowMus? BUG=557406 TEST=No Chrome OS panel shelf item regressions. R=jamescook@chromium.org Committed: https://crrev.com/db454f39217123d6bcf230dea0986a184df203b8 Cr-Commit-Position: refs/heads/master@{#431415}

Patch Set 1 #

Patch Set 2 : Add icon support; debugging strange crash. #

Patch Set 3 : Sync and rebase #

Patch Set 4 : Do not try to remove items for windows not added by ShelfWindowWatcher. #

Patch Set 5 : Cleanup #

Patch Set 6 : Move IsOpen() to ShelfItemDelegate to support the Close context item. #

Patch Set 7 : Use the panel' WebContents or app title instead of the panel url. #

Patch Set 8 : Remove unused MoveWindowToEventRoot and more unused panel code. #

Patch Set 9 : Restore ash::wm::MoveWindowToEventRoot. #

Patch Set 10 : Add ShelfWindowWatcherTest, remove ChromeLauncherControllerImplTest panel use. #

Total comments: 20

Patch Set 11 : Address comments; try to add a panel AppWindow unit test; debugging. #

Patch Set 12 : Kinda get the unit test working... #

Patch Set 13 : Working on unit testing... fix ash_shell_lib[_with_content] deps. #

Patch Set 14 : Fix attention status, icon loading, some test failures, more. #

Patch Set 15 : Load panel icons in ExtensionAppWindowLauncherController::RegisterApp. #

Patch Set 16 : Cleanup; restore icon loading path. #

Patch Set 17 : Sync and rebase. #

Patch Set 18 : Sync and rebase. #

Patch Set 19 : Cleanup. #

Total comments: 18

Patch Set 20 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -273 lines) Patch
M ash/common/shelf/shelf_item_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +11 lines, -8 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +57 lines, -49 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.h View 1 2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +32 lines, -4 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +43 lines, -0 lines 0 comments Download
M ash/shell/panel_window.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 17 chunks +24 lines, -41 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +64 lines, -16 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 chunks +56 lines, -78 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc View 1 2 3 4 5 6 3 chunks +5 lines, -49 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +18 lines, -13 lines 0 comments Download

Messages

Total messages: 51 (42 generated)
msw
Hey James, please take a look; thanks!
4 years, 1 month ago (2016-11-02 00:05:07 UTC) #17
James Cook
https://codereview.chromium.org/2462753002/diff/200001/ash/common/shelf/shelf_window_watcher.cc File ash/common/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2462753002/diff/200001/ash/common/shelf/shelf_window_watcher.cc#newcode69 ash/common/shelf/shelf_window_watcher.cc:69: // A new window was created in the default ...
4 years, 1 month ago (2016-11-02 17:53:44 UTC) #20
msw
Hey James, please take a fresh look; thanks! https://codereview.chromium.org/2462753002/diff/200001/ash/common/shelf/shelf_window_watcher.cc File ash/common/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/2462753002/diff/200001/ash/common/shelf/shelf_window_watcher.cc#newcode69 ash/common/shelf/shelf_window_watcher.cc:69: // ...
4 years, 1 month ago (2016-11-10 21:07:47 UTC) #36
James Cook
https://codereview.chromium.org/2462753002/diff/380001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2462753002/diff/380001/ash/BUILD.gn#newcode1360 ash/BUILD.gn:1360: ":ash_shell_lib", Why is this needed? ash_shell should just be ...
4 years, 1 month ago (2016-11-10 22:32:46 UTC) #39
msw
Comments addressed, please take another look; thanks! https://codereview.chromium.org/2462753002/diff/380001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2462753002/diff/380001/ash/BUILD.gn#newcode1360 ash/BUILD.gn:1360: ":ash_shell_lib", On ...
4 years, 1 month ago (2016-11-10 23:30:52 UTC) #40
James Cook
LGTM. Nice patch.
4 years, 1 month ago (2016-11-10 23:38:31 UTC) #43
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/2462753002/400001
4 years, 1 month ago (2016-11-11 00:30:14 UTC) #47
commit-bot: I haz the power
Committed patchset #20 (id:400001)
4 years, 1 month ago (2016-11-11 00:37:17 UTC) #49
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 00:42:19 UTC) #51
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/db454f39217123d6bcf230dea0986a184df203b8
Cr-Commit-Position: refs/heads/master@{#431415}

Powered by Google App Engine
This is Rietveld 408576698