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

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: Created 6 years, 1 month 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..58f7a12dcdde260a1619dfd7e266d9854c036f01 100644
--- a/ui/app_list/views/contents_view.h
+++ b/ui/app_list/views/contents_view.h
@@ -131,6 +131,12 @@ class APP_LIST_EXPORT ContentsView : public views::View,
// with index |page_index|.
gfx::Rect GetOffscreenPageBounds(int page_index) const;
+ // Notifies the view delegate that the custom launcher page's animation has
+ // changed.
+ void NotifyCustomLauncherPageAnimationChanged(double progress,
+ int current_page,
+ int target_page);
+
// Calculates and sets the bounds for the subviews. If there is currently an
// animation, this positions the views as appropriate for the current frame.
void UpdatePageBounds();
@@ -159,6 +165,8 @@ class APP_LIST_EXPORT ContentsView : public views::View,
SearchResultListView* search_results_view_;
StartPageView* start_page_view_;
+ AppListViewDelegate* view_delegate_;
tapted 2014/11/06 06:05:45 needs to be initialized. But I'd prefer exposing
calamity 2014/11/07 03:43:29 Done.
+
AppListMainView* app_list_main_view_; // Parent view, owns this.
// Sibling view, owned by |app_list_main_view_|.
ContentsSwitcherView* contents_switcher_view_;

Powered by Google App Engine
This is Rietveld 408576698