OLD | NEW |
---|---|
(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_APP_LIST_FOLDER_VIEW_H_ | |
6 #define UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ | |
7 | |
8 #include "ui/views/controls/button/button.h" | |
9 #include "ui/views/view.h" | |
10 | |
11 namespace content { | |
12 class WebContents; | |
13 } | |
14 | |
15 namespace views { | |
16 class ViewModel; | |
17 } | |
18 | |
19 namespace app_list { | |
20 | |
21 class AppsGridView; | |
22 class AppListFolderItem; | |
23 class AppListMainView; | |
24 class AppListModel; | |
25 class ContentsView; | |
26 class FolderHeaderView; | |
27 class PaginationModel; | |
28 | |
29 class AppListFolderView : public views::View, | |
30 public views::ButtonListener { | |
31 public: | |
32 AppListFolderView(ContentsView* contents_view, | |
33 AppListModel* model, | |
34 AppListMainView* app_list_main_view, | |
35 PaginationModel* pagination_model, | |
36 content::WebContents* start_page_contents); | |
37 virtual ~AppListFolderView(); | |
38 | |
39 void SetAppListFolderItem(AppListFolderItem* folder); | |
40 | |
41 private: | |
42 void CalculateIdealBounds(); | |
43 | |
44 // Overridden from views::View: | |
45 virtual gfx::Size GetPreferredSize() OVERRIDE; | |
46 virtual void Layout() OVERRIDE; | |
47 | |
48 // Overridden from views::ButtonListener: | |
49 virtual void ButtonPressed(views::Button* sender, | |
50 const ui::Event& event) OVERRIDE; | |
51 | |
52 ContentsView* contents_view_; // Not owned. | |
53 FolderHeaderView* folder_header_view_; // Owned by views hierarchy. | |
54 AppsGridView* items_grid_view_; // Owned by the view. | |
xiyuan
2013/10/17 23:50:30
// Owned by views hierarchy.
jennyz
2013/10/18 22:09:02
Done.
| |
55 | |
56 scoped_ptr<views::ViewModel> view_model_; | |
57 | |
58 AppListFolderItem* folder_item_; // Not owned. | |
59 | |
60 DISALLOW_COPY_AND_ASSIGN(AppListFolderView); | |
61 | |
xiyuan
2013/10/17 23:50:30
nit: nuke the empty line
jennyz
2013/10/18 22:09:02
Done.
| |
62 }; | |
63 | |
64 } // namespace app_list | |
65 | |
66 #endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ | |
67 | |
68 | |
OLD | NEW |