| 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; | |
| 36 class SearchResult; | 35 class SearchResult; |
| 37 class SpeechUIModel; | 36 class SpeechUIModel; |
| 38 | 37 |
| 39 class APP_LIST_EXPORT AppListViewDelegate { | 38 class APP_LIST_EXPORT AppListViewDelegate { |
| 40 public: | 39 public: |
| 41 // A user of the app list. | 40 // A user of the app list. |
| 42 struct APP_LIST_EXPORT User { | 41 struct APP_LIST_EXPORT User { |
| 43 User(); | 42 User(); |
| 44 User(const User& other); | 43 User(const User& other); |
| 45 ~User(); | 44 ~User(); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 138 |
| 140 // Invoked when the custom launcher page's subpage should be popped. | 139 // Invoked when the custom launcher page's subpage should be popped. |
| 141 virtual void CustomLauncherPagePopSubpage() = 0; | 140 virtual void CustomLauncherPagePopSubpage() = 0; |
| 142 #endif | 141 #endif |
| 143 | 142 |
| 144 // Returns true if the delegate supports speech recognition. | 143 // Returns true if the delegate supports speech recognition. |
| 145 virtual bool IsSpeechRecognitionEnabled() = 0; | 144 virtual bool IsSpeechRecognitionEnabled() = 0; |
| 146 | 145 |
| 147 // Returns the list of users (for AppListMenu). | 146 // Returns the list of users (for AppListMenu). |
| 148 virtual const Users& GetUsers() const = 0; | 147 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 }; | 148 }; |
| 154 | 149 |
| 155 } // namespace app_list | 150 } // namespace app_list |
| 156 | 151 |
| 157 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 152 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |