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

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

Issue 186483004: Add a skeleton Start Page to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_change_experimental_animation
Patch Set: fix initialization order 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/contents_switcher_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 eb2ec6def49adf394a4e3b631d4014cc05660ad2..8348064d9b624973d8299ebe85c22f5cd5090a48 100644
--- a/ui/app_list/views/contents_view.h
+++ b/ui/app_list/views/contents_view.h
@@ -29,6 +29,7 @@ class AppListModel;
class AppListViewDelegate;
class AppsContainerView;
class PaginationModel;
+class StartPageView;
// A view to manage sub views under the search box (apps grid view + page
// switcher and search results). The two sets of sub views are mutually
@@ -36,7 +37,11 @@ class PaginationModel;
// and animates the transition between show states.
class ContentsView : public views::View {
public:
- enum ShowState { SHOW_APPS, SHOW_SEARCH_RESULTS, };
+ enum ShowState {
+ SHOW_APPS,
+ SHOW_SEARCH_RESULTS,
+ SHOW_START_PAGE,
+ };
ContentsView(AppListMainView* app_list_main_view,
PaginationModel* pagination_model,
@@ -62,6 +67,8 @@ class ContentsView : public views::View {
AppsContainerView* apps_container_view() { return apps_container_view_; }
+ ShowState show_state() const { return show_state_; }
+
// Overridden from views::View:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
@@ -83,6 +90,7 @@ class ContentsView : public views::View {
PaginationModel* pagination_model_; // Owned by AppListController.
AppsContainerView* apps_container_view_; // Owned by the views hierarchy.
+ AppListMainView* app_list_main_view_; // Parent view, owns this.
scoped_ptr<views::ViewModel> view_model_;
scoped_ptr<views::BoundsAnimator> bounds_animator_;
« no previous file with comments | « ui/app_list/views/contents_switcher_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