| 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 23 matching lines...) Expand all Loading... |
| 34 BluetoothDeviceInfo(); | 34 BluetoothDeviceInfo(); |
| 35 ~BluetoothDeviceInfo(); | 35 ~BluetoothDeviceInfo(); |
| 36 | 36 |
| 37 std::string address; | 37 std::string address; |
| 38 string16 display_name; | 38 string16 display_name; |
| 39 bool connected; | 39 bool connected; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; | 42 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; |
| 43 | 43 |
| 44 struct ASH_EXPORT IMEPropertyInfo { |
| 45 IMEPropertyInfo(); |
| 46 ~IMEPropertyInfo(); |
| 47 |
| 48 bool selected; |
| 49 std::string key; |
| 50 string16 name; |
| 51 }; |
| 52 |
| 53 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; |
| 54 |
| 44 struct ASH_EXPORT IMEInfo { | 55 struct ASH_EXPORT IMEInfo { |
| 45 IMEInfo(); | 56 IMEInfo(); |
| 46 ~IMEInfo(); | 57 ~IMEInfo(); |
| 47 | 58 |
| 48 bool selected; | 59 bool selected; |
| 49 std::string id; | 60 std::string id; |
| 50 string16 name; | 61 string16 name; |
| 51 string16 short_name; | 62 string16 short_name; |
| 52 }; | 63 }; |
| 53 | 64 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 141 |
| 131 // Toggles connection to a specific bluetooth device. | 142 // Toggles connection to a specific bluetooth device. |
| 132 virtual void ToggleBluetoothConnection(const std::string& address) = 0; | 143 virtual void ToggleBluetoothConnection(const std::string& address) = 0; |
| 133 | 144 |
| 134 // Returns the currently selected IME. | 145 // Returns the currently selected IME. |
| 135 virtual void GetCurrentIME(IMEInfo* info) = 0; | 146 virtual void GetCurrentIME(IMEInfo* info) = 0; |
| 136 | 147 |
| 137 // Returns a list of availble IMEs. | 148 // Returns a list of availble IMEs. |
| 138 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; | 149 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; |
| 139 | 150 |
| 151 // Returns a list of properties for the currently selected IME. |
| 152 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; |
| 153 |
| 140 // Switches to the selected input method. | 154 // Switches to the selected input method. |
| 141 virtual void SwitchIME(const std::string& ime_id) = 0; | 155 virtual void SwitchIME(const std::string& ime_id) = 0; |
| 142 | 156 |
| 157 // Activates an IME property. |
| 158 virtual void ActivateIMEProperty(const std::string& key) = 0; |
| 159 |
| 143 // Returns information about the most relevant network. Relevance is | 160 // Returns information about the most relevant network. Relevance is |
| 144 // determined by the implementor (e.g. a connecting network may be more | 161 // determined by the implementor (e.g. a connecting network may be more |
| 145 // relevant over a connected network etc.) | 162 // relevant over a connected network etc.) |
| 146 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, | 163 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, |
| 147 bool large) = 0; | 164 bool large) = 0; |
| 148 | 165 |
| 149 // Returns information about the available networks. | 166 // Returns information about the available networks. |
| 150 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; | 167 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; |
| 151 | 168 |
| 152 // Connects to the network specified by the unique id. | 169 // Connects to the network specified by the unique id. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Returns whether bluetooth is enabled. | 202 // Returns whether bluetooth is enabled. |
| 186 virtual bool GetBluetoothEnabled() = 0; | 203 virtual bool GetBluetoothEnabled() = 0; |
| 187 | 204 |
| 188 // Shows UI for changing proxy settings. | 205 // Shows UI for changing proxy settings. |
| 189 virtual void ChangeProxySettings() = 0; | 206 virtual void ChangeProxySettings() = 0; |
| 190 }; | 207 }; |
| 191 | 208 |
| 192 } // namespace ash | 209 } // namespace ash |
| 193 | 210 |
| 194 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 211 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |