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_COMMON_SHELL_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SHELL_DELEGATE_H_ |
6 #define ASH_COMMON_SHELL_DELEGATE_H_ | 6 #define ASH_COMMON_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 namespace views { | 34 namespace views { |
35 class Widget; | 35 class Widget; |
36 } | 36 } |
37 | 37 |
38 namespace ash { | 38 namespace ash { |
39 | 39 |
40 class AccessibilityDelegate; | 40 class AccessibilityDelegate; |
41 class GPUSupport; | 41 class GPUSupport; |
42 class MediaDelegate; | 42 class MediaDelegate; |
43 class NewWindowDelegate; | 43 class NewWindowDelegate; |
44 class PointerDownWatcherDelegate; | 44 class PointerWatcherDelegate; |
45 class SessionStateDelegate; | 45 class SessionStateDelegate; |
46 class ShelfDelegate; | 46 class ShelfDelegate; |
47 class ShelfModel; | 47 class ShelfModel; |
48 class SystemTrayDelegate; | 48 class SystemTrayDelegate; |
49 class UserWallpaperDelegate; | 49 class UserWallpaperDelegate; |
50 struct ShelfItem; | 50 struct ShelfItem; |
51 class WmShelf; | 51 class WmShelf; |
52 class WmWindow; | 52 class WmWindow; |
53 | 53 |
54 // Delegate of the Shell. | 54 // Delegate of the Shell. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 117 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
119 | 119 |
120 // Creates an application delegate. Shell takes ownership of the delegate. | 120 // Creates an application delegate. Shell takes ownership of the delegate. |
121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
122 | 122 |
123 // Creates a media delegate. Shell takes ownership of the delegate. | 123 // Creates a media delegate. Shell takes ownership of the delegate. |
124 virtual MediaDelegate* CreateMediaDelegate() = 0; | 124 virtual MediaDelegate* CreateMediaDelegate() = 0; |
125 | 125 |
126 virtual std::unique_ptr<PointerDownWatcherDelegate> | 126 virtual std::unique_ptr<PointerWatcherDelegate> |
127 CreatePointerDownWatcherDelegate() = 0; | 127 CreatePointerWatcherDelegate() = 0; |
128 | 128 |
129 // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 129 // Creates a menu model for the |wm_shelf| and optional shelf |item|. |
130 // If |item| is null, this creates a context menu for the desktop or shelf. | 130 // If |item| is null, this creates a context menu for the desktop or shelf. |
131 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 131 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
132 const ShelfItem* item) = 0; | 132 const ShelfItem* item) = 0; |
133 | 133 |
134 // Creates a GPU support object. Shell takes ownership of the object. | 134 // Creates a GPU support object. Shell takes ownership of the object. |
135 virtual GPUSupport* CreateGPUSupport() = 0; | 135 virtual GPUSupport* CreateGPUSupport() = 0; |
136 | 136 |
137 // Get the product name. | 137 // Get the product name. |
138 virtual base::string16 GetProductName() const = 0; | 138 virtual base::string16 GetProductName() const = 0; |
139 | 139 |
140 virtual void OpenKeyboardShortcutHelpPage() const {} | 140 virtual void OpenKeyboardShortcutHelpPage() const {} |
141 | 141 |
142 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 142 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
143 | 143 |
144 // Toggles the status of the touchpad / touchscreen on or off. | 144 // Toggles the status of the touchpad / touchscreen on or off. |
145 virtual void ToggleTouchpad() {} | 145 virtual void ToggleTouchpad() {} |
146 virtual void ToggleTouchscreen() {} | 146 virtual void ToggleTouchscreen() {} |
147 }; | 147 }; |
148 | 148 |
149 } // namespace ash | 149 } // namespace ash |
150 | 150 |
151 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 151 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
OLD | NEW |