| 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" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 | 14 |
| 15 namespace app_list { | 15 namespace app_list { |
| 16 class AppListController; |
| 16 class AppListViewDelegate; | 17 class AppListViewDelegate; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace aura { | 20 namespace aura { |
| 20 class RootWindow; | 21 class RootWindow; |
| 21 class Window; | 22 class Window; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 class BrowserContext; | 26 class BrowserContext; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 110 |
| 110 // Called when virtual keyboard has been activated/deactivated. | 111 // Called when virtual keyboard has been activated/deactivated. |
| 111 virtual void VirtualKeyboardActivated(bool activated) = 0; | 112 virtual void VirtualKeyboardActivated(bool activated) = 0; |
| 112 | 113 |
| 113 // Adds or removes virtual keyboard state observer. | 114 // Adds or removes virtual keyboard state observer. |
| 114 virtual void AddVirtualKeyboardStateObserver( | 115 virtual void AddVirtualKeyboardStateObserver( |
| 115 VirtualKeyboardStateObserver* observer) = 0; | 116 VirtualKeyboardStateObserver* observer) = 0; |
| 116 virtual void RemoveVirtualKeyboardStateObserver( | 117 virtual void RemoveVirtualKeyboardStateObserver( |
| 117 VirtualKeyboardStateObserver* observer) = 0; | 118 VirtualKeyboardStateObserver* observer) = 0; |
| 118 | 119 |
| 119 // Get the AppListViewDelegate, creating one if it does not yet exist. | 120 // Get the GetAppListController. Ownership stays with Chrome. |
| 120 // Ownership stays with Chrome's AppListService, or the ShellDelegate. | 121 virtual app_list::AppListController* GetAppListController() = 0; |
| 121 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() = 0; | |
| 122 | 122 |
| 123 // Creates a new ShelfDelegate. Shell takes ownership of the returned | 123 // Creates a new ShelfDelegate. Shell takes ownership of the returned |
| 124 // value. | 124 // value. |
| 125 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 125 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; |
| 126 | 126 |
| 127 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 127 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 128 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 128 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
| 129 | 129 |
| 130 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 130 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 131 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 131 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 161 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 161 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 162 | 162 |
| 163 // Toggles the status of the touchpad / touchscreen on or off. | 163 // Toggles the status of the touchpad / touchscreen on or off. |
| 164 virtual void ToggleTouchpad() {} | 164 virtual void ToggleTouchpad() {} |
| 165 virtual void ToggleTouchscreen() {} | 165 virtual void ToggleTouchscreen() {} |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace ash | 168 } // namespace ash |
| 169 | 169 |
| 170 #endif // ASH_SHELL_DELEGATE_H_ | 170 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |