Chromium Code Reviews| 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 PaletteDelegate; | |
| 44 class PointerWatcherDelegate; | 45 class PointerWatcherDelegate; |
| 45 class SessionStateDelegate; | 46 class SessionStateDelegate; |
| 46 class ShelfDelegate; | 47 class ShelfDelegate; |
| 47 class ShelfModel; | 48 class ShelfModel; |
| 48 class SystemTrayDelegate; | 49 class SystemTrayDelegate; |
| 49 class UserWallpaperDelegate; | 50 class UserWallpaperDelegate; |
| 50 struct ShelfItem; | 51 struct ShelfItem; |
| 51 class WmShelf; | 52 class WmShelf; |
| 52 class WmWindow; | 53 class WmWindow; |
| 53 | 54 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 | 117 |
| 117 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 118 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
| 118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 119 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
| 119 | 120 |
| 120 // Creates an application delegate. Shell takes ownership of the delegate. | 121 // Creates an application delegate. Shell takes ownership of the delegate. |
| 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 122 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 122 | 123 |
| 123 // Creates a media delegate. Shell takes ownership of the delegate. | 124 // Creates a media delegate. Shell takes ownership of the delegate. |
| 124 virtual MediaDelegate* CreateMediaDelegate() = 0; | 125 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 125 | 126 |
| 127 // Creates a palette delegate. Shell takes ownership of the delegate. | |
| 128 virtual PaletteDelegate* CreatePaletteDelegate() = 0; | |
|
Daniel Erat
2016/08/02 21:35:01
how about returning std::unique_ptr<PaletteDelegat
jdufault
2016/08/04 23:55:29
Done.
| |
| 129 | |
| 126 virtual std::unique_ptr<PointerWatcherDelegate> | 130 virtual std::unique_ptr<PointerWatcherDelegate> |
| 127 CreatePointerWatcherDelegate() = 0; | 131 CreatePointerWatcherDelegate() = 0; |
| 128 | 132 |
| 129 // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 133 // 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. | 134 // If |item| is null, this creates a context menu for the desktop or shelf. |
| 131 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 135 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
| 132 const ShelfItem* item) = 0; | 136 const ShelfItem* item) = 0; |
| 133 | 137 |
| 134 // Creates a GPU support object. Shell takes ownership of the object. | 138 // Creates a GPU support object. Shell takes ownership of the object. |
| 135 virtual GPUSupport* CreateGPUSupport() = 0; | 139 virtual GPUSupport* CreateGPUSupport() = 0; |
| 136 | 140 |
| 137 // Get the product name. | 141 // Get the product name. |
| 138 virtual base::string16 GetProductName() const = 0; | 142 virtual base::string16 GetProductName() const = 0; |
| 139 | 143 |
| 140 virtual void OpenKeyboardShortcutHelpPage() const {} | 144 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 141 | 145 |
| 142 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 146 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 143 | 147 |
| 144 // Toggles the status of the touchpad / touchscreen on or off. | 148 // Toggles the status of the touchpad / touchscreen on or off. |
| 145 virtual void ToggleTouchpad() {} | 149 virtual void ToggleTouchpad() {} |
| 146 virtual void ToggleTouchscreen() {} | 150 virtual void ToggleTouchscreen() {} |
| 147 }; | 151 }; |
| 148 | 152 |
| 149 } // namespace ash | 153 } // namespace ash |
| 150 | 154 |
| 151 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 155 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
| OLD | NEW |