| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 virtual void ToggleSpeechRecognition() = 0; | 133 virtual void ToggleSpeechRecognition() = 0; |
| 134 | 134 |
| 135 // Shows the app list for the profile specified by |profile_path|. | 135 // Shows the app list for the profile specified by |profile_path|. |
| 136 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; | 136 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; |
| 137 | 137 |
| 138 #if defined(TOOLKIT_VIEWS) | 138 #if defined(TOOLKIT_VIEWS) |
| 139 // Creates the web view for the start page. The caller takes the ownership of | 139 // Creates the web view for the start page. The caller takes the ownership of |
| 140 // the returned view. | 140 // the returned view. |
| 141 virtual views::View* CreateStartPageWebView(const gfx::Size& size) = 0; | 141 virtual views::View* CreateStartPageWebView(const gfx::Size& size) = 0; |
| 142 | 142 |
| 143 // Creates the web view for the user-specified custom page. May return NULL. | 143 // Creates the web views for the user-specified custom pages. The caller takes |
| 144 // The caller takes ownership of the returned view. | 144 // ownership of the returned views. |
| 145 virtual views::View* CreateCustomPageWebView(const gfx::Size& size) = 0; | 145 virtual std::vector<views::View*> CreateCustomPageWebViews( |
| 146 const gfx::Size& size) = 0; |
| 146 #endif | 147 #endif |
| 147 | 148 |
| 148 // Returns true if the delegate supports speech recognition. | 149 // Returns true if the delegate supports speech recognition. |
| 149 virtual bool IsSpeechRecognitionEnabled() = 0; | 150 virtual bool IsSpeechRecognitionEnabled() = 0; |
| 150 | 151 |
| 151 // Returns the list of users (for AppListMenu). | 152 // Returns the list of users (for AppListMenu). |
| 152 virtual const Users& GetUsers() const = 0; | 153 virtual const Users& GetUsers() const = 0; |
| 153 | 154 |
| 154 // Returns true if the app list should be centered and in landscape mode. | 155 // Returns true if the app list should be centered and in landscape mode. |
| 155 virtual bool ShouldCenterWindow() const = 0; | 156 virtual bool ShouldCenterWindow() const = 0; |
| 156 | 157 |
| 157 // Adds/removes an observer for profile changes. | 158 // Adds/removes an observer for profile changes. |
| 158 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | 159 virtual void AddObserver(AppListViewDelegateObserver* observer) {} |
| 159 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | 160 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace app_list | 163 } // namespace app_list |
| 163 | 164 |
| 164 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 165 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |