Chromium Code Reviews| Index: ui/app_list/views/apps_container_view.h |
| diff --git a/ui/app_list/views/apps_container_view.h b/ui/app_list/views/apps_container_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e72747fa674062f1c0a4fa7f77a623bb51629d26 |
| --- /dev/null |
| +++ b/ui/app_list/views/apps_container_view.h |
| @@ -0,0 +1,64 @@ |
| +// 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; |
| + |
| + |
| +class AppsContainerView : public views::View { |
| + public: |
| + AppsContainerView(AppListMainView* app_list_main_view, |
| + PaginationModel* pagination_model, |
| + AppListModel* model, |
| + content::WebContents* start_page_contents); |
| + virtual ~AppsContainerView(); |
| + |
| + 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.
|
| + |
| + // 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; |
| + |
| + 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_ |