| 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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 std::string service_path; | 33 std::string service_path; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 struct ASH_EXPORT BluetoothDeviceInfo { | 36 struct ASH_EXPORT BluetoothDeviceInfo { |
| 37 BluetoothDeviceInfo(); | 37 BluetoothDeviceInfo(); |
| 38 ~BluetoothDeviceInfo(); | 38 ~BluetoothDeviceInfo(); |
| 39 | 39 |
| 40 std::string address; | 40 std::string address; |
| 41 string16 display_name; | 41 string16 display_name; |
| 42 bool connected; | 42 bool connected; |
| 43 bool paired; |
| 44 bool visible; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; | 47 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; |
| 46 | 48 |
| 47 // Structure that packs progress information of each operation. | 49 // Structure that packs progress information of each operation. |
| 48 struct ASH_EXPORT DriveOperationStatus { | 50 struct ASH_EXPORT DriveOperationStatus { |
| 49 enum OperationType { | 51 enum OperationType { |
| 50 OPERATION_UPLOAD, | 52 OPERATION_UPLOAD, |
| 51 OPERATION_DOWNLOAD, | 53 OPERATION_DOWNLOAD, |
| 52 OPERATION_OTHER, | 54 OPERATION_OTHER, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 179 |
| 178 // Attempts to lock the screen. | 180 // Attempts to lock the screen. |
| 179 virtual void RequestLockScreen() = 0; | 181 virtual void RequestLockScreen() = 0; |
| 180 | 182 |
| 181 // Attempts to restart the system. | 183 // Attempts to restart the system. |
| 182 virtual void RequestRestart() = 0; | 184 virtual void RequestRestart() = 0; |
| 183 | 185 |
| 184 // Returns a list of available bluetooth devices. | 186 // Returns a list of available bluetooth devices. |
| 185 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* devices) = 0; | 187 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* devices) = 0; |
| 186 | 188 |
| 189 // Requests bluetooth start or stop discovering devices. |
| 190 virtual void BluetoothSetDiscovering(bool value) = 0; |
| 191 |
| 187 // Toggles connection to a specific bluetooth device. | 192 // Toggles connection to a specific bluetooth device. |
| 188 virtual void ToggleBluetoothConnection(const std::string& address) = 0; | 193 virtual void ToggleBluetoothConnection(const std::string& address) = 0; |
| 189 | 194 |
| 190 // Returns true if bluetooth adapter is discovering bluetooth devices. | 195 // Returns true if bluetooth adapter is discovering bluetooth devices. |
| 191 virtual bool IsBluetoothDiscovering() = 0; | 196 virtual bool IsBluetoothDiscovering() = 0; |
| 192 | 197 |
| 193 // Returns the currently selected IME. | 198 // Returns the currently selected IME. |
| 194 virtual void GetCurrentIME(IMEInfo* info) = 0; | 199 virtual void GetCurrentIME(IMEInfo* info) = 0; |
| 195 | 200 |
| 196 // Returns a list of availble IMEs. | 201 // Returns a list of availble IMEs. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 // length limit is set. | 322 // length limit is set. |
| 318 virtual base::TimeDelta GetSessionLengthLimit() = 0; | 323 virtual base::TimeDelta GetSessionLengthLimit() = 0; |
| 319 | 324 |
| 320 // Creates a dummy delegate for testing. | 325 // Creates a dummy delegate for testing. |
| 321 static SystemTrayDelegate* CreateDummyDelegate(); | 326 static SystemTrayDelegate* CreateDummyDelegate(); |
| 322 }; | 327 }; |
| 323 | 328 |
| 324 } // namespace ash | 329 } // namespace ash |
| 325 | 330 |
| 326 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 331 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |