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

Side by Side Diff: ui/app_list/views/apps_container_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, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/app_list/app_list_folder_item.h" 10 #include "ui/app_list/app_list_folder_item.h"
11 #include "ui/app_list/views/top_icon_animation_view.h" 11 #include "ui/app_list/views/top_icon_animation_view.h"
12 #include "ui/views/view.h" 12 #include "ui/views/view.h"
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } 16 }
17 17
18 namespace app_list { 18 namespace app_list {
19 19
20 class AppsGridView; 20 class AppsGridView;
21 class ApplicationDragAndDropHost; 21 class ApplicationDragAndDropHost;
22 class AppListFolderItem; 22 class AppListFolderItem;
23 class AppListFolderView; 23 class AppListFolderView;
24 class AppListMainView; 24 class AppListMainView;
25 class AppListModel; 25 class AppListModel;
26 class ContentsView; 26 class ContentsView;
27 class FolderBackgroundView; 27 class FolderBackgroundView;
28 class PaginationModel;
29 28
30 // AppsContainerView contains a root level AppsGridView to render the root level 29 // AppsContainerView contains a root level AppsGridView to render the root level
31 // app items, and a AppListFolderView to render the app items inside the 30 // app items, and a AppListFolderView to render the app items inside the
32 // active folder. Only one if them is visible to user at any time. 31 // active folder. Only one if them is visible to user at any time.
33 class AppsContainerView : public views::View, 32 class AppsContainerView : public views::View,
34 public TopIconAnimationObserver { 33 public TopIconAnimationObserver {
35 public: 34 public:
36 AppsContainerView(AppListMainView* app_list_main_view, 35 AppsContainerView(AppListMainView* app_list_main_view,
37 PaginationModel* pagination_model,
38 AppListModel* model); 36 AppListModel* model);
39 virtual ~AppsContainerView(); 37 virtual ~AppsContainerView();
40 38
41 // Shows the active folder content specified by |folder_item|. 39 // Shows the active folder content specified by |folder_item|.
42 void ShowActiveFolder(AppListFolderItem* folder_item); 40 void ShowActiveFolder(AppListFolderItem* folder_item);
43 41
44 // Shows the root level apps list. This is called when UI navigate back from 42 // Shows the root level apps list. This is called when UI navigate back from
45 // a folder view with |folder_item|. If |folder_item| is NULL skips animation. 43 // a folder view with |folder_item|. If |folder_item| is NULL skips animation.
46 void ShowApps(AppListFolderItem* folder_item); 44 void ShowApps(AppListFolderItem* folder_item);
47 45
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 110
113 size_t top_icon_animation_pending_count_; 111 size_t top_icon_animation_pending_count_;
114 112
115 DISALLOW_COPY_AND_ASSIGN(AppsContainerView); 113 DISALLOW_COPY_AND_ASSIGN(AppsContainerView);
116 }; 114 };
117 115
118 } // namespace app_list 116 } // namespace app_list
119 117
120 118
121 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_ 119 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698