| 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 <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace aura { | 23 namespace aura { |
| 24 class Window; | 24 class Window; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Image; | 28 class Image; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace keyboard { |
| 32 class KeyboardUI; |
| 33 } |
| 34 |
| 31 namespace ui { | 35 namespace ui { |
| 32 class MenuModel; | 36 class MenuModel; |
| 33 } | 37 } |
| 34 | 38 |
| 35 namespace keyboard { | 39 namespace views { |
| 36 class KeyboardUI; | 40 class Widget; |
| 37 } | 41 } |
| 38 | 42 |
| 39 namespace ash { | 43 namespace ash { |
| 40 | 44 |
| 41 class AccessibilityDelegate; | 45 class AccessibilityDelegate; |
| 46 class ContainerDelegate; |
| 42 class MediaDelegate; | 47 class MediaDelegate; |
| 43 class NewWindowDelegate; | 48 class NewWindowDelegate; |
| 44 class PointerWatcherDelegate; | 49 class PointerWatcherDelegate; |
| 45 class SessionStateDelegate; | 50 class SessionStateDelegate; |
| 46 class ShelfDelegate; | 51 class ShelfDelegate; |
| 47 class ShelfModel; | 52 class ShelfModel; |
| 48 class SystemTrayDelegate; | 53 class SystemTrayDelegate; |
| 49 class UserWallpaperDelegate; | 54 class UserWallpaperDelegate; |
| 50 class Shelf; | 55 class Shelf; |
| 51 struct ShelfItem; | 56 struct ShelfItem; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 141 |
| 137 // Creates an application delegate. Shell takes ownership of the delegate. | 142 // Creates an application delegate. Shell takes ownership of the delegate. |
| 138 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 143 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 139 | 144 |
| 140 // Creates a media delegate. Shell takes ownership of the delegate. | 145 // Creates a media delegate. Shell takes ownership of the delegate. |
| 141 virtual MediaDelegate* CreateMediaDelegate() = 0; | 146 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 142 | 147 |
| 143 virtual std::unique_ptr<PointerWatcherDelegate> | 148 virtual std::unique_ptr<PointerWatcherDelegate> |
| 144 CreatePointerWatcherDelegate() = 0; | 149 CreatePointerWatcherDelegate() = 0; |
| 145 | 150 |
| 151 virtual std::unique_ptr<ContainerDelegate> CreateContainerDelegate() = 0; |
| 152 |
| 146 // Creates a menu model for the |shelf| and optional shelf |item|. | 153 // Creates a menu model for the |shelf| and optional shelf |item|. |
| 147 // If |item| is null, this creates a context menu for the desktop or shelf. | 154 // If |item| is null, this creates a context menu for the desktop or shelf. |
| 148 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, | 155 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, |
| 149 const ash::ShelfItem* item) = 0; | 156 const ash::ShelfItem* item) = 0; |
| 150 | 157 |
| 151 // Creates a GPU support object. Shell takes ownership of the object. | 158 // Creates a GPU support object. Shell takes ownership of the object. |
| 152 virtual GPUSupport* CreateGPUSupport() = 0; | 159 virtual GPUSupport* CreateGPUSupport() = 0; |
| 153 | 160 |
| 154 // Get the product name. | 161 // Get the product name. |
| 155 virtual base::string16 GetProductName() const = 0; | 162 virtual base::string16 GetProductName() const = 0; |
| 156 | 163 |
| 157 virtual void OpenKeyboardShortcutHelpPage() const {} | 164 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 158 | 165 |
| 159 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 166 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 160 | 167 |
| 161 // Toggles the status of the touchpad / touchscreen on or off. | 168 // Toggles the status of the touchpad / touchscreen on or off. |
| 162 virtual void ToggleTouchpad() {} | 169 virtual void ToggleTouchpad() {} |
| 163 virtual void ToggleTouchscreen() {} | 170 virtual void ToggleTouchscreen() {} |
| 164 }; | 171 }; |
| 165 | 172 |
| 166 } // namespace ash | 173 } // namespace ash |
| 167 | 174 |
| 168 #endif // ASH_SHELL_DELEGATE_H_ | 175 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |