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 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "ui/app_list/app_list_export.h" | 15 #include "ui/app_list/app_list_export.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class FilePath; | 18 class FilePath; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class WebContents; | 22 class WebContents; |
23 } | 23 } |
24 | 24 |
25 namespace gfx { | 25 namespace gfx { |
26 class ImageSkia; | 26 class ImageSkia; |
| 27 class Rect; |
27 } | 28 } |
28 | 29 |
29 namespace app_list { | 30 namespace app_list { |
30 | 31 |
31 class AppListModel; | 32 class AppListModel; |
32 class AppListViewDelegateObserver; | 33 class AppListViewDelegateObserver; |
33 class SearchResult; | 34 class SearchResult; |
34 class SigninDelegate; | 35 class SigninDelegate; |
35 class SpeechUIModel; | 36 class SpeechUIModel; |
36 | 37 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Get the start page web contents. Owned by the AppListViewDelegate. | 143 // Get the start page web contents. Owned by the AppListViewDelegate. |
143 virtual content::WebContents* GetStartPageContents() = 0; | 144 virtual content::WebContents* GetStartPageContents() = 0; |
144 | 145 |
145 // Get the web contents for speech recognition or NULL if speech recognition | 146 // Get the web contents for speech recognition or NULL if speech recognition |
146 // is unavailable. | 147 // is unavailable. |
147 virtual content::WebContents* GetSpeechRecognitionContents() = 0; | 148 virtual content::WebContents* GetSpeechRecognitionContents() = 0; |
148 | 149 |
149 // Returns the list of users (for AppListMenu). | 150 // Returns the list of users (for AppListMenu). |
150 virtual const Users& GetUsers() const = 0; | 151 virtual const Users& GetUsers() const = 0; |
151 | 152 |
| 153 // Returns the bounds of the virtual keyboard if it is currently visible. |
| 154 // Returns an empty rect if it is not visible. |
| 155 virtual gfx::Rect GetVirtualKeyboardBounds() const = 0; |
| 156 |
152 // Adds/removes an observer for profile changes. | 157 // Adds/removes an observer for profile changes. |
153 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | 158 virtual void AddObserver(AppListViewDelegateObserver* observer) {} |
154 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | 159 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} |
155 }; | 160 }; |
156 | 161 |
157 } // namespace app_list | 162 } // namespace app_list |
158 | 163 |
159 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 164 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |