| 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 19 matching lines...) Expand all Loading... |
| 30 namespace ui { | 30 namespace ui { |
| 31 class MenuModel; | 31 class MenuModel; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace ash { | 34 namespace ash { |
| 35 | 35 |
| 36 class AccessibilityDelegate; | 36 class AccessibilityDelegate; |
| 37 class GPUSupport; | 37 class GPUSupport; |
| 38 class PaletteDelegate; | 38 class PaletteDelegate; |
| 39 class SessionStateDelegate; | 39 class SessionStateDelegate; |
| 40 class Shelf; |
| 41 struct ShelfItem; |
| 40 class SystemTrayDelegate; | 42 class SystemTrayDelegate; |
| 41 struct ShelfItem; | |
| 42 class WallpaperDelegate; | 43 class WallpaperDelegate; |
| 43 class WmShelf; | |
| 44 class WmWindow; | 44 class WmWindow; |
| 45 | 45 |
| 46 // Delegate of the Shell. | 46 // Delegate of the Shell. |
| 47 class ASH_EXPORT ShellDelegate { | 47 class ASH_EXPORT ShellDelegate { |
| 48 public: | 48 public: |
| 49 // The Shell owns the delegate. | 49 // The Shell owns the delegate. |
| 50 virtual ~ShellDelegate() {} | 50 virtual ~ShellDelegate() {} |
| 51 | 51 |
| 52 // Returns the connector for the mojo service manager. Returns null in tests. | 52 // Returns the connector for the mojo service manager. Returns null in tests. |
| 53 virtual service_manager::Connector* GetShellConnector() const = 0; | 53 virtual service_manager::Connector* GetShellConnector() const = 0; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; | 100 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; |
| 101 | 101 |
| 102 // Creates a session state delegate. Shell takes ownership of the delegate. | 102 // Creates a session state delegate. Shell takes ownership of the delegate. |
| 103 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 103 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; |
| 104 | 104 |
| 105 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 105 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
| 106 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 106 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
| 107 | 107 |
| 108 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; | 108 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; |
| 109 | 109 |
| 110 // Creates a menu model for the |wm_shelf| and optional shelf |item|. | 110 // Creates a menu model for the |shelf| and optional shelf |item|. |
| 111 // If |item| is null, this creates a context menu for the wallpaper or shelf. | 111 // If |item| is null, this creates a context menu for the wallpaper or shelf. |
| 112 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 112 virtual ui::MenuModel* CreateContextMenu(Shelf* shelf, |
| 113 const ShelfItem* item) = 0; | 113 const ShelfItem* item) = 0; |
| 114 | 114 |
| 115 // Creates a GPU support object. Shell takes ownership of the object. | 115 // Creates a GPU support object. Shell takes ownership of the object. |
| 116 virtual GPUSupport* CreateGPUSupport() = 0; | 116 virtual GPUSupport* CreateGPUSupport() = 0; |
| 117 | 117 |
| 118 // Get the product name. | 118 // Get the product name. |
| 119 virtual base::string16 GetProductName() const = 0; | 119 virtual base::string16 GetProductName() const = 0; |
| 120 | 120 |
| 121 virtual void OpenKeyboardShortcutHelpPage() const {} | 121 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 122 | 122 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 137 // if both local state and user prefs are enabled, otherwise disabled. | 137 // if both local state and user prefs are enabled, otherwise disabled. |
| 138 virtual void UpdateTouchscreenStatusFromPrefs() = 0; | 138 virtual void UpdateTouchscreenStatusFromPrefs() = 0; |
| 139 | 139 |
| 140 // Toggles the status of touchpad between enabled and disabled. | 140 // Toggles the status of touchpad between enabled and disabled. |
| 141 virtual void ToggleTouchpad() {} | 141 virtual void ToggleTouchpad() {} |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace ash | 144 } // namespace ash |
| 145 | 145 |
| 146 #endif // ASH_SHELL_DELEGATE_H_ | 146 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |