DescriptionApp 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. #
Messages
Total messages: 8 (0 generated)
|