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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 // Toggles bluetooth. | 247 // Toggles bluetooth. |
248 virtual void ToggleBluetooth() = 0; | 248 virtual void ToggleBluetooth() = 0; |
249 | 249 |
250 // Shows UI to connect to an unlisted wifi network. | 250 // Shows UI to connect to an unlisted wifi network. |
251 virtual void ShowOtherWifi() = 0; | 251 virtual void ShowOtherWifi() = 0; |
252 | 252 |
253 // Shows UI to search for cellular networks. | 253 // Shows UI to search for cellular networks. |
254 virtual void ShowOtherCellular() = 0; | 254 virtual void ShowOtherCellular() = 0; |
255 | 255 |
| 256 // Returns whether the system is connected to any network. |
| 257 virtual bool IsNetworkConnected() = 0; |
| 258 |
256 // Returns whether wifi is available. | 259 // Returns whether wifi is available. |
257 virtual bool GetWifiAvailable() = 0; | 260 virtual bool GetWifiAvailable() = 0; |
258 | 261 |
259 // Returns whether mobile networking (cellular or wimax) is available. | 262 // Returns whether mobile networking (cellular or wimax) is available. |
260 virtual bool GetMobileAvailable() = 0; | 263 virtual bool GetMobileAvailable() = 0; |
261 | 264 |
262 // Returns whether bluetooth capability is available. | 265 // Returns whether bluetooth capability is available. |
263 virtual bool GetBluetoothAvailable() = 0; | 266 virtual bool GetBluetoothAvailable() = 0; |
264 | 267 |
265 // Returns whether wifi is enabled. | 268 // Returns whether wifi is enabled. |
(...skipping 18 matching lines...) Expand all Loading... |
284 // Opens the cellular network specific URL. | 287 // Opens the cellular network specific URL. |
285 virtual void ShowCellularURL(const std::string& url) = 0; | 288 virtual void ShowCellularURL(const std::string& url) = 0; |
286 | 289 |
287 // Shows UI for changing proxy settings. | 290 // Shows UI for changing proxy settings. |
288 virtual void ChangeProxySettings() = 0; | 291 virtual void ChangeProxySettings() = 0; |
289 }; | 292 }; |
290 | 293 |
291 } // namespace ash | 294 } // namespace ash |
292 | 295 |
293 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 296 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |