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_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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 | 33 |
| 34 namespace keyboard { | 34 namespace keyboard { |
| 35 class KeyboardUI; | 35 class KeyboardUI; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace ash { | 38 namespace ash { |
| 39 | 39 |
| 40 class AccessibilityDelegate; | 40 class AccessibilityDelegate; |
| 41 class MediaDelegate; | 41 class MediaDelegate; |
| 42 class NewWindowDelegate; | 42 class NewWindowDelegate; |
| 43 class PointerWatcherDelegate; | |
| 43 class SessionStateDelegate; | 44 class SessionStateDelegate; |
| 44 class ShelfDelegate; | 45 class ShelfDelegate; |
| 45 class ShelfModel; | 46 class ShelfModel; |
| 46 class SystemTrayDelegate; | 47 class SystemTrayDelegate; |
| 47 class UserWallpaperDelegate; | 48 class UserWallpaperDelegate; |
| 48 class Shelf; | 49 class Shelf; |
| 49 struct ShelfItem; | 50 struct ShelfItem; |
| 50 | 51 |
| 51 class ASH_EXPORT VirtualKeyboardStateObserver { | 52 class ASH_EXPORT VirtualKeyboardStateObserver { |
| 52 public: | 53 public: |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 | 132 |
| 132 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 133 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
| 133 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 134 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
| 134 | 135 |
| 135 // Creates an application delegate. Shell takes ownership of the delegate. | 136 // Creates an application delegate. Shell takes ownership of the delegate. |
| 136 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 137 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 137 | 138 |
| 138 // Creates a media delegate. Shell takes ownership of the delegate. | 139 // Creates a media delegate. Shell takes ownership of the delegate. |
| 139 virtual MediaDelegate* CreateMediaDelegate() = 0; | 140 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 140 | 141 |
| 142 // Shell takes ownership of the delegate. | |
| 143 virtual PointerWatcherDelegate* CreatePointerWatcherDelegate() = 0; | |
|
sky
2016/04/26 16:55:48
unique_ptr?
James Cook
2016/04/26 17:42:45
Done.
| |
| 144 | |
| 141 // Creates a menu model for the |shelf| and optional shelf |item|. | 145 // Creates a menu model for the |shelf| and optional shelf |item|. |
| 142 // If |item| is null, this creates a context menu for the desktop or shelf. | 146 // If |item| is null, this creates a context menu for the desktop or shelf. |
| 143 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, | 147 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, |
| 144 const ash::ShelfItem* item) = 0; | 148 const ash::ShelfItem* item) = 0; |
| 145 | 149 |
| 146 // Creates a GPU support object. Shell takes ownership of the object. | 150 // Creates a GPU support object. Shell takes ownership of the object. |
| 147 virtual GPUSupport* CreateGPUSupport() = 0; | 151 virtual GPUSupport* CreateGPUSupport() = 0; |
| 148 | 152 |
| 149 // Get the product name. | 153 // Get the product name. |
| 150 virtual base::string16 GetProductName() const = 0; | 154 virtual base::string16 GetProductName() const = 0; |
| 151 | 155 |
| 152 virtual void OpenKeyboardShortcutHelpPage() const {} | 156 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 153 | 157 |
| 154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 158 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 155 | 159 |
| 156 // Toggles the status of the touchpad / touchscreen on or off. | 160 // Toggles the status of the touchpad / touchscreen on or off. |
| 157 virtual void ToggleTouchpad() {} | 161 virtual void ToggleTouchpad() {} |
| 158 virtual void ToggleTouchscreen() {} | 162 virtual void ToggleTouchscreen() {} |
| 159 }; | 163 }; |
| 160 | 164 |
| 161 } // namespace ash | 165 } // namespace ash |
| 162 | 166 |
| 163 #endif // ASH_SHELL_DELEGATE_H_ | 167 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |