| 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 26 matching lines...) Expand all  Loading... | 
| 37 | 37 | 
| 38 namespace views { | 38 namespace views { | 
| 39 class Widget; | 39 class Widget; | 
| 40 } | 40 } | 
| 41 | 41 | 
| 42 namespace ash { | 42 namespace ash { | 
| 43 | 43 | 
| 44 class AccessibilityDelegate; | 44 class AccessibilityDelegate; | 
| 45 class GPUSupport; | 45 class GPUSupport; | 
| 46 class MediaDelegate; | 46 class MediaDelegate; | 
| 47 class NewWindowDelegate; |  | 
| 48 class PaletteDelegate; | 47 class PaletteDelegate; | 
| 49 class SessionStateDelegate; | 48 class SessionStateDelegate; | 
| 50 class ShelfDelegate; | 49 class ShelfDelegate; | 
| 51 class ShelfModel; | 50 class ShelfModel; | 
| 52 class SystemTrayDelegate; | 51 class SystemTrayDelegate; | 
| 53 struct ShelfItem; | 52 struct ShelfItem; | 
| 54 class WallpaperDelegate; | 53 class WallpaperDelegate; | 
| 55 class WmShelf; | 54 class WmShelf; | 
| 56 class WmWindow; | 55 class WmWindow; | 
| 57 | 56 | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 117 | 116 | 
| 118   // Creates a wallpaper delegate. Shell takes ownership of the delegate. | 117   // Creates a wallpaper delegate. Shell takes ownership of the delegate. | 
| 119   virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; | 118   virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; | 
| 120 | 119 | 
| 121   // Creates a session state delegate. Shell takes ownership of the delegate. | 120   // Creates a session state delegate. Shell takes ownership of the delegate. | 
| 122   virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 121   virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 
| 123 | 122 | 
| 124   // Creates a accessibility delegate. Shell takes ownership of the delegate. | 123   // Creates a accessibility delegate. Shell takes ownership of the delegate. | 
| 125   virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 124   virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 
| 126 | 125 | 
| 127   // Creates an application delegate. Shell takes ownership of the delegate. |  | 
| 128   virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |  | 
| 129 |  | 
| 130   // Creates a media delegate. Shell takes ownership of the delegate. | 126   // Creates a media delegate. Shell takes ownership of the delegate. | 
| 131   virtual MediaDelegate* CreateMediaDelegate() = 0; | 127   virtual MediaDelegate* CreateMediaDelegate() = 0; | 
| 132 | 128 | 
| 133   virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; | 129   virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; | 
| 134 | 130 | 
| 135   // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 131   // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 
| 136   // If |item| is null, this creates a context menu for the wallpaper or shelf. | 132   // If |item| is null, this creates a context menu for the wallpaper or shelf. | 
| 137   virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 133   virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 
| 138                                            const ShelfItem* item) = 0; | 134                                            const ShelfItem* item) = 0; | 
| 139 | 135 | 
| 140   // Creates a GPU support object. Shell takes ownership of the object. | 136   // Creates a GPU support object. Shell takes ownership of the object. | 
| 141   virtual GPUSupport* CreateGPUSupport() = 0; | 137   virtual GPUSupport* CreateGPUSupport() = 0; | 
| 142 | 138 | 
| 143   // Get the product name. | 139   // Get the product name. | 
| 144   virtual base::string16 GetProductName() const = 0; | 140   virtual base::string16 GetProductName() const = 0; | 
| 145 | 141 | 
| 146   virtual void OpenKeyboardShortcutHelpPage() const {} | 142   virtual void OpenKeyboardShortcutHelpPage() const {} | 
| 147 | 143 | 
| 148   virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 144   virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 
| 149 | 145 | 
| 150   // Toggles the status of the touchpad / touchscreen on or off. | 146   // Toggles the status of the touchpad / touchscreen on or off. | 
| 151   virtual void ToggleTouchpad() {} | 147   virtual void ToggleTouchpad() {} | 
| 152   virtual void ToggleTouchscreen() {} | 148   virtual void ToggleTouchscreen() {} | 
| 153 }; | 149 }; | 
| 154 | 150 | 
| 155 }  // namespace ash | 151 }  // namespace ash | 
| 156 | 152 | 
| 157 #endif  // ASH_COMMON_SHELL_DELEGATE_H_ | 153 #endif  // ASH_COMMON_SHELL_DELEGATE_H_ | 
| OLD | NEW | 
|---|