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 <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
11 #include "ash/shell.h" | 12 #include "ash/shell.h" |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
14 | 15 |
15 class GURL; | 16 class GURL; |
16 | 17 |
17 namespace app_list { | 18 namespace app_list { |
(...skipping 15 matching lines...) Expand all Loading... |
33 | 34 |
34 namespace keyboard { | 35 namespace keyboard { |
35 class KeyboardUI; | 36 class KeyboardUI; |
36 } | 37 } |
37 | 38 |
38 namespace ash { | 39 namespace ash { |
39 | 40 |
40 class AccessibilityDelegate; | 41 class AccessibilityDelegate; |
41 class MediaDelegate; | 42 class MediaDelegate; |
42 class NewWindowDelegate; | 43 class NewWindowDelegate; |
| 44 class PointerWatcherDelegate; |
43 class SessionStateDelegate; | 45 class SessionStateDelegate; |
44 class ShelfDelegate; | 46 class ShelfDelegate; |
45 class ShelfModel; | 47 class ShelfModel; |
46 class SystemTrayDelegate; | 48 class SystemTrayDelegate; |
47 class UserWallpaperDelegate; | 49 class UserWallpaperDelegate; |
48 class Shelf; | 50 class Shelf; |
49 struct ShelfItem; | 51 struct ShelfItem; |
50 | 52 |
51 class ASH_EXPORT VirtualKeyboardStateObserver { | 53 class ASH_EXPORT VirtualKeyboardStateObserver { |
52 public: | 54 public: |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 133 |
132 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 134 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
133 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 135 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
134 | 136 |
135 // Creates an application delegate. Shell takes ownership of the delegate. | 137 // Creates an application delegate. Shell takes ownership of the delegate. |
136 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 138 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
137 | 139 |
138 // Creates a media delegate. Shell takes ownership of the delegate. | 140 // Creates a media delegate. Shell takes ownership of the delegate. |
139 virtual MediaDelegate* CreateMediaDelegate() = 0; | 141 virtual MediaDelegate* CreateMediaDelegate() = 0; |
140 | 142 |
| 143 virtual std::unique_ptr<PointerWatcherDelegate> |
| 144 CreatePointerWatcherDelegate() = 0; |
| 145 |
141 // Creates a menu model for the |shelf| and optional shelf |item|. | 146 // Creates a menu model for the |shelf| and optional shelf |item|. |
142 // If |item| is null, this creates a context menu for the desktop or shelf. | 147 // If |item| is null, this creates a context menu for the desktop or shelf. |
143 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, | 148 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, |
144 const ash::ShelfItem* item) = 0; | 149 const ash::ShelfItem* item) = 0; |
145 | 150 |
146 // Creates a GPU support object. Shell takes ownership of the object. | 151 // Creates a GPU support object. Shell takes ownership of the object. |
147 virtual GPUSupport* CreateGPUSupport() = 0; | 152 virtual GPUSupport* CreateGPUSupport() = 0; |
148 | 153 |
149 // Get the product name. | 154 // Get the product name. |
150 virtual base::string16 GetProductName() const = 0; | 155 virtual base::string16 GetProductName() const = 0; |
151 | 156 |
152 virtual void OpenKeyboardShortcutHelpPage() const {} | 157 virtual void OpenKeyboardShortcutHelpPage() const {} |
153 | 158 |
154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 159 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
155 | 160 |
156 // Toggles the status of the touchpad / touchscreen on or off. | 161 // Toggles the status of the touchpad / touchscreen on or off. |
157 virtual void ToggleTouchpad() {} | 162 virtual void ToggleTouchpad() {} |
158 virtual void ToggleTouchscreen() {} | 163 virtual void ToggleTouchscreen() {} |
159 }; | 164 }; |
160 | 165 |
161 } // namespace ash | 166 } // namespace ash |
162 | 167 |
163 #endif // ASH_SHELL_DELEGATE_H_ | 168 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |