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

Issue 599933004: AppsGridView: Use specific types instead of views::View*. (Closed)

Created:
6 years, 2 months ago by Matt Giuca
Modified:
6 years, 2 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

AppsGridView: Use specific types instead of views::View*. Almost every views::View* in this class is actually an AppListItemView*, and we are now specific about that. Also made a few explicit PulsingBlockViews. This removes a mess of static_casts throughout the file, and makes the interface to many methods type-safe and explicit. Committed: https://crrev.com/0ee0ce7028862d0c8fbc44880947cc25cd2b7cd8 Cr-Commit-Position: refs/heads/master@{#297341}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Better comment and name for GetViewDisplayedAtSlotOnCurrentPage. #

Patch Set 3 : Completely use AppListItemView everywhere, not views::View. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -77 lines) Patch
M ui/app_list/views/apps_grid_view.h View 1 2 11 chunks +29 lines, -21 lines 2 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 30 chunks +51 lines, -56 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Matt Giuca
This could go further and replace all use of views::View* in this module with AppListItemView, ...
6 years, 2 months ago (2014-09-25 06:18:12 UTC) #2
tapted
https://codereview.chromium.org/599933004/diff/1/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/599933004/diff/1/ui/app_list/views/apps_grid_view.cc#newcode766 ui/app_list/views/apps_grid_view.cc:766: return static_cast<AppListItemView*>(view_model_.view_at(index)); I wish we could go further by ...
6 years, 2 months ago (2014-09-25 06:35:28 UTC) #3
calamity
lgtm https://codereview.chromium.org/599933004/diff/1/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/599933004/diff/1/ui/app_list/views/apps_grid_view.cc#newcode766 ui/app_list/views/apps_grid_view.cc:766: return static_cast<AppListItemView*>(view_model_.view_at(index)); On 2014/09/25 06:35:28, tapted wrote: > ...
6 years, 2 months ago (2014-09-26 01:47:26 UTC) #4
Matt Giuca
Q about GetIndexOfView. https://codereview.chromium.org/599933004/diff/1/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/599933004/diff/1/ui/app_list/views/apps_grid_view.cc#newcode766 ui/app_list/views/apps_grid_view.cc:766: return static_cast<AppListItemView*>(view_model_.view_at(index)); I think the template ...
6 years, 2 months ago (2014-09-26 03:48:39 UTC) #5
Matt Giuca
OK huge change -- everything is now type safe, not just the static cast parts. ...
6 years, 2 months ago (2014-09-26 04:35:38 UTC) #7
calamity
SLGTM https://codereview.chromium.org/599933004/diff/60001/ui/app_list/views/apps_grid_view.h File ui/app_list/views/apps_grid_view.h (right): https://codereview.chromium.org/599933004/diff/60001/ui/app_list/views/apps_grid_view.h#newcode424 ui/app_list/views/apps_grid_view.h:424: // the model (as it may have been ...
6 years, 2 months ago (2014-09-30 01:22:23 UTC) #8
Matt Giuca
https://codereview.chromium.org/599933004/diff/60001/ui/app_list/views/apps_grid_view.h File ui/app_list/views/apps_grid_view.h (right): https://codereview.chromium.org/599933004/diff/60001/ui/app_list/views/apps_grid_view.h#newcode424 ui/app_list/views/apps_grid_view.h:424: // the model (as it may have been temporarily ...
6 years, 2 months ago (2014-09-30 01:32:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/599933004/60001
6 years, 2 months ago (2014-09-30 01:32:56 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001) as 06988f5442eb75983f3f8c366cc2c2cd7026fb61
6 years, 2 months ago (2014-09-30 02:26:55 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 02:27:36 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0ee0ce7028862d0c8fbc44880947cc25cd2b7cd8
Cr-Commit-Position: refs/heads/master@{#297341}

Powered by Google App Engine
This is Rietveld 408576698