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

Issue 25859005: Elim ActivateAppListItem, ChromeAppListItem (Closed)

Created:
7 years, 2 months ago by stevenjb
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, sadrul, ben+watch_chromium.org, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Elim ActivateAppListItem, ChromeAppListItem This should simplify the view/model structure some by having the View call ItemModel->Activate() directly, rather than going through the delegate (which continues to manage the model and handle non item specific events). This will allow us to create folder items as part of the non Chrome specific model implementation, without having to make AppListViewDelegate a concrete class, or adding special folder handling to the view classes. BUG=303839 For ash/shell: TBR=jamescook@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227108

Patch Set 1 #

Patch Set 2 : Fix static cast in AppModelBuilder, add AppType #

Total comments: 2

Patch Set 3 : Revert AppsModelBuilder changes #

Patch Set 4 : Move RecordAction call #

Patch Set 5 : Rebase #

Patch Set 6 : Compile fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -97 lines) Patch
M ash/shell/app_list.cc View 1 2 3 4 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/app_list/apps_model_builder.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
D chrome/browser/ui/app_list/chrome_app_list_item.h View 1 chunk +0 lines, -36 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.h View 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/app_list/app_list_item_model.h View 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/app_list/app_list_item_model.cc View 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/app_list/app_list_view_delegate.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/app_list/cocoa/apps_grid_controller.h View 1 chunk +1 line, -2 lines 0 comments Download
M ui/app_list/cocoa/apps_grid_controller.mm View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/app_list/cocoa/apps_grid_controller_unittest.mm View 3 chunks +9 lines, -6 lines 0 comments Download
M ui/app_list/test/app_list_test_model.h View 1 chunk +10 lines, -0 lines 0 comments Download
M ui/app_list/test/app_list_test_model.cc View 1 2 3 4 5 2 chunks +24 lines, -1 line 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.h View 1 2 3 4 3 chunks +0 lines, -6 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.cc View 1 2 3 4 2 chunks +1 line, -9 lines 0 comments Download
M ui/app_list/views/app_list_main_view.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
stevenjb
Patchset 1 should be relatively straightforward, with an ugly cast in AppsModelBuilder::GetAppAt (which was there ...
7 years, 2 months ago (2013-10-03 20:12:15 UTC) #1
xiyuan
7 years, 2 months ago (2013-10-03 20:38:15 UTC) #2
jennyz
https://codereview.chromium.org/25859005/diff/3001/chrome/browser/ui/app_list/apps_model_builder.h File chrome/browser/ui/app_list/apps_model_builder.h (right): https://codereview.chromium.org/25859005/diff/3001/chrome/browser/ui/app_list/apps_model_builder.h#newcode78 chrome/browser/ui/app_list/apps_model_builder.h:78: void AddApps(const ExtensionSet* extensions, ExtensionApps* apps); Should this be ...
7 years, 2 months ago (2013-10-03 20:40:27 UTC) #3
xiyuan
PS#1 looks good. In PS#2, adding AppType() and Update() to AppListItemModel is probably not necessary. ...
7 years, 2 months ago (2013-10-03 20:42:22 UTC) #4
jennyz
https://codereview.chromium.org/25859005/diff/3001/chrome/browser/ui/app_list/apps_model_builder.cc File chrome/browser/ui/app_list/apps_model_builder.cc (right): https://codereview.chromium.org/25859005/diff/3001/chrome/browser/ui/app_list/apps_model_builder.cc#newcode35 chrome/browser/ui/app_list/apps_model_builder.cc:35: return true; // ExtensionAppItem preceeds non-ExtensionAppItem Do you mean ...
7 years, 2 months ago (2013-10-03 20:45:50 UTC) #5
stevenjb
Per feedback, I reverted patchset #2 and will address the static cast in AppsModelBuilder separately ...
7 years, 2 months ago (2013-10-03 23:33:41 UTC) #6
jennyz
lgtm
7 years, 2 months ago (2013-10-04 00:37:46 UTC) #7
xiyuan
LGTM
7 years, 2 months ago (2013-10-04 00:59:53 UTC) #8
koz (OOO until 15th September)
lgtm
7 years, 2 months ago (2013-10-04 01:42:17 UTC) #9
benwells
On 2013/10/04 01:42:17, koz wrote: > lgtm stamp lgtm
7 years, 2 months ago (2013-10-04 04:23:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/25859005/37001
7 years, 2 months ago (2013-10-04 16:38:38 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-04 17:12:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/25859005/38020
7 years, 2 months ago (2013-10-04 18:42:54 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-04 22:04:03 UTC) #14
Message was sent while issue was closed.
Change committed as 227108

Powered by Google App Engine
This is Rietveld 408576698