OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "ui/app_list/app_list_export.h" | 11 #include "ui/app_list/app_list_export.h" |
12 #include "ui/views/view.h" | 12 #include "ui/views/view.h" |
13 | 13 |
14 namespace app_list { | 14 namespace app_list { |
15 | 15 |
16 class AllAppsTileItemView; | 16 class AllAppsTileItemView; |
17 class AppListMainView; | 17 class AppListMainView; |
18 class AppListViewDelegate; | 18 class AppListViewDelegate; |
| 19 class CustomLauncherPageBackgroundView; |
19 class SearchResultTileItemView; | 20 class SearchResultTileItemView; |
20 class TileItemView; | 21 class TileItemView; |
21 | 22 |
22 // The start page for the experimental app list. | 23 // The start page for the experimental app list. |
23 class APP_LIST_EXPORT StartPageView : public views::View { | 24 class APP_LIST_EXPORT StartPageView : public views::View { |
24 public: | 25 public: |
25 StartPageView(AppListMainView* app_list_main_view, | 26 StartPageView(AppListMainView* app_list_main_view, |
26 AppListViewDelegate* view_delegate); | 27 AppListViewDelegate* view_delegate); |
27 ~StartPageView() override; | 28 ~StartPageView() override; |
28 | 29 |
(...skipping 19 matching lines...) Expand all Loading... |
48 | 49 |
49 // Returns search box bounds to use when the start page is active. | 50 // Returns search box bounds to use when the start page is active. |
50 gfx::Rect GetSearchBoxBounds() const; | 51 gfx::Rect GetSearchBoxBounds() const; |
51 | 52 |
52 private: | 53 private: |
53 class StartPageTilesContainer; | 54 class StartPageTilesContainer; |
54 | 55 |
55 void InitInstantContainer(); | 56 void InitInstantContainer(); |
56 void MaybeOpenCustomLauncherPage(); | 57 void MaybeOpenCustomLauncherPage(); |
57 | 58 |
| 59 void SetCustomLauncherPageSelected(bool selected); |
| 60 |
58 TileItemView* GetTileItemView(size_t index); | 61 TileItemView* GetTileItemView(size_t index); |
59 | 62 |
60 // The parent view of ContentsView which is the parent of this view. | 63 // The parent view of ContentsView which is the parent of this view. |
61 AppListMainView* app_list_main_view_; | 64 AppListMainView* app_list_main_view_; |
62 | 65 |
63 AppListViewDelegate* view_delegate_; // Owned by AppListView. | 66 AppListViewDelegate* view_delegate_; // Owned by AppListView. |
64 | 67 |
65 views::View* search_box_spacer_view_; // Owned by views hierarchy. | 68 views::View* search_box_spacer_view_; // Owned by views hierarchy. |
66 views::View* instant_container_; // Owned by views hierarchy. | 69 views::View* instant_container_; // Owned by views hierarchy. |
| 70 CustomLauncherPageBackgroundView* |
| 71 custom_launcher_page_background_; // Owned by view hierarchy. |
67 StartPageTilesContainer* tiles_container_; // Owned by views hierarchy. | 72 StartPageTilesContainer* tiles_container_; // Owned by views hierarchy. |
68 | 73 |
69 DISALLOW_COPY_AND_ASSIGN(StartPageView); | 74 DISALLOW_COPY_AND_ASSIGN(StartPageView); |
70 }; | 75 }; |
71 | 76 |
72 } // namespace app_list | 77 } // namespace app_list |
73 | 78 |
74 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ | 79 #endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_ |
OLD | NEW |