| 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 24 matching lines...) Expand all Loading... |
| 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 PaletteDelegate; | 44 class PaletteDelegate; |
| 45 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; |
| 52 class WmShelf; | 51 class WmShelf; |
| 53 class WmWindow; | 52 class WmWindow; |
| 54 | 53 |
| 55 // Delegate of the Shell. | 54 // Delegate of the Shell. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
| 120 | 119 |
| 121 // Creates an application delegate. Shell takes ownership of the delegate. | 120 // Creates an application delegate. Shell takes ownership of the delegate. |
| 122 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 123 | 122 |
| 124 // Creates a media delegate. Shell takes ownership of the delegate. | 123 // Creates a media delegate. Shell takes ownership of the delegate. |
| 125 virtual MediaDelegate* CreateMediaDelegate() = 0; | 124 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 126 | 125 |
| 127 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; | 126 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; |
| 128 | 127 |
| 129 virtual std::unique_ptr<PointerWatcherDelegate> | |
| 130 CreatePointerWatcherDelegate() = 0; | |
| 131 | |
| 132 // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 128 // Creates a menu model for the |wm_shelf| and optional shelf |item|. |
| 133 // If |item| is null, this creates a context menu for the desktop or shelf. | 129 // If |item| is null, this creates a context menu for the desktop or shelf. |
| 134 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 130 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
| 135 const ShelfItem* item) = 0; | 131 const ShelfItem* item) = 0; |
| 136 | 132 |
| 137 // Creates a GPU support object. Shell takes ownership of the object. | 133 // Creates a GPU support object. Shell takes ownership of the object. |
| 138 virtual GPUSupport* CreateGPUSupport() = 0; | 134 virtual GPUSupport* CreateGPUSupport() = 0; |
| 139 | 135 |
| 140 // Get the product name. | 136 // Get the product name. |
| 141 virtual base::string16 GetProductName() const = 0; | 137 virtual base::string16 GetProductName() const = 0; |
| 142 | 138 |
| 143 virtual void OpenKeyboardShortcutHelpPage() const {} | 139 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 144 | 140 |
| 145 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 141 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 146 | 142 |
| 147 // Toggles the status of the touchpad / touchscreen on or off. | 143 // Toggles the status of the touchpad / touchscreen on or off. |
| 148 virtual void ToggleTouchpad() {} | 144 virtual void ToggleTouchpad() {} |
| 149 virtual void ToggleTouchscreen() {} | 145 virtual void ToggleTouchscreen() {} |
| 150 }; | 146 }; |
| 151 | 147 |
| 152 } // namespace ash | 148 } // namespace ash |
| 153 | 149 |
| 154 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 150 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
| OLD | NEW |