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

Issue 2518423003: Combine shelf platform and windowed app types. (Closed)

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

Description

Combine shelf platform and windowed app types. Combine ash::TYPE_PLATFORM_APP and TYPE_WINDOWED_APP. (V1 and V2 apps can be distinguished by IsPlatformApp functions) Remove ChromeLauncherController::IsWindowedAppInLauncher. (check for item presence and pinned state by id instead) Remove unused LauncherItemController::TYPE_WINDOWED_APP. The only behavior change *may* be the combination of drag groups. (but afaict, we can already mix V1 and V2 app order on the shelf...) Update users and tests. BUG=557406 TEST=Automated; no Chrome OS shelf behavior changes for apps. R=skuhne@chromium.org,jamescook@chromium.org Committed: https://crrev.com/b3fee9f62875ed2b6fc43cc347a248d684c509c8 Cr-Commit-Position: refs/heads/master@{#434870}

Patch Set 1 #

Patch Set 2 : Refinements and cleanup. #

Total comments: 20

Patch Set 3 : Fix test compiliation. #

Patch Set 4 : Update platform-app test support; address comment; format. #

Total comments: 12

Patch Set 5 : Address comments. #

Patch Set 6 : Fix kInvalidShelfID typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -454 lines) Patch
M ash/common/shelf/shelf_item_types.h View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M ash/common/shelf/shelf_model.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M ash/common/shelf/shelf_model_unittest.cc View 1 9 chunks +18 lines, -56 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 4 chunks +9 lines, -15 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/test/test_shelf_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/shelf/shelf_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 21 chunks +35 lines, -44 lines 0 comments Download
M ash/shell/window_watcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 10 chunks +13 lines, -35 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 11 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 30 chunks +272 lines, -236 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 3 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 40 (27 generated)
msw
Hey Stefan, please take a look; thanks!
4 years ago (2016-11-23 20:43:56 UTC) #5
Mr4D (OOO till 08-26)
Please see comments! https://codereview.chromium.org/2518423003/diff/20001/ash/common/shelf/shelf_item_types.h File ash/common/shelf/shelf_item_types.h (right): https://codereview.chromium.org/2518423003/diff/20001/ash/common/shelf/shelf_item_types.h#newcode34 ash/common/shelf/shelf_item_types.h:34: TYPE_APP, We should probably name this ...
4 years ago (2016-11-23 23:11:51 UTC) #10
msw
Thanks for the feedback, I've responded to your comments inline. https://codereview.chromium.org/2518423003/diff/20001/ash/common/shelf/shelf_item_types.h File ash/common/shelf/shelf_item_types.h (right): https://codereview.chromium.org/2518423003/diff/20001/ash/common/shelf/shelf_item_types.h#newcode34 ...
4 years ago (2016-11-24 00:00:55 UTC) #11
Mr4D (OOO till 08-26)
Please see email. Beside that lgtm. https://codereview.chromium.org/2518423003/diff/20001/ash/common/shelf/shelf_item_types.h File ash/common/shelf/shelf_item_types.h (right): https://codereview.chromium.org/2518423003/diff/20001/ash/common/shelf/shelf_item_types.h#newcode34 ash/common/shelf/shelf_item_types.h:34: TYPE_APP, See longer ...
4 years ago (2016-11-24 02:21:33 UTC) #16
msw
James, please take a look for ash/OWNERS review; thanks! Stefan, I updated the unit tests ...
4 years ago (2016-11-28 20:13:31 UTC) #21
James Cook
LGTM with nits. Nice patch. https://codereview.chromium.org/2518423003/diff/60001/ash/common/shelf/shelf_item_types.h File ash/common/shelf/shelf_item_types.h (right): https://codereview.chromium.org/2518423003/diff/60001/ash/common/shelf/shelf_item_types.h#newcode33 ash/common/shelf/shelf_item_types.h:33: // Represents an app ...
4 years ago (2016-11-28 22:57:48 UTC) #26
msw
+azurewei@ for thoughts and/or followup on IME comments. https://codereview.chromium.org/2518423003/diff/60001/ash/common/shelf/shelf_item_types.h File ash/common/shelf/shelf_item_types.h (right): https://codereview.chromium.org/2518423003/diff/60001/ash/common/shelf/shelf_item_types.h#newcode33 ash/common/shelf/shelf_item_types.h:33: // ...
4 years ago (2016-11-28 23:47:41 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/2518423003/80001
4 years ago (2016-11-28 23:48:59 UTC) #30
Mr4D (OOO till 08-26)
Still lgtm
4 years ago (2016-11-29 00:13:48 UTC) #31
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/2518423003/100001
4 years ago (2016-11-29 01:28:51 UTC) #34
James Cook
still lgtm
4 years ago (2016-11-29 01:32:52 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-29 03:34:19 UTC) #38
commit-bot: I haz the power
4 years ago (2016-11-29 03:39:53 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b3fee9f62875ed2b6fc43cc347a248d684c509c8
Cr-Commit-Position: refs/heads/master@{#434870}

Powered by Google App Engine
This is Rietveld 408576698