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 AppListPresenter; |
19 class AppListViewDelegate; | 19 class AppListViewDelegate; |
20 } | 20 } |
21 | 21 |
22 namespace aura { | 22 namespace aura { |
23 class Window; | 23 class Window; |
24 } | 24 } |
25 | 25 |
26 namespace gfx { | 26 namespace gfx { |
27 class Image; | 27 class Image; |
28 } | 28 } |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // Adds or removes virtual keyboard state observer. | 107 // Adds or removes virtual keyboard state observer. |
108 virtual void AddVirtualKeyboardStateObserver( | 108 virtual void AddVirtualKeyboardStateObserver( |
109 VirtualKeyboardStateObserver* observer) = 0; | 109 VirtualKeyboardStateObserver* observer) = 0; |
110 virtual void RemoveVirtualKeyboardStateObserver( | 110 virtual void RemoveVirtualKeyboardStateObserver( |
111 VirtualKeyboardStateObserver* observer) = 0; | 111 VirtualKeyboardStateObserver* observer) = 0; |
112 | 112 |
113 // Opens the |url| in a new browser tab. | 113 // Opens the |url| in a new browser tab. |
114 virtual void OpenUrl(const GURL& url) = 0; | 114 virtual void OpenUrl(const GURL& url) = 0; |
115 | 115 |
116 // Get the AppListShower. Ownership stays with Chrome. | 116 // Get the AppListPresenter. Ownership stays with Chrome. |
117 virtual app_list::AppListShower* GetAppListShower() = 0; | 117 virtual app_list::AppListPresenter* GetAppListPresenter() = 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 |