| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Get the start page web contents. Owned by the AppListViewDelegate. | 142 // Get the start page web contents. Owned by the AppListViewDelegate. |
| 143 virtual content::WebContents* GetStartPageContents() = 0; | 143 virtual content::WebContents* GetStartPageContents() = 0; |
| 144 | 144 |
| 145 // Get the web contents for speech recognition or NULL if speech recognition | 145 // Get the web contents for speech recognition or NULL if speech recognition |
| 146 // is unavailable. | 146 // is unavailable. |
| 147 virtual content::WebContents* GetSpeechRecognitionContents() = 0; | 147 virtual content::WebContents* GetSpeechRecognitionContents() = 0; |
| 148 | 148 |
| 149 // Returns the list of users (for AppListMenu). | 149 // Returns the list of users (for AppListMenu). |
| 150 virtual const Users& GetUsers() const = 0; | 150 virtual const Users& GetUsers() const = 0; |
| 151 | 151 |
| 152 // Returns true if the app list should be centered and in landscape mode. |
| 153 virtual bool ShouldCenterWindow() const = 0; |
| 154 |
| 152 // Adds/removes an observer for profile changes. | 155 // Adds/removes an observer for profile changes. |
| 153 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | 156 virtual void AddObserver(AppListViewDelegateObserver* observer) {} |
| 154 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | 157 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} |
| 155 }; | 158 }; |
| 156 | 159 |
| 157 } // namespace app_list | 160 } // namespace app_list |
| 158 | 161 |
| 159 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 162 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |