| 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 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.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 class GURL; | 15 class GURL; |
| 16 | 16 |
| 17 namespace app_list { | |
| 18 class AppListPresenter; | |
| 19 } | |
| 20 | |
| 21 namespace gfx { | 17 namespace gfx { |
| 22 class Image; | 18 class Image; |
| 23 } | 19 } |
| 24 | 20 |
| 25 namespace keyboard { | 21 namespace keyboard { |
| 26 class KeyboardUI; | 22 class KeyboardUI; |
| 27 } | 23 } |
| 28 | 24 |
| 29 namespace service_manager { | 25 namespace service_manager { |
| 30 class Connector; | 26 class Connector; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 82 |
| 87 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 83 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 88 virtual void Exit() = 0; | 84 virtual void Exit() = 0; |
| 89 | 85 |
| 90 // Create a shell-specific keyboard::KeyboardUI | 86 // Create a shell-specific keyboard::KeyboardUI |
| 91 virtual keyboard::KeyboardUI* CreateKeyboardUI() = 0; | 87 virtual keyboard::KeyboardUI* CreateKeyboardUI() = 0; |
| 92 | 88 |
| 93 // Opens the |url| in a new browser tab. | 89 // Opens the |url| in a new browser tab. |
| 94 virtual void OpenUrlFromArc(const GURL& url) = 0; | 90 virtual void OpenUrlFromArc(const GURL& url) = 0; |
| 95 | 91 |
| 96 // Get the AppListPresenter. Ownership stays with Chrome. | 92 // Creates a new ShelfDelegate. Shell takes ownership of the returned value. |
| 97 virtual app_list::AppListPresenter* GetAppListPresenter() = 0; | |
| 98 | |
| 99 // Creates a new ShelfDelegate. Shell takes ownership of the returned | |
| 100 // value. | |
| 101 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 93 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; |
| 102 | 94 |
| 103 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 95 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 104 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 96 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
| 105 | 97 |
| 106 // Creates a wallpaper delegate. Shell takes ownership of the delegate. | 98 // Creates a wallpaper delegate. Shell takes ownership of the delegate. |
| 107 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; | 99 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; |
| 108 | 100 |
| 109 // Creates a session state delegate. Shell takes ownership of the delegate. | 101 // Creates a session state delegate. Shell takes ownership of the delegate. |
| 110 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 102 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // if both local state and user prefs are enabled, otherwise disabled. | 134 // if both local state and user prefs are enabled, otherwise disabled. |
| 143 virtual void UpdateTouchscreenStatusFromPrefs() = 0; | 135 virtual void UpdateTouchscreenStatusFromPrefs() = 0; |
| 144 | 136 |
| 145 // Toggles the status of touchpad between enabled and disabled. | 137 // Toggles the status of touchpad between enabled and disabled. |
| 146 virtual void ToggleTouchpad() {} | 138 virtual void ToggleTouchpad() {} |
| 147 }; | 139 }; |
| 148 | 140 |
| 149 } // namespace ash | 141 } // namespace ash |
| 150 | 142 |
| 151 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 143 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
| OLD | NEW |