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/macros.h" | 10 #include "base/macros.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 60 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
61 // operations outside the application list. | 61 // operations outside the application list. |
62 void SetDragAndDropHostOfCurrentAppList( | 62 void SetDragAndDropHostOfCurrentAppList( |
63 ApplicationDragAndDropHost* drag_and_drop_host); | 63 ApplicationDragAndDropHost* drag_and_drop_host); |
64 | 64 |
65 ContentsView* contents_view() const { return contents_view_; } | 65 ContentsView* contents_view() const { return contents_view_; } |
66 AppListModel* model() { return model_; } | 66 AppListModel* model() { return model_; } |
67 AppListViewDelegate* view_delegate() { return delegate_; } | 67 AppListViewDelegate* view_delegate() { return delegate_; } |
68 | 68 |
69 // Returns true if the app list should be centered and in landscape mode. | |
70 bool ShouldCenterWindow() const; | |
71 | |
72 // Called when the search box's visibility is changed. | 69 // Called when the search box's visibility is changed. |
73 void NotifySearchBoxVisibilityChanged(); | 70 void NotifySearchBoxVisibilityChanged(); |
74 | 71 |
75 bool ShouldShowCustomLauncherPage() const; | 72 bool ShouldShowCustomLauncherPage() const; |
76 void UpdateCustomLauncherPageVisibility(); | 73 void UpdateCustomLauncherPageVisibility(); |
77 | 74 |
78 // Overridden from AppListModelObserver: | 75 // Overridden from AppListModelObserver: |
79 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; | 76 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; |
80 void OnSearchEngineIsGoogleChanged(bool is_google) override; | 77 void OnSearchEngineIsGoogleChanged(bool is_google) override; |
81 | 78 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ScopedVector<IconLoader> pending_icon_loaders_; | 121 ScopedVector<IconLoader> pending_icon_loaders_; |
125 | 122 |
126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 123 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
127 | 124 |
128 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 125 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
129 }; | 126 }; |
130 | 127 |
131 } // namespace app_list | 128 } // namespace app_list |
132 | 129 |
133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 130 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |