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

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

Issue 302803002: Refactor app list so AppsGridView owns the PaginationModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error (conflict). Created 6 years, 7 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 | « ui/app_list/views/app_list_main_view_unittest.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.h
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
index fb1e065513390ff940b0875035966bb97aee8c3a..f99bdf402339233a054633bdb6bcd100037b0683 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -45,7 +45,7 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
// Initializes the widget and use a given |anchor| plus an |anchor_offset| for
// positioning.
void InitAsBubbleAttachedToAnchor(gfx::NativeView parent,
- PaginationModel* pagination_model,
+ int initial_apps_page,
views::View* anchor,
const gfx::Vector2d& anchor_offset,
views::BubbleBorder::Arrow arrow,
@@ -54,7 +54,7 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
// Initializes the widget and use a fixed |anchor_point_in_screen| for
// positioning.
void InitAsBubbleAtFixedLocation(gfx::NativeView parent,
- PaginationModel* pagination_model,
+ int initial_apps_page,
const gfx::Point& anchor_point_in_screen,
views::BubbleBorder::Arrow arrow,
bool border_accepts_events);
@@ -113,11 +113,14 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
AppListMainView* app_list_main_view() { return app_list_main_view_; }
+ // Gets the PaginationModel owned by this view's apps grid.
+ PaginationModel* GetAppsPaginationModel();
+
private:
friend class ::test::AppListViewTestApi;
void InitAsBubbleInternal(gfx::NativeView parent,
- PaginationModel* pagination_model,
+ int initial_apps_page,
views::BubbleBorder::Arrow arrow,
bool border_accepts_events,
const gfx::Vector2d& anchor_offset);
« no previous file with comments | « ui/app_list/views/app_list_main_view_unittest.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698