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

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: fix mac compile 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
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/contents_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_view.h
diff --git a/ui/app_list/views/contents_view.h b/ui/app_list/views/contents_view.h
index ade7fdbf388fe4283e79e5a78e7a565b49903b8e..50adb7ba26668ca108f40d75290bde5545587db9 100644
--- a/ui/app_list/views/contents_view.h
+++ b/ui/app_list/views/contents_view.h
@@ -49,7 +49,7 @@ class APP_LIST_EXPORT ContentsView : public views::View,
// Initialize the pages of the launcher. In the experimental launcher, should
// be called after set_contents_switcher_view(), or switcher buttons will not
// be created.
- void Init(AppListModel* model, AppListViewDelegate* view_delegate);
+ void Init(AppListModel* model);
// The app list gets closed and drag and drop operations need to be cancelled.
void CancelDrag();
@@ -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();
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698