| 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();
|
|
|