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

Issue 336313010: App List: Refactor ContentsSwitcherView so it doesn't hard-code pages. (Closed)

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

Description

App List: Refactor ContentsSwitcherView so it doesn't hard-code pages. Removed hard-coded addition of start page and apps buttons in the ContentsSwitcherView constructor. Instead, adding a page to ContentsView automatically adds the appropriate button to ContentsSwitcherView. ContentsView and ContentsSwitcherView now include pointers to one another (so initialization of ContentsView is split into a separate Init phase). ContentsView::AddLauncherPage now takes a resource ID. BUG=386004 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278674

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments (a bit of a refactor). #

Patch Set 3 : Rebase. #

Patch Set 4 : Fixed crash and comment for InitNamedPages (don't need to set contents_switcher_view_). #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -45 lines) Patch
M ui/app_list/views/app_list_main_view.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M ui/app_list/views/contents_switcher_view.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M ui/app_list/views/contents_switcher_view.cc View 1 2 chunks +5 lines, -13 lines 0 comments Download
M ui/app_list/views/contents_view.h View 1 2 3 4 5 chunks +20 lines, -7 lines 0 comments Download
M ui/app_list/views/contents_view.cc View 1 2 3 4 4 chunks +30 lines, -18 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Matt Giuca
6 years, 6 months ago (2014-06-18 03:24:27 UTC) #1
calamity
https://codereview.chromium.org/336313010/diff/10006/ui/app_list/views/app_list_main_view.cc File ui/app_list/views/app_list_main_view.cc (right): https://codereview.chromium.org/336313010/diff/10006/ui/app_list/views/app_list_main_view.cc#newcode115 ui/app_list/views/app_list_main_view.cc:115: new ContentsView(this, contents_switcher_view_, model_, delegate_); I think ContentsSwitcherView should ...
6 years, 6 months ago (2014-06-18 05:22:29 UTC) #2
Matt Giuca
https://codereview.chromium.org/336313010/diff/10006/ui/app_list/views/app_list_main_view.cc File ui/app_list/views/app_list_main_view.cc (right): https://codereview.chromium.org/336313010/diff/10006/ui/app_list/views/app_list_main_view.cc#newcode115 ui/app_list/views/app_list_main_view.cc:115: new ContentsView(this, contents_switcher_view_, model_, delegate_); On 2014/06/18 05:22:29, calamity ...
6 years, 6 months ago (2014-06-18 06:47:02 UTC) #3
calamity
lgtm
6 years, 6 months ago (2014-06-19 03:04:30 UTC) #4
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 6 months ago (2014-06-19 23:13:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/336313010/120001
6 years, 6 months ago (2014-06-19 23:15:04 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 04:44:55 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 11:29:32 UTC) #8
Message was sent while issue was closed.
Change committed as 278674

Powered by Google App Engine
This is Rietveld 408576698