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 ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 | 14 |
15 class GURL; | 15 class GURL; |
16 | 16 |
17 namespace app_list { | 17 namespace app_list { |
| 18 class AppListShower; |
18 class AppListViewDelegate; | 19 class AppListViewDelegate; |
19 } | 20 } |
20 | 21 |
21 namespace aura { | 22 namespace aura { |
22 class Window; | 23 class Window; |
23 } | 24 } |
24 | 25 |
25 namespace gfx { | 26 namespace gfx { |
26 class Image; | 27 class Image; |
27 } | 28 } |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 106 |
106 // Adds or removes virtual keyboard state observer. | 107 // Adds or removes virtual keyboard state observer. |
107 virtual void AddVirtualKeyboardStateObserver( | 108 virtual void AddVirtualKeyboardStateObserver( |
108 VirtualKeyboardStateObserver* observer) = 0; | 109 VirtualKeyboardStateObserver* observer) = 0; |
109 virtual void RemoveVirtualKeyboardStateObserver( | 110 virtual void RemoveVirtualKeyboardStateObserver( |
110 VirtualKeyboardStateObserver* observer) = 0; | 111 VirtualKeyboardStateObserver* observer) = 0; |
111 | 112 |
112 // Opens the |url| in a new browser tab. | 113 // Opens the |url| in a new browser tab. |
113 virtual void OpenUrl(const GURL& url) = 0; | 114 virtual void OpenUrl(const GURL& url) = 0; |
114 | 115 |
115 // Get the AppListViewDelegate, creating one if it does not yet exist. | 116 // Get the AppListShower. Ownership stays with Chrome. |
116 // Ownership stays with Chrome's AppListService, or the ShellDelegate. | 117 virtual app_list::AppListShower* GetAppListShower() = 0; |
117 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() = 0; | |
118 | 118 |
119 // Creates a new ShelfDelegate. Shell takes ownership of the returned | 119 // Creates a new ShelfDelegate. Shell takes ownership of the returned |
120 // value. | 120 // value. |
121 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 121 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; |
122 | 122 |
123 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 123 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
124 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 124 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
125 | 125 |
126 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 126 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
127 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 127 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
(...skipping 26 matching lines...) Expand all Loading... |
154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
155 | 155 |
156 // Toggles the status of the touchpad / touchscreen on or off. | 156 // Toggles the status of the touchpad / touchscreen on or off. |
157 virtual void ToggleTouchpad() {} | 157 virtual void ToggleTouchpad() {} |
158 virtual void ToggleTouchscreen() {} | 158 virtual void ToggleTouchscreen() {} |
159 }; | 159 }; |
160 | 160 |
161 } // namespace ash | 161 } // namespace ash |
162 | 162 |
163 #endif // ASH_SHELL_DELEGATE_H_ | 163 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |