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; | 51 bool is_selection; |
Jun Mukai
2012/04/17 03:55:05
so this field is not necessary anymore
Yusuke Sato
2012/04/17 04:33:32
Done.
| |
52 std::string key; | 52 std::string key; |
53 string16 name; | 53 string16 name; |
54 }; | 54 }; |
55 | 55 |
56 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; | 56 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; |
57 | 57 |
58 struct ASH_EXPORT IMEInfo { | 58 struct ASH_EXPORT IMEInfo { |
59 IMEInfo(); | 59 IMEInfo(); |
60 ~IMEInfo(); | 60 ~IMEInfo(); |
61 | 61 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 | 151 |
152 // Returns a list of availble IMEs. | 152 // Returns a list of availble IMEs. |
153 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; | 153 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; |
154 | 154 |
155 // Returns a list of properties for the currently selected IME. | 155 // Returns a list of properties for the currently selected IME. |
156 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; | 156 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; |
157 | 157 |
158 // Switches to the selected input method. | 158 // Switches to the selected input method. |
159 virtual void SwitchIME(const std::string& ime_id) = 0; | 159 virtual void SwitchIME(const std::string& ime_id) = 0; |
160 | 160 |
161 // Activates an IME property. Specify true to |is_selection| if it's a | 161 // Activates an IME property. |
162 // selection item. | 162 virtual void ActivateIMEProperty(const std::string& key) = 0; |
163 virtual void ActivateIMEProperty( | |
164 const std::string& key, bool is_selection) = 0; | |
165 | 163 |
166 // Returns information about the most relevant network. Relevance is | 164 // Returns information about the most relevant network. Relevance is |
167 // determined by the implementor (e.g. a connecting network may be more | 165 // determined by the implementor (e.g. a connecting network may be more |
168 // relevant over a connected network etc.) | 166 // relevant over a connected network etc.) |
169 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, | 167 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, |
170 bool large) = 0; | 168 bool large) = 0; |
171 | 169 |
172 // Returns information about the available networks. | 170 // Returns information about the available networks. |
173 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; | 171 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; |
174 | 172 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 // Opens the top up url. | 232 // Opens the top up url. |
235 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; | 233 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; |
236 | 234 |
237 // Shows UI for changing proxy settings. | 235 // Shows UI for changing proxy settings. |
238 virtual void ChangeProxySettings() = 0; | 236 virtual void ChangeProxySettings() = 0; |
239 }; | 237 }; |
240 | 238 |
241 } // namespace ash | 239 } // namespace ash |
242 | 240 |
243 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 241 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |