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

Unified Diff: trunk/src/ui/app_list/views/apps_container_view.h

Issue 35783003: Revert 230227 "Implement app list folder management page UI, inc..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
« no previous file with comments | « trunk/src/ui/app_list/views/app_list_view.h ('k') | trunk/src/ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/app_list/views/apps_container_view.h
===================================================================
--- trunk/src/ui/app_list/views/apps_container_view.h (revision 230254)
+++ trunk/src/ui/app_list/views/apps_container_view.h (working copy)
@@ -1,66 +0,0 @@
-// 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_APPS_CONTAINER_VIEW_H_
-#define UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
-
-#include "ui/views/view.h"
-
-namespace content {
-class WebContents;
-}
-
-namespace app_list {
-
-class AppsGridView;
-class AppListFolderItem;
-class AppListFolderView;
-class AppListMainView;
-class AppListModel;
-class ContentsView;
-class PaginationModel;
-
-// AppsContainerView contains a root level AppsGridView to render the root level
-// app items, and a AppListFolderView to render the app items inside the
-// active folder. Only one if them is visible to user at any time.
-class AppsContainerView : public views::View {
- public:
- AppsContainerView(AppListMainView* app_list_main_view,
- PaginationModel* pagination_model,
- AppListModel* model,
- content::WebContents* start_page_contents);
- virtual ~AppsContainerView();
-
- // Shows the active folder content specified by |folder_item|.
- void ShowActiveFolder(AppListFolderItem* folder_item);
-
- // Shows the apps list from root.
- void ShowApps();
-
- // Overridden from views::View:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
- virtual void Layout() OVERRIDE;
-
- AppsGridView* apps_grid_view() { return apps_grid_view_; }
-
- private:
- enum ShowState {
- SHOW_APPS,
- SHOW_ACTIVE_FOLDER,
- };
-
- void SetShowState(ShowState show_state);
-
- AppListModel* model_;
- AppsGridView* apps_grid_view_; // Owned by views hierarchy.
- AppListFolderView* app_list_folder_view_; // Owned by views hierarchy.
- ShowState show_state_;
-
- DISALLOW_COPY_AND_ASSIGN(AppsContainerView);
-};
-
-} // namespace app_list
-
-
-#endif // UI_APP_LIST_VIEWS_APPS_CONTAINER_VIEW_H_
« no previous file with comments | « trunk/src/ui/app_list/views/app_list_view.h ('k') | trunk/src/ui/app_list/views/apps_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698