OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LIST_MAIN_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Returns true if the app list should be centered and in landscape mode. | 75 // Returns true if the app list should be centered and in landscape mode. |
76 bool ShouldCenterWindow() const; | 76 bool ShouldCenterWindow() const; |
77 | 77 |
78 // Called when the search box's visibility is changed. | 78 // Called when the search box's visibility is changed. |
79 void NotifySearchBoxVisibilityChanged(); | 79 void NotifySearchBoxVisibilityChanged(); |
80 | 80 |
81 // Initialize widgets that live inside the app list's main widget. | 81 // Initialize widgets that live inside the app list's main widget. |
82 void InitWidgets(); | 82 void InitWidgets(); |
83 | 83 |
| 84 bool ShouldShowCustomLauncherPage() const; |
| 85 void UpdateCustomLauncherPageVisibility(); |
| 86 |
84 // Overridden from AppListModelObserver: | 87 // Overridden from AppListModelObserver: |
85 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; | 88 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; |
| 89 void OnSearchEngineIsGoogleChanged(bool is_google) override; |
86 | 90 |
87 private: | 91 private: |
88 class IconLoader; | 92 class IconLoader; |
89 | 93 |
90 // Adds the ContentsView. | 94 // Adds the ContentsView. |
91 void AddContentsViews(); | 95 void AddContentsViews(); |
92 | 96 |
93 // Gets the PaginationModel owned by the AppsGridView. | 97 // Gets the PaginationModel owned by the AppsGridView. |
94 PaginationModel* GetAppsPaginationModel(); | 98 PaginationModel* GetAppsPaginationModel(); |
95 | 99 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ScopedVector<IconLoader> pending_icon_loaders_; | 140 ScopedVector<IconLoader> pending_icon_loaders_; |
137 | 141 |
138 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 142 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
139 | 143 |
140 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 144 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
141 }; | 145 }; |
142 | 146 |
143 } // namespace app_list | 147 } // namespace app_list |
144 | 148 |
145 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 149 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |