Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 | 25 |
| 26 #if defined(TOOLKIT_VIEWS) | 26 #if defined(TOOLKIT_VIEWS) |
| 27 namespace views { | 27 namespace views { |
| 28 class View; | 28 class View; |
| 29 } | 29 } |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 namespace app_list { | 32 namespace app_list { |
| 33 | 33 |
| 34 class AppListModel; | 34 class AppListModel; |
| 35 class AppListViewDelegateObserver; | 35 class AppListViewDelegateObserver; |
|
tapted
2016/09/19 07:28:58
remove
Matt Giuca
2016/09/21 03:41:26
Done. Good catch.
| |
| 36 class SearchResult; | 36 class SearchResult; |
| 37 class SpeechUIModel; | 37 class SpeechUIModel; |
| 38 | 38 |
| 39 class APP_LIST_EXPORT AppListViewDelegate { | 39 class APP_LIST_EXPORT AppListViewDelegate { |
| 40 public: | 40 public: |
| 41 // A user of the app list. | 41 // A user of the app list. |
| 42 struct APP_LIST_EXPORT User { | 42 struct APP_LIST_EXPORT User { |
| 43 User(); | 43 User(); |
| 44 User(const User& other); | 44 User(const User& other); |
| 45 ~User(); | 45 ~User(); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 | 139 |
| 140 // Invoked when the custom launcher page's subpage should be popped. | 140 // Invoked when the custom launcher page's subpage should be popped. |
| 141 virtual void CustomLauncherPagePopSubpage() = 0; | 141 virtual void CustomLauncherPagePopSubpage() = 0; |
| 142 #endif | 142 #endif |
| 143 | 143 |
| 144 // Returns true if the delegate supports speech recognition. | 144 // Returns true if the delegate supports speech recognition. |
| 145 virtual bool IsSpeechRecognitionEnabled() = 0; | 145 virtual bool IsSpeechRecognitionEnabled() = 0; |
| 146 | 146 |
| 147 // Returns the list of users (for AppListMenu). | 147 // Returns the list of users (for AppListMenu). |
| 148 virtual const Users& GetUsers() const = 0; | 148 virtual const Users& GetUsers() const = 0; |
| 149 | |
| 150 // Adds/removes an observer for profile changes. | |
| 151 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | |
| 152 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | |
| 153 }; | 149 }; |
| 154 | 150 |
| 155 } // namespace app_list | 151 } // namespace app_list |
| 156 | 152 |
| 157 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 153 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |