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

Issue 312213005: Refactor app list ContentsView to use pointer members to find views. (Closed)

Created:
6 years, 6 months ago by Matt Giuca
Modified:
6 years, 6 months ago
Reviewers:
benwells
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, jennyz, xiyuan, calamity
Visibility:
Public.

Description

Refactor app list ContentsView to use pointer members to find views. Removed access functions GetAppsContainerView and friends (which look up a specific index in view_model_ and static_cast it); just directly use the private fields of ContentsView that hold pointers of the correct type to these special views. Added such a pointer for the SearchResultListView. BUG=377381 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275109

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -33 lines) Patch
M ui/app_list/views/contents_view.h View 2 chunks +5 lines, -2 lines 2 comments Download
M ui/app_list/views/contents_view.cc View 6 chunks +15 lines, -31 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Matt Giuca
This will make the following refactor (https://codereview.chromium.org/317723005/) a bit nicer. But it is a good ...
6 years, 6 months ago (2014-06-05 06:13:08 UTC) #1
benwells
lgtm https://codereview.chromium.org/312213005/diff/1/ui/app_list/views/contents_view.h File ui/app_list/views/contents_view.h (right): https://codereview.chromium.org/312213005/diff/1/ui/app_list/views/contents_view.h#newcode96 ui/app_list/views/contents_view.h:96: // Special sub views of the ContentsView. All ...
6 years, 6 months ago (2014-06-05 06:33:45 UTC) #2
Matt Giuca
https://codereview.chromium.org/312213005/diff/1/ui/app_list/views/contents_view.h File ui/app_list/views/contents_view.h (right): https://codereview.chromium.org/312213005/diff/1/ui/app_list/views/contents_view.h#newcode96 ui/app_list/views/contents_view.h:96: // Special sub views of the ContentsView. All owned ...
6 years, 6 months ago (2014-06-05 06:54:11 UTC) #3
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 6 months ago (2014-06-05 07:45:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/312213005/1
6 years, 6 months ago (2014-06-05 07:46:32 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 14:49:03 UTC) #6
Message was sent while issue was closed.
Change committed as 275109

Powered by Google App Engine
This is Rietveld 408576698