| 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 20 matching lines...) Expand all Loading... |
| 31 class MenuModel; | 31 class MenuModel; |
| 32 } | 32 } |
| 33 | 33 |
| 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 ContainerDelegate; | |
| 42 class GPUSupport; | 41 class GPUSupport; |
| 43 class MediaDelegate; | 42 class MediaDelegate; |
| 44 class NewWindowDelegate; | 43 class NewWindowDelegate; |
| 45 class PointerWatcherDelegate; | 44 class PointerWatcherDelegate; |
| 46 class SessionStateDelegate; | 45 class SessionStateDelegate; |
| 47 class ShelfDelegate; | 46 class ShelfDelegate; |
| 48 class ShelfModel; | 47 class ShelfModel; |
| 49 class SystemTrayDelegate; | 48 class SystemTrayDelegate; |
| 50 class UserWallpaperDelegate; | 49 class UserWallpaperDelegate; |
| 51 struct ShelfItem; | 50 struct ShelfItem; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 137 |
| 139 // Creates an application delegate. Shell takes ownership of the delegate. | 138 // Creates an application delegate. Shell takes ownership of the delegate. |
| 140 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 139 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 141 | 140 |
| 142 // Creates a media delegate. Shell takes ownership of the delegate. | 141 // Creates a media delegate. Shell takes ownership of the delegate. |
| 143 virtual MediaDelegate* CreateMediaDelegate() = 0; | 142 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 144 | 143 |
| 145 virtual std::unique_ptr<PointerWatcherDelegate> | 144 virtual std::unique_ptr<PointerWatcherDelegate> |
| 146 CreatePointerWatcherDelegate() = 0; | 145 CreatePointerWatcherDelegate() = 0; |
| 147 | 146 |
| 148 virtual std::unique_ptr<ContainerDelegate> CreateContainerDelegate() = 0; | |
| 149 | |
| 150 // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 147 // Creates a menu model for the |wm_shelf| and optional shelf |item|. |
| 151 // If |item| is null, this creates a context menu for the desktop or shelf. | 148 // If |item| is null, this creates a context menu for the desktop or shelf. |
| 152 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 149 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
| 153 const ShelfItem* item) = 0; | 150 const ShelfItem* item) = 0; |
| 154 | 151 |
| 155 // Creates a GPU support object. Shell takes ownership of the object. | 152 // Creates a GPU support object. Shell takes ownership of the object. |
| 156 virtual GPUSupport* CreateGPUSupport() = 0; | 153 virtual GPUSupport* CreateGPUSupport() = 0; |
| 157 | 154 |
| 158 // Get the product name. | 155 // Get the product name. |
| 159 virtual base::string16 GetProductName() const = 0; | 156 virtual base::string16 GetProductName() const = 0; |
| 160 | 157 |
| 161 virtual void OpenKeyboardShortcutHelpPage() const {} | 158 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 162 | 159 |
| 163 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 160 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 164 | 161 |
| 165 // Toggles the status of the touchpad / touchscreen on or off. | 162 // Toggles the status of the touchpad / touchscreen on or off. |
| 166 virtual void ToggleTouchpad() {} | 163 virtual void ToggleTouchpad() {} |
| 167 virtual void ToggleTouchscreen() {} | 164 virtual void ToggleTouchscreen() {} |
| 168 }; | 165 }; |
| 169 | 166 |
| 170 } // namespace ash | 167 } // namespace ash |
| 171 | 168 |
| 172 #endif // ASH_SHELL_DELEGATE_H_ | 169 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |