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

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

Issue 380613002: Experimental app list: Added a current page indicator to the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed spelling mistake Created 6 years, 5 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
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 3f1bbf40ea17bdbbf39d4335ba5565ba9e51ab47..09059bf51c6d55c22d8650aa7eb63f52a74db652 100644
--- a/ui/app_list/views/contents_switcher_view.h
+++ b/ui/app_list/views/contents_switcher_view.h
@@ -27,6 +27,9 @@ class ContentsSwitcherView : public views::View, public views::ButtonListener {
// is ignored if it is 0.
void AddSwitcherButton(int resource_id, int page_index);
+ // Changes the launcher page indicator to the selected page.
+ void SelectedPageChanged(int old_selected, int new_selected);
+
private:
// Overridden from views::View:
virtual gfx::Size GetPreferredSize() const OVERRIDE;
@@ -38,6 +41,8 @@ class ContentsSwitcherView : public views::View, public views::ButtonListener {
ContentsView* contents_view_; // Owned by views hierarchy.
views::View* buttons_; // Owned by views hierarchy.
+ // Stores Views owned by views hierarchy.
+ std::vector<views::View*> page_active_indicators_;
Matt Giuca 2014/07/09 07:01:20 I'm not sure if this is the right approach. We eve
calamity 2014/07/09 08:02:54 From a short discussion w/ Matt: We don't know wha
DISALLOW_COPY_AND_ASSIGN(ContentsSwitcherView);
};

Powered by Google App Engine
This is Rietveld 408576698