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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 // Returns whether cellular networking is enabled. | 220 // Returns whether cellular networking is enabled. |
221 virtual bool GetCellularEnabled() = 0; | 221 virtual bool GetCellularEnabled() = 0; |
222 | 222 |
223 // Returns whether bluetooth is enabled. | 223 // Returns whether bluetooth is enabled. |
224 virtual bool GetBluetoothEnabled() = 0; | 224 virtual bool GetBluetoothEnabled() = 0; |
225 | 225 |
226 // Returns whether cellular scanning is supported. | 226 // Returns whether cellular scanning is supported. |
227 virtual bool GetCellularScanSupported() = 0; | 227 virtual bool GetCellularScanSupported() = 0; |
228 | 228 |
229 // Retrieves information about the carrier. If the information cannot be | 229 // Retrieves information about the carrier and locale specific |setup_url|. |
230 // retrieved, returns false. | 230 // If none of the carrier info/setup URL cannot be retrieved, returns false. |
| 231 // Note: |setup_url| is returned when carrier is not defined (no SIM card). |
231 virtual bool GetCellularCarrierInfo(std::string* carrier_id, | 232 virtual bool GetCellularCarrierInfo(std::string* carrier_id, |
232 std::string* toup_url) = 0; | 233 std::string* topup_url, |
| 234 std::string* setup_url) = 0; |
233 | 235 |
234 // Opens the top up url. | 236 // Opens the cellular network specific URL. |
235 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; | 237 virtual void ShowCellularURL(const std::string& url) = 0; |
236 | 238 |
237 // Shows UI for changing proxy settings. | 239 // Shows UI for changing proxy settings. |
238 virtual void ChangeProxySettings() = 0; | 240 virtual void ChangeProxySettings() = 0; |
239 }; | 241 }; |
240 | 242 |
241 } // namespace ash | 243 } // namespace ash |
242 | 244 |
243 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 245 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |