| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 NetworkIconInfo(); | 23 NetworkIconInfo(); |
| 24 ~NetworkIconInfo(); | 24 ~NetworkIconInfo(); |
| 25 | 25 |
| 26 bool highlight; | 26 bool highlight; |
| 27 SkBitmap image; | 27 SkBitmap image; |
| 28 string16 name; | 28 string16 name; |
| 29 string16 description; | 29 string16 description; |
| 30 std::string service_path; | 30 std::string service_path; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 struct ASH_EXPORT BluetoothDeviceInfo { |
| 34 BluetoothDeviceInfo(); |
| 35 ~BluetoothDeviceInfo(); |
| 36 |
| 37 std::string address; |
| 38 string16 display_name; |
| 39 bool connected; |
| 40 }; |
| 41 |
| 42 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; |
| 43 |
| 33 struct PowerSupplyStatus; | 44 struct PowerSupplyStatus; |
| 34 | 45 |
| 35 class SystemTrayDelegate { | 46 class SystemTrayDelegate { |
| 36 public: | 47 public: |
| 37 virtual ~SystemTrayDelegate() {} | 48 virtual ~SystemTrayDelegate() {} |
| 38 | 49 |
| 39 // Gets information about the logged in user. | 50 // Gets information about the logged in user. |
| 40 virtual const std::string GetUserDisplayName() const = 0; | 51 virtual const std::string GetUserDisplayName() const = 0; |
| 41 virtual const std::string GetUserEmail() const = 0; | 52 virtual const std::string GetUserEmail() const = 0; |
| 42 virtual const SkBitmap& GetUserImage() const = 0; | 53 virtual const SkBitmap& GetUserImage() const = 0; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 97 |
| 87 // Attempts to shut down the system. | 98 // Attempts to shut down the system. |
| 88 virtual void ShutDown() = 0; | 99 virtual void ShutDown() = 0; |
| 89 | 100 |
| 90 // Attempts to sign out the user. | 101 // Attempts to sign out the user. |
| 91 virtual void SignOut() = 0; | 102 virtual void SignOut() = 0; |
| 92 | 103 |
| 93 // Attempts to lock the screen. | 104 // Attempts to lock the screen. |
| 94 virtual void RequestLockScreen() = 0; | 105 virtual void RequestLockScreen() = 0; |
| 95 | 106 |
| 107 // Returns a list of available bluetooth devices. |
| 108 virtual BluetoothDeviceList GetAvailableBluetoothDevices() = 0; |
| 109 |
| 96 // Returns information about the most relevant network. Relevance is | 110 // Returns information about the most relevant network. Relevance is |
| 97 // determined by the implementor (e.g. a connecting network may be more | 111 // determined by the implementor (e.g. a connecting network may be more |
| 98 // relevant over a connected network etc.) | 112 // relevant over a connected network etc.) |
| 99 virtual NetworkIconInfo GetMostRelevantNetworkIcon(bool large) = 0; | 113 virtual NetworkIconInfo GetMostRelevantNetworkIcon(bool large) = 0; |
| 100 | 114 |
| 101 // Returns information about the available networks. | 115 // Returns information about the available networks. |
| 102 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; | 116 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; |
| 103 | 117 |
| 104 // Connects to the network specified by the unique id. | 118 // Connects to the network specified by the unique id. |
| 105 virtual void ConnectToNetwork(const std::string& network_id) = 0; | 119 virtual void ConnectToNetwork(const std::string& network_id) = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 125 // Returns whether cellular networking is enabled. | 139 // Returns whether cellular networking is enabled. |
| 126 virtual bool GetCellularEnabled() = 0; | 140 virtual bool GetCellularEnabled() = 0; |
| 127 | 141 |
| 128 // Shows UI for changing proxy settings. | 142 // Shows UI for changing proxy settings. |
| 129 virtual void ChangeProxySettings() = 0; | 143 virtual void ChangeProxySettings() = 0; |
| 130 }; | 144 }; |
| 131 | 145 |
| 132 } // namespace ash | 146 } // namespace ash |
| 133 | 147 |
| 134 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 148 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |