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

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

Issue 683703002: Notify launcher page with onTransitionChanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher_page_api_show_state_notify
Patch Set: nullptr like it's 1999 Created 6 years, 2 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_view.h
diff --git a/ui/app_list/views/contents_view.h b/ui/app_list/views/contents_view.h
index ade7fdbf388fe4283e79e5a78e7a565b49903b8e..8290dda0b9cddba46aab72b7d11e042d3a61b94b 100644
--- a/ui/app_list/views/contents_view.h
+++ b/ui/app_list/views/contents_view.h
@@ -78,10 +78,14 @@ class APP_LIST_EXPORT ContentsView : public views::View,
// True if |state| is the current active laucher page.
bool IsStateActive(AppListModel::State state) const;
- // Gets the index of a launcher page in |view_model_|, by State. Returns
+ // Gets the index of a launcher page in |view_model_| by State. Returns
// -1 if there is no view for |state|.
int GetPageIndexForState(AppListModel::State state) const;
+ // Gets the State of a launcher page in |view_model_| by index. Returns
+ // INVALID_STATE if there is no State for |index|.
+ AppListModel::State GetStateForPageIndex(int index) const;
+
int NumLauncherPages() const;
void Prerender();
@@ -95,7 +99,7 @@ class APP_LIST_EXPORT ContentsView : public views::View,
void AddBlankPageForTesting();
// Returns the pagination model for the ContentsView.
- const PaginationModel& pagination_model() { return pagination_model_; }
+ PaginationModel* pagination_model() { return &pagination_model_; }
// Returns search box bounds to use for content views that do not specify
// their own custom layout.

Powered by Google App Engine
This is Rietveld 408576698