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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Shows login UI to add other users to this session. | 138 // Shows login UI to add other users to this session. |
139 virtual void ShowUserLogin(); | 139 virtual void ShowUserLogin(); |
140 | 140 |
141 // Attempts to sign out the user. | 141 // Attempts to sign out the user. |
142 virtual void SignOut(); | 142 virtual void SignOut(); |
143 | 143 |
144 // Attempts to restart the system for update. | 144 // Attempts to restart the system for update. |
145 virtual void RequestRestartForUpdate(); | 145 virtual void RequestRestartForUpdate(); |
146 | 146 |
147 // Attempts to shut down the system. | |
148 virtual void RequestShutdown(); | |
149 | |
150 // Returns a list of available bluetooth devices. | 147 // Returns a list of available bluetooth devices. |
151 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* devices); | 148 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* devices); |
152 | 149 |
153 // Requests bluetooth start discovering devices. | 150 // Requests bluetooth start discovering devices. |
154 virtual void BluetoothStartDiscovering(); | 151 virtual void BluetoothStartDiscovering(); |
155 | 152 |
156 // Requests bluetooth stop discovering devices. | 153 // Requests bluetooth stop discovering devices. |
157 virtual void BluetoothStopDiscovering(); | 154 virtual void BluetoothStopDiscovering(); |
158 | 155 |
159 // Connect to a specific bluetooth device. | 156 // Connect to a specific bluetooth device. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 // Creates a system tray item for display rotation lock. | 237 // Creates a system tray item for display rotation lock. |
241 // TODO(jamescook): Remove this when mus has support for display management | 238 // TODO(jamescook): Remove this when mus has support for display management |
242 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 239 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
243 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 240 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
244 SystemTray* tray); | 241 SystemTray* tray); |
245 }; | 242 }; |
246 | 243 |
247 } // namespace ash | 244 } // namespace ash |
248 | 245 |
249 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 246 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |