Index: ui/app_list/views/app_list_folder_view.h |
diff --git a/ui/app_list/views/app_list_folder_view.h b/ui/app_list/views/app_list_folder_view.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5cc88af8d02af8c9330351f5203f478c2f611286 |
--- /dev/null |
+++ b/ui/app_list/views/app_list_folder_view.h |
@@ -0,0 +1,68 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ |
+#define UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ |
+ |
+#include "ui/views/controls/button/button.h" |
+#include "ui/views/view.h" |
+ |
+namespace content { |
+class WebContents; |
+} |
+ |
+namespace views { |
+class ViewModel; |
+} |
+ |
+namespace app_list { |
+ |
+class AppsGridView; |
+class AppListFolderItem; |
+class AppListMainView; |
+class AppListModel; |
+class ContentsView; |
+class FolderHeaderView; |
+class PaginationModel; |
+ |
+class AppListFolderView : public views::View, |
+ public views::ButtonListener { |
+ public: |
+ AppListFolderView(ContentsView* contents_view, |
+ AppListModel* model, |
+ AppListMainView* app_list_main_view, |
+ PaginationModel* pagination_model, |
+ content::WebContents* start_page_contents); |
+ virtual ~AppListFolderView(); |
+ |
+ void SetAppListFolderItem(AppListFolderItem* folder); |
+ |
+ private: |
+ void CalculateIdealBounds(); |
+ |
+ // Overridden from views::View: |
+ virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ virtual void Layout() OVERRIDE; |
+ |
+ // Overridden from views::ButtonListener: |
+ virtual void ButtonPressed(views::Button* sender, |
+ const ui::Event& event) OVERRIDE; |
+ |
+ ContentsView* contents_view_; // Not owned. |
+ FolderHeaderView* folder_header_view_; // Owned by views hierarchy. |
+ 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.
|
+ |
+ scoped_ptr<views::ViewModel> view_model_; |
+ |
+ AppListFolderItem* folder_item_; // Not owned. |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AppListFolderView); |
+ |
xiyuan
2013/10/17 23:50:30
nit: nuke the empty line
jennyz
2013/10/18 22:09:02
Done.
|
+}; |
+ |
+} // namespace app_list |
+ |
+#endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ |
+ |
+ |