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

Side by Side Diff: ui/app_list/views/apps_container_view.h

Issue 220393003: Add a unit test for resetting the app list on a reshow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trent_whole_app_list_unit_test
Patch Set: Created 6 years, 8 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
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 "ui/app_list/app_list_export.h"
8 #include "ui/app_list/app_list_folder_item.h" 9 #include "ui/app_list/app_list_folder_item.h"
9 #include "ui/app_list/views/top_icon_animation_view.h" 10 #include "ui/app_list/views/top_icon_animation_view.h"
10 #include "ui/views/view.h" 11 #include "ui/views/view.h"
11 12
12 namespace content { 13 namespace content {
13 class WebContents; 14 class WebContents;
14 } 15 }
15 16
16 namespace app_list { 17 namespace app_list {
17 18
18 class AppsGridView; 19 class AppsGridView;
19 class ApplicationDragAndDropHost; 20 class ApplicationDragAndDropHost;
20 class AppListFolderItem; 21 class AppListFolderItem;
21 class AppListFolderView; 22 class AppListFolderView;
22 class AppListMainView; 23 class AppListMainView;
23 class AppListModel; 24 class AppListModel;
24 class ContentsView; 25 class ContentsView;
25 class FolderBackgroundView; 26 class FolderBackgroundView;
26 class PaginationModel; 27 class PaginationModel;
27 28
28 // AppsContainerView contains a root level AppsGridView to render the root level 29 // AppsContainerView contains a root level AppsGridView to render the root level
29 // 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
30 // 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.
31 class AppsContainerView : public views::View, 32 class APP_LIST_EXPORT AppsContainerView : public views::View,
32 public TopIconAnimationObserver { 33 public TopIconAnimationObserver {
33 public: 34 public:
34 AppsContainerView(AppListMainView* app_list_main_view, 35 AppsContainerView(AppListMainView* app_list_main_view,
35 PaginationModel* pagination_model, 36 PaginationModel* pagination_model,
36 AppListModel* model); 37 AppListModel* model);
37 virtual ~AppsContainerView(); 38 virtual ~AppsContainerView();
38 39
39 // Shows the active folder content specified by |folder_item|. 40 // Shows the active folder content specified by |folder_item|.
40 void ShowActiveFolder(AppListFolderItem* folder_item); 41 void ShowActiveFolder(AppListFolderItem* folder_item);
41 42
42 // Shows the root level apps list. This is called when UI navigate back from 43 // Shows the root level apps list. This is called when UI navigate back from
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 size_t top_icon_animation_pending_count_; 102 size_t top_icon_animation_pending_count_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(AppsContainerView); 104 DISALLOW_COPY_AND_ASSIGN(AppsContainerView);
104 }; 105 };
105 106
106 } // namespace app_list 107 } // namespace app_list
107 108
108 109
109 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_ 110 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698