| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // Activates an IME property. | 244 // Activates an IME property. |
| 245 virtual void ActivateIMEProperty(const std::string& key) = 0; | 245 virtual void ActivateIMEProperty(const std::string& key) = 0; |
| 246 | 246 |
| 247 // Cancels ongoing drive operation. | 247 // Cancels ongoing drive operation. |
| 248 virtual void CancelDriveOperation(int32 operation_id) = 0; | 248 virtual void CancelDriveOperation(int32 operation_id) = 0; |
| 249 | 249 |
| 250 // Returns information about the ongoing drive operations. | 250 // Returns information about the ongoing drive operations. |
| 251 virtual void GetDriveOperationStatusList( | 251 virtual void GetDriveOperationStatusList( |
| 252 DriveOperationStatusList* list) = 0; | 252 DriveOperationStatusList* list) = 0; |
| 253 | 253 |
| 254 // Returns information about the most relevant network. Relevance is | |
| 255 // determined by the implementor (e.g. a connecting network may be more | |
| 256 // relevant over a connected network etc.) | |
| 257 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, | |
| 258 bool large) = 0; | |
| 259 | |
| 260 virtual void GetVirtualNetworkIcon(ash::NetworkIconInfo* info) = 0; | |
| 261 | |
| 262 // Returns information about the available networks. | |
| 263 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; | |
| 264 | |
| 265 // Returns the information about all virtual networks. | |
| 266 virtual void GetVirtualNetworks(std::vector<NetworkIconInfo>* list) = 0; | |
| 267 | |
| 268 // Shows UI to configure or activate the network specified by |network_id|. | 254 // Shows UI to configure or activate the network specified by |network_id|. |
| 269 virtual void ConfigureNetwork(const std::string& network_id) = 0; | 255 virtual void ConfigureNetwork(const std::string& network_id) = 0; |
| 270 | 256 |
| 271 // Sends a connect request for the network specified by |network_id|. | 257 // Sends a connect request for the network specified by |network_id|. |
| 272 virtual void ConnectToNetwork(const std::string& network_id) = 0; | 258 virtual void ConnectToNetwork(const std::string& network_id) = 0; |
| 273 | 259 |
| 274 // Gets the network IP address, and the mac addresses for the ethernet and | 260 // Shows UI to add a new bluetooth device. |
| 275 // wifi devices. If any of this is unavailable, empty strings are returned. | |
| 276 virtual void GetNetworkAddresses(std::string* ip_address, | |
| 277 std::string* ethernet_mac_address, | |
| 278 std::string* wifi_mac_address) = 0; | |
| 279 | |
| 280 // Requests network scan when list of networks is opened. | |
| 281 virtual void RequestNetworkScan() = 0; | |
| 282 | |
| 283 // Shous UI to add a new bluetooth device. | |
| 284 virtual void AddBluetoothDevice() = 0; | 261 virtual void AddBluetoothDevice() = 0; |
| 285 | 262 |
| 286 // Toggles airplane mode. | |
| 287 virtual void ToggleAirplaneMode() = 0; | |
| 288 | |
| 289 // Toggles wifi network. | |
| 290 virtual void ToggleWifi() = 0; | |
| 291 | |
| 292 // Toggles mobile network. | |
| 293 virtual void ToggleMobile() = 0; | |
| 294 | |
| 295 // Toggles bluetooth. | 263 // Toggles bluetooth. |
| 296 virtual void ToggleBluetooth() = 0; | 264 virtual void ToggleBluetooth() = 0; |
| 297 | 265 |
| 298 // Shows UI to unlock a mobile sim. | 266 // Shows UI to unlock a mobile sim. |
| 299 virtual void ShowMobileSimDialog() = 0; | 267 virtual void ShowMobileSimDialog() = 0; |
| 300 | 268 |
| 301 // Shows UI to connect to an unlisted wifi network. | 269 // Shows UI to connect to an unlisted wifi network. |
| 302 virtual void ShowOtherWifi() = 0; | 270 virtual void ShowOtherWifi() = 0; |
| 303 | 271 |
| 304 // Shows UI to configure vpn. | 272 // Shows UI to configure vpn. |
| 305 virtual void ShowOtherVPN() = 0; | 273 virtual void ShowOtherVPN() = 0; |
| 306 | 274 |
| 307 // Shows UI to search for cellular networks. | 275 // Shows UI to search for cellular networks. |
| 308 virtual void ShowOtherCellular() = 0; | 276 virtual void ShowOtherCellular() = 0; |
| 309 | 277 |
| 310 // Returns whether the system is connected to any network. | |
| 311 virtual bool IsNetworkConnected() = 0; | |
| 312 | |
| 313 // Returns whether wifi is available. | |
| 314 virtual bool GetWifiAvailable() = 0; | |
| 315 | |
| 316 // Returns whether mobile networking (cellular or wimax) is available. | |
| 317 virtual bool GetMobileAvailable() = 0; | |
| 318 | |
| 319 // Returns whether bluetooth capability is available. | 278 // Returns whether bluetooth capability is available. |
| 320 virtual bool GetBluetoothAvailable() = 0; | 279 virtual bool GetBluetoothAvailable() = 0; |
| 321 | 280 |
| 322 // Returns whether wifi is enabled. | |
| 323 virtual bool GetWifiEnabled() = 0; | |
| 324 | |
| 325 // Returns whether mobile (cellular or wimax) networking is enabled. | |
| 326 virtual bool GetMobileEnabled() = 0; | |
| 327 | |
| 328 // Returns whether bluetooth is enabled. | 281 // Returns whether bluetooth is enabled. |
| 329 virtual bool GetBluetoothEnabled() = 0; | 282 virtual bool GetBluetoothEnabled() = 0; |
| 330 | 283 |
| 331 // Returns whether mobile scanning is supported. | |
| 332 virtual bool GetMobileScanSupported() = 0; | |
| 333 | |
| 334 // Retrieves information about the carrier and locale specific |setup_url|. | 284 // Retrieves information about the carrier and locale specific |setup_url|. |
| 335 // If none of the carrier info/setup URL cannot be retrieved, returns false. | 285 // If none of the carrier info/setup URL cannot be retrieved, returns false. |
| 336 // Note: |setup_url| is returned when carrier is not defined (no SIM card). | 286 // Note: |setup_url| is returned when carrier is not defined (no SIM card). |
| 337 virtual bool GetCellularCarrierInfo(std::string* carrier_id, | 287 virtual bool GetCellularCarrierInfo(std::string* carrier_id, |
| 338 std::string* topup_url, | 288 std::string* topup_url, |
| 339 std::string* setup_url) = 0; | 289 std::string* setup_url) = 0; |
| 340 | 290 |
| 341 // Returns whether the network manager is scanning for wifi networks. | |
| 342 virtual bool GetWifiScanning() = 0; | |
| 343 | |
| 344 // Returns whether the network manager is initializing the cellular modem. | |
| 345 virtual bool GetCellularInitializing() = 0; | |
| 346 | |
| 347 // Opens the cellular network specific URL. | 291 // Opens the cellular network specific URL. |
| 348 virtual void ShowCellularURL(const std::string& url) = 0; | 292 virtual void ShowCellularURL(const std::string& url) = 0; |
| 349 | 293 |
| 350 // Shows UI for changing proxy settings. | 294 // Shows UI for changing proxy settings. |
| 351 virtual void ChangeProxySettings() = 0; | 295 virtual void ChangeProxySettings() = 0; |
| 352 | 296 |
| 353 // Returns VolumeControlDelegate. | 297 // Returns VolumeControlDelegate. |
| 354 virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0; | 298 virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0; |
| 355 | 299 |
| 356 // Sets VolumeControlDelegate. | 300 // Sets VolumeControlDelegate. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 375 // Speaks the given text if spoken feedback is enabled. | 319 // Speaks the given text if spoken feedback is enabled. |
| 376 virtual void MaybeSpeak(const std::string& utterance) const = 0; | 320 virtual void MaybeSpeak(const std::string& utterance) const = 0; |
| 377 | 321 |
| 378 // Creates a dummy delegate for testing. | 322 // Creates a dummy delegate for testing. |
| 379 static SystemTrayDelegate* CreateDummyDelegate(); | 323 static SystemTrayDelegate* CreateDummyDelegate(); |
| 380 }; | 324 }; |
| 381 | 325 |
| 382 } // namespace ash | 326 } // namespace ash |
| 383 | 327 |
| 384 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 328 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |