| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Activates an IME property. | 248 // Activates an IME property. |
| 249 virtual void ActivateIMEProperty(const std::string& key) = 0; | 249 virtual void ActivateIMEProperty(const std::string& key) = 0; |
| 250 | 250 |
| 251 // Cancels ongoing drive operation. | 251 // Cancels ongoing drive operation. |
| 252 virtual void CancelDriveOperation(int32 operation_id) = 0; | 252 virtual void CancelDriveOperation(int32 operation_id) = 0; |
| 253 | 253 |
| 254 // Returns information about the ongoing drive operations. | 254 // Returns information about the ongoing drive operations. |
| 255 virtual void GetDriveOperationStatusList( | 255 virtual void GetDriveOperationStatusList( |
| 256 DriveOperationStatusList* list) = 0; | 256 DriveOperationStatusList* list) = 0; |
| 257 | 257 |
| 258 // Shows UI to configure or activate the network specified by |network_id|. | 258 // Shows UI to configure or activate the network specified by |network_id|, |
| 259 // which may include showing Payment or Portal UI when appropriate. |
| 259 virtual void ConfigureNetwork(const std::string& network_id) = 0; | 260 virtual void ConfigureNetwork(const std::string& network_id) = 0; |
| 260 | 261 |
| 261 // Shows UI to enroll the network specified by |network_id| if appropriate, | 262 // Shows UI to enroll the network specified by |network_id| if appropriate, |
| 262 // otherwise behaves the same as ConfigureNetwork. |parent_window| is used | 263 // otherwise behaves the same as ConfigureNetwork. |parent_window| is used |
| 263 // to parent any configuration UI. If NULL a default window will be used. | 264 // to parent any configuration UI. If NULL a default window will be used. |
| 264 virtual void EnrollOrConfigureNetwork(const std::string& network_id, | 265 virtual void EnrollOrConfigureNetwork(const std::string& network_id, |
| 265 gfx::NativeWindow parent_window) = 0; | 266 gfx::NativeWindow parent_window) = 0; |
| 266 | 267 |
| 267 // Shows UI to manage bluetooth devices. | 268 // Shows UI to manage bluetooth devices. |
| 268 virtual void ManageBluetoothDevices() = 0; | 269 virtual void ManageBluetoothDevices() = 0; |
| 269 | 270 |
| 270 // Toggles bluetooth. | 271 // Toggles bluetooth. |
| 271 virtual void ToggleBluetooth() = 0; | 272 virtual void ToggleBluetooth() = 0; |
| 272 | 273 |
| 273 // Shows UI to unlock a mobile sim. | 274 // Shows UI to unlock a mobile sim. |
| 274 virtual void ShowMobileSimDialog() = 0; | 275 virtual void ShowMobileSimDialog() = 0; |
| 275 | 276 |
| 276 // Shows UI to setup a mobile network. | 277 // Shows UI to setup a mobile network. |
| 277 virtual void ShowMobileSetup(const std::string& network_id) = 0; | 278 virtual void ShowMobileSetupDialog(const std::string& service_path) = 0; |
| 278 | 279 |
| 279 // Shows UI to connect to an unlisted wifi network. | 280 // Shows UI to connect to an unlisted wifi network. |
| 280 virtual void ShowOtherWifi() = 0; | 281 virtual void ShowOtherWifi() = 0; |
| 281 | 282 |
| 282 // Shows UI to configure vpn. | 283 // Shows UI to configure vpn. |
| 283 virtual void ShowOtherVPN() = 0; | 284 virtual void ShowOtherVPN() = 0; |
| 284 | 285 |
| 285 // Shows UI to search for cellular networks. | 286 // Shows UI to search for cellular networks. |
| 286 virtual void ShowOtherCellular() = 0; | 287 virtual void ShowOtherCellular() = 0; |
| 287 | 288 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 313 // Speaks the given text if spoken feedback is enabled. | 314 // Speaks the given text if spoken feedback is enabled. |
| 314 virtual void MaybeSpeak(const std::string& utterance) const = 0; | 315 virtual void MaybeSpeak(const std::string& utterance) const = 0; |
| 315 | 316 |
| 316 // Creates a dummy delegate for testing. | 317 // Creates a dummy delegate for testing. |
| 317 static SystemTrayDelegate* CreateDummyDelegate(); | 318 static SystemTrayDelegate* CreateDummyDelegate(); |
| 318 }; | 319 }; |
| 319 | 320 |
| 320 } // namespace ash | 321 } // namespace ash |
| 321 | 322 |
| 322 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 323 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |