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 30 matching lines...) Expand all Loading... |
41 }; | 41 }; |
42 | 42 |
43 struct ASH_EXPORT BluetoothDeviceInfo { | 43 struct ASH_EXPORT BluetoothDeviceInfo { |
44 BluetoothDeviceInfo(); | 44 BluetoothDeviceInfo(); |
45 ~BluetoothDeviceInfo(); | 45 ~BluetoothDeviceInfo(); |
46 | 46 |
47 std::string address; | 47 std::string address; |
48 string16 display_name; | 48 string16 display_name; |
49 bool connected; | 49 bool connected; |
50 bool paired; | 50 bool paired; |
51 bool visible; | |
52 }; | 51 }; |
53 | 52 |
54 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; | 53 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; |
55 | 54 |
56 // Structure that packs progress information of each operation. | 55 // Structure that packs progress information of each operation. |
57 struct ASH_EXPORT DriveOperationStatus { | 56 struct ASH_EXPORT DriveOperationStatus { |
58 enum OperationType { | 57 enum OperationType { |
59 OPERATION_UPLOAD, | 58 OPERATION_UPLOAD, |
60 OPERATION_DOWNLOAD, | 59 OPERATION_DOWNLOAD, |
61 OPERATION_OTHER, | 60 OPERATION_OTHER, |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 // Speaks the given text if spoken feedback is enabled. | 347 // Speaks the given text if spoken feedback is enabled. |
349 virtual void MaybeSpeak(const std::string& utterance) const = 0; | 348 virtual void MaybeSpeak(const std::string& utterance) const = 0; |
350 | 349 |
351 // Creates a dummy delegate for testing. | 350 // Creates a dummy delegate for testing. |
352 static SystemTrayDelegate* CreateDummyDelegate(); | 351 static SystemTrayDelegate* CreateDummyDelegate(); |
353 }; | 352 }; |
354 | 353 |
355 } // namespace ash | 354 } // namespace ash |
356 | 355 |
357 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 356 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |