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

Unified Diff: ui/app_list/views/app_list_folder_view.h

Issue 27777002: Implement app list folder management page UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. 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 side-by-side diff with in-line comments
Download patch
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..ffa91e7061d3931e3bcfbb2efccd5bd61ddc88f6
--- /dev/null
+++ b/ui/app_list/views/app_list_folder_view.h
@@ -0,0 +1,70 @@
+// 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/app_list/views/folder_header_view.h"
+#include "ui/app_list/views/folder_header_view_delegate.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 AppsContainerView;
+class AppsGridView;
+class AppListFolderItem;
+class AppListMainView;
+class AppListModel;
+class FolderHeaderView;
+class PaginationModel;
+
+class AppListFolderView : public views::View,
+ public FolderHeaderViewDelegate {
+ public:
+ AppListFolderView(AppsContainerView* container_view,
+ AppListModel* model,
+ AppListMainView* app_list_main_view,
+ content::WebContents* start_page_contents);
+ virtual ~AppListFolderView();
+
+ void SetAppListFolderItem(AppListFolderItem* folder);
+
+ // Overridden from views::View:
+ virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual void Layout() OVERRIDE;
+
+ private:
+ void CalculateIdealBounds();
+
+ // Overridden from FolderHeaderViewDelegate:
+ virtual void NavigateBack(AppListFolderItem* item,
+ const ui::Event& event_flags) OVERRIDE;
+
+ AppsContainerView* container_view_; // Not owned.
+ FolderHeaderView* folder_header_view_; // Owned by views hierarchy.
+ AppsGridView* items_grid_view_; // Owned by the views hierarchy.
+
+ scoped_ptr<views::ViewModel> view_model_;
+
+ AppListFolderItem* folder_item_; // Not owned.
+
+ scoped_ptr<PaginationModel> pagination_model_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListFolderView);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
+
+

Powered by Google App Engine
This is Rietveld 408576698