| 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 18 matching lines...) Expand all Loading... |
| 29 namespace ui { | 29 namespace ui { |
| 30 class MenuModel; | 30 class MenuModel; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace ash { | 33 namespace ash { |
| 34 | 34 |
| 35 class AccessibilityDelegate; | 35 class AccessibilityDelegate; |
| 36 class GPUSupport; | 36 class GPUSupport; |
| 37 class PaletteDelegate; | 37 class PaletteDelegate; |
| 38 class SessionStateDelegate; | 38 class SessionStateDelegate; |
| 39 class ShelfDelegate; | |
| 40 class ShelfModel; | |
| 41 class SystemTrayDelegate; | 39 class SystemTrayDelegate; |
| 42 struct ShelfItem; | 40 struct ShelfItem; |
| 43 class WallpaperDelegate; | 41 class WallpaperDelegate; |
| 44 class WmShelf; | 42 class WmShelf; |
| 45 class WmWindow; | 43 class WmWindow; |
| 46 | 44 |
| 47 // Delegate of the Shell. | 45 // Delegate of the Shell. |
| 48 class ASH_EXPORT ShellDelegate { | 46 class ASH_EXPORT ShellDelegate { |
| 49 public: | 47 public: |
| 50 // The Shell owns the delegate. | 48 // The Shell owns the delegate. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 80 |
| 83 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 81 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 84 virtual void Exit() = 0; | 82 virtual void Exit() = 0; |
| 85 | 83 |
| 86 // Create a shell-specific keyboard::KeyboardUI | 84 // Create a shell-specific keyboard::KeyboardUI |
| 87 virtual keyboard::KeyboardUI* CreateKeyboardUI() = 0; | 85 virtual keyboard::KeyboardUI* CreateKeyboardUI() = 0; |
| 88 | 86 |
| 89 // Opens the |url| in a new browser tab. | 87 // Opens the |url| in a new browser tab. |
| 90 virtual void OpenUrlFromArc(const GURL& url) = 0; | 88 virtual void OpenUrlFromArc(const GURL& url) = 0; |
| 91 | 89 |
| 92 // Creates a new ShelfDelegate. Shell takes ownership of the returned value. | 90 // Functions called when the shelf is initialized and shut down. |
| 93 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 91 // TODO(msw): Refine ChromeLauncherControllerImpl lifetime management. |
| 92 virtual void ShelfInit() {} |
| 93 virtual void ShelfShutdown() {} |
| 94 | 94 |
| 95 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 95 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 96 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 96 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
| 97 | 97 |
| 98 // Creates a wallpaper delegate. Shell takes ownership of the delegate. | 98 // Creates a wallpaper delegate. Shell takes ownership of the delegate. |
| 99 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; | 99 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; |
| 100 | 100 |
| 101 // Creates a session state delegate. Shell takes ownership of the delegate. | 101 // Creates a session state delegate. Shell takes ownership of the delegate. |
| 102 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 102 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; |
| 103 | 103 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 134 // if both local state and user prefs are enabled, otherwise disabled. | 134 // if both local state and user prefs are enabled, otherwise disabled. |
| 135 virtual void UpdateTouchscreenStatusFromPrefs() = 0; | 135 virtual void UpdateTouchscreenStatusFromPrefs() = 0; |
| 136 | 136 |
| 137 // Toggles the status of touchpad between enabled and disabled. | 137 // Toggles the status of touchpad between enabled and disabled. |
| 138 virtual void ToggleTouchpad() {} | 138 virtual void ToggleTouchpad() {} |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace ash | 141 } // namespace ash |
| 142 | 142 |
| 143 #endif // ASH_SHELL_DELEGATE_H_ | 143 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |