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

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

Issue 27777002: Implement app list folder management page UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove a useless parameter from AppsContainerView constructor. Created 7 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
7
8 #include "ui/views/view.h"
9
10 namespace content {
11 class WebContents;
12 }
13
14 namespace app_list {
15
16 class AppsGridView;
17 class AppListFolderItem;
18 class AppListFolderView;
19 class AppListMainView;
20 class AppListModel;
21 class ContentsView;
22 class PaginationModel;
23
24
25 class AppsContainerView : public views::View {
26 public:
27 AppsContainerView(AppListMainView* app_list_main_view,
28 PaginationModel* pagination_model,
29 AppListModel* model,
30 content::WebContents* start_page_contents);
31 virtual ~AppsContainerView();
32
33 AppsGridView* apps_grid_view() { return apps_grid_view_; }
xiyuan 2013/10/18 22:36:00 nit: move accessors to the end of methods
jennyz 2013/10/18 22:53:19 Done.
34
35 // Shows the active folder content specified by |folder_item|.
36 void ShowActiveFolder(AppListFolderItem* folder_item);
37
38 // Shows the apps list from root.
39 void ShowApps();
40
41 // Overridden from views::View:
42 virtual gfx::Size GetPreferredSize() OVERRIDE;
43 virtual void Layout() OVERRIDE;
44
45 private:
46 enum ShowState {
47 SHOW_APPS,
48 SHOW_ACTIVE_FOLDER,
49 };
50
51 void SetShowState(ShowState show_state);
52
53 AppListModel* model_;
54 AppsGridView* apps_grid_view_; // Owned by views hierarchy.
55 AppListFolderView* app_list_folder_view_; // Owned by views hierarchy.
56 ShowState show_state_;
57
58 DISALLOW_COPY_AND_ASSIGN(AppsContainerView);
59 };
60
61 } // namespace app_list
62
63
64 #endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698