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 28 matching lines...) Expand all Loading... | |
| 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 SessionStateDelegate; | 45 class SessionStateDelegate; |
| 46 class ShelfDelegate; | 46 class ShelfDelegate; |
| 47 class ShelfModel; | 47 class ShelfModel; |
| 48 class SystemTrayDelegate; | 48 class SystemTrayDelegate; |
| 49 class UserWallpaperDelegate; | |
| 50 struct ShelfItem; | 49 struct ShelfItem; |
| 50 class WallpaperDelegate; | |
| 51 class WmShelf; | 51 class WmShelf; |
| 52 class WmWindow; | 52 class WmWindow; |
| 53 | 53 |
| 54 // Delegate of the Shell. | 54 // Delegate of the Shell. |
| 55 class ASH_EXPORT ShellDelegate { | 55 class ASH_EXPORT ShellDelegate { |
| 56 public: | 56 public: |
| 57 // The Shell owns the delegate. | 57 // The Shell owns the delegate. |
| 58 virtual ~ShellDelegate() {} | 58 virtual ~ShellDelegate() {} |
| 59 | 59 |
| 60 // Returns true if this is the first time that the shell has been run after | 60 // Returns true if this is the first time that the shell has been run after |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 // Get the AppListPresenter. Ownership stays with Chrome. | 101 // Get the AppListPresenter. Ownership stays with Chrome. |
| 102 virtual app_list::AppListPresenter* GetAppListPresenter() = 0; | 102 virtual app_list::AppListPresenter* GetAppListPresenter() = 0; |
| 103 | 103 |
| 104 // Creates a new ShelfDelegate. Shell takes ownership of the returned | 104 // Creates a new ShelfDelegate. Shell takes ownership of the returned |
| 105 // value. | 105 // value. |
| 106 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 106 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; |
| 107 | 107 |
| 108 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 108 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 109 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 109 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
| 110 | 110 |
| 111 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 111 // Creates a wallpaper delegate. Shell takes ownership of the delegate. |
| 112 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 112 virtual WallpaperDelegate* CreateWallpaperDelegate() = 0; |
|
James Cook
2016/08/25 16:59:57
Return std::unique_ptr<> instead?
msw
2016/08/25 18:27:06
Done.
| |
| 113 | 113 |
| 114 // Creates a session state delegate. Shell takes ownership of the delegate. | 114 // Creates a session state delegate. Shell takes ownership of the delegate. |
| 115 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 115 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; |
| 116 | 116 |
| 117 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 117 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
| 118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 118 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
| 119 | 119 |
| 120 // Creates an application delegate. Shell takes ownership of the delegate. | 120 // Creates an application delegate. Shell takes ownership of the delegate. |
| 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
| 122 | 122 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 141 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 141 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 142 | 142 |
| 143 // Toggles the status of the touchpad / touchscreen on or off. | 143 // Toggles the status of the touchpad / touchscreen on or off. |
| 144 virtual void ToggleTouchpad() {} | 144 virtual void ToggleTouchpad() {} |
| 145 virtual void ToggleTouchscreen() {} | 145 virtual void ToggleTouchscreen() {} |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace ash | 148 } // namespace ash |
| 149 | 149 |
| 150 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 150 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
| OLD | NEW |