| 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 30 matching lines...) Expand all Loading... |
| 41 bool connected; | 41 bool connected; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; | 44 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; |
| 45 | 45 |
| 46 struct ASH_EXPORT IMEPropertyInfo { | 46 struct ASH_EXPORT IMEPropertyInfo { |
| 47 IMEPropertyInfo(); | 47 IMEPropertyInfo(); |
| 48 ~IMEPropertyInfo(); | 48 ~IMEPropertyInfo(); |
| 49 | 49 |
| 50 bool selected; | 50 bool selected; |
| 51 bool is_selection; | |
| 52 std::string key; | 51 std::string key; |
| 53 string16 name; | 52 string16 name; |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; | 55 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; |
| 57 | 56 |
| 58 struct ASH_EXPORT IMEInfo { | 57 struct ASH_EXPORT IMEInfo { |
| 59 IMEInfo(); | 58 IMEInfo(); |
| 60 ~IMEInfo(); | 59 ~IMEInfo(); |
| 61 | 60 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 153 |
| 155 // Returns a list of availble IMEs. | 154 // Returns a list of availble IMEs. |
| 156 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; | 155 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; |
| 157 | 156 |
| 158 // Returns a list of properties for the currently selected IME. | 157 // Returns a list of properties for the currently selected IME. |
| 159 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; | 158 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; |
| 160 | 159 |
| 161 // Switches to the selected input method. | 160 // Switches to the selected input method. |
| 162 virtual void SwitchIME(const std::string& ime_id) = 0; | 161 virtual void SwitchIME(const std::string& ime_id) = 0; |
| 163 | 162 |
| 164 // Activates an IME property. Specify true to |is_selection| if it's a | 163 // Activates an IME property. |
| 165 // selection item. | 164 virtual void ActivateIMEProperty(const std::string& key) = 0; |
| 166 virtual void ActivateIMEProperty( | |
| 167 const std::string& key, bool is_selection) = 0; | |
| 168 | 165 |
| 169 // Returns information about the most relevant network. Relevance is | 166 // Returns information about the most relevant network. Relevance is |
| 170 // determined by the implementor (e.g. a connecting network may be more | 167 // determined by the implementor (e.g. a connecting network may be more |
| 171 // relevant over a connected network etc.) | 168 // relevant over a connected network etc.) |
| 172 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, | 169 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, |
| 173 bool large) = 0; | 170 bool large) = 0; |
| 174 | 171 |
| 175 // Returns information about the available networks. | 172 // Returns information about the available networks. |
| 176 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; | 173 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; |
| 177 | 174 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // Opens the top up url. | 234 // Opens the top up url. |
| 238 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; | 235 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; |
| 239 | 236 |
| 240 // Shows UI for changing proxy settings. | 237 // Shows UI for changing proxy settings. |
| 241 virtual void ChangeProxySettings() = 0; | 238 virtual void ChangeProxySettings() = 0; |
| 242 }; | 239 }; |
| 243 | 240 |
| 244 } // namespace ash | 241 } // namespace ash |
| 245 | 242 |
| 246 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 243 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |