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

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

Issue 555753002: Experimental app list: Change transition animations of top-level pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use gfx::Tween::RectValueBetween. Created 6 years, 3 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 | « no previous file | 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 17ecf9366e29ae6988ce2bacfb969a3303db6ba1..dbb74cf8d50c754e8ff572acad645d529abe3235 100644
--- a/ui/app_list/views/contents_view.h
+++ b/ui/app_list/views/contents_view.h
@@ -15,6 +15,10 @@
#include "ui/app_list/pagination_model_observer.h"
#include "ui/views/view.h"
+namespace gfx {
+class Rect;
+}
+
namespace views {
class ViewModel;
}
@@ -84,7 +88,8 @@ class APP_LIST_EXPORT ContentsView : public views::View,
// True if |named_page| is the current active laucher page.
bool IsNamedPageActive(NamedPage named_page) const;
- // Gets the index of a launcher page in |view_model_|, by NamedPage.
+ // Gets the index of a launcher page in |view_model_|, by NamedPage. Returns
+ // -1 if there is no view for |named_page|.
int GetPageIndexForNamedPage(NamedPage named_page) const;
int NumLauncherPages() const;
@@ -121,6 +126,10 @@ class APP_LIST_EXPORT ContentsView : public views::View,
// Invoked when active view is changed.
void ActivePageChanged(bool show_search_results);
+ // Gets the origin (the off-screen resting place) for a given launcher page
+ // with index |page_index|.
+ gfx::Rect GetOffscreenPageBounds(int page_index) const;
+
// 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 | « no previous file | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698