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

Unified Diff: ui/app_list/views/contents_switcher_view.h

Issue 336313010: App List: Refactor ContentsSwitcherView so it doesn't hard-code pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/contents_switcher_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/contents_switcher_view.h
diff --git a/ui/app_list/views/contents_switcher_view.h b/ui/app_list/views/contents_switcher_view.h
index 338a36acea9bc62a0c14f442ce6a0f656ff98164..3f1bbf40ea17bdbbf39d4335ba5565ba9e51ab47 100644
--- a/ui/app_list/views/contents_switcher_view.h
+++ b/ui/app_list/views/contents_switcher_view.h
@@ -22,11 +22,12 @@ class ContentsSwitcherView : public views::View, public views::ButtonListener {
ContentsView* contents_view() const { return contents_view_; }
- private:
- // Adds a switcher button using |resource_id| as the button's image and |tag|
- // as the button's id.
- void AddSwitcherButton(int resource_id, int tag);
+ // Adds a switcher button using |resource_id| as the button's image, which
+ // opens the page with index |page_index| in the ContentsView. |resource_id|
+ // is ignored if it is 0.
+ void AddSwitcherButton(int resource_id, int page_index);
+ private:
// Overridden from views::View:
virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual void Layout() OVERRIDE;
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/contents_switcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698