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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ContentsView* contents_view() const { return contents_view_; } | 66 ContentsView* contents_view() const { return contents_view_; } |
67 AppListModel* model() { return model_; } | 67 AppListModel* model() { return model_; } |
68 AppListViewDelegate* view_delegate() { return delegate_; } | 68 AppListViewDelegate* view_delegate() { return delegate_; } |
69 | 69 |
70 // Returns true if the app list should be centered and in landscape mode. | 70 // Returns true if the app list should be centered and in landscape mode. |
71 bool ShouldCenterWindow() const; | 71 bool ShouldCenterWindow() const; |
72 | 72 |
73 // Called when the search box's visibility is changed. | 73 // Called when the search box's visibility is changed. |
74 void NotifySearchBoxVisibilityChanged(); | 74 void NotifySearchBoxVisibilityChanged(); |
75 | 75 |
| 76 bool ShouldShowCustomLauncherPage() const; |
| 77 void UpdateCustomLauncherPageVisibility(); |
| 78 |
76 // Overridden from AppListModelObserver: | 79 // Overridden from AppListModelObserver: |
77 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; | 80 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; |
| 81 void OnSearchEngineIsGoogleChanged(bool is_google) override; |
78 | 82 |
79 private: | 83 private: |
80 class IconLoader; | 84 class IconLoader; |
81 | 85 |
82 // Adds the ContentsView. | 86 // Adds the ContentsView. |
83 void AddContentsViews(); | 87 void AddContentsViews(); |
84 | 88 |
85 // Gets the PaginationModel owned by the AppsGridView. | 89 // Gets the PaginationModel owned by the AppsGridView. |
86 PaginationModel* GetAppsPaginationModel(); | 90 PaginationModel* GetAppsPaginationModel(); |
87 | 91 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ScopedVector<IconLoader> pending_icon_loaders_; | 127 ScopedVector<IconLoader> pending_icon_loaders_; |
124 | 128 |
125 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 129 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
126 | 130 |
127 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 131 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
128 }; | 132 }; |
129 | 133 |
130 } // namespace app_list | 134 } // namespace app_list |
131 | 135 |
132 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 136 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |