| 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_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/system/tray/system_tray_delegate.h" | 8 #include "ash/system/tray/system_tray_delegate.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual void BluetoothStopDiscovering() OVERRIDE; | 63 virtual void BluetoothStopDiscovering() OVERRIDE; |
| 64 virtual void ConnectToBluetoothDevice(const std::string& address) OVERRIDE; | 64 virtual void ConnectToBluetoothDevice(const std::string& address) OVERRIDE; |
| 65 virtual void GetCurrentIME(IMEInfo* info) OVERRIDE; | 65 virtual void GetCurrentIME(IMEInfo* info) OVERRIDE; |
| 66 virtual void GetAvailableIMEList(IMEInfoList* list) OVERRIDE; | 66 virtual void GetAvailableIMEList(IMEInfoList* list) OVERRIDE; |
| 67 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) OVERRIDE; | 67 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) OVERRIDE; |
| 68 virtual void SwitchIME(const std::string& ime_id) OVERRIDE; | 68 virtual void SwitchIME(const std::string& ime_id) OVERRIDE; |
| 69 virtual void ActivateIMEProperty(const std::string& key) OVERRIDE; | 69 virtual void ActivateIMEProperty(const std::string& key) OVERRIDE; |
| 70 virtual void CancelDriveOperation(int32 operation_id) OVERRIDE; | 70 virtual void CancelDriveOperation(int32 operation_id) OVERRIDE; |
| 71 virtual void GetDriveOperationStatusList( | 71 virtual void GetDriveOperationStatusList( |
| 72 ash::DriveOperationStatusList*) OVERRIDE; | 72 ash::DriveOperationStatusList*) OVERRIDE; |
| 73 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, | |
| 74 bool large) OVERRIDE; | |
| 75 virtual void GetVirtualNetworkIcon(ash::NetworkIconInfo* info) OVERRIDE; | |
| 76 virtual void GetAvailableNetworks( | |
| 77 std::vector<NetworkIconInfo>* list) OVERRIDE; | |
| 78 virtual void GetVirtualNetworks(std::vector<NetworkIconInfo>* list) OVERRIDE; | |
| 79 virtual void ConfigureNetwork(const std::string& network_id) OVERRIDE; | 73 virtual void ConfigureNetwork(const std::string& network_id) OVERRIDE; |
| 80 virtual void ConnectToNetwork(const std::string& network_id) OVERRIDE; | 74 virtual void ConnectToNetwork(const std::string& network_id) OVERRIDE; |
| 81 virtual void GetNetworkAddresses(std::string* ip_address, | |
| 82 std::string* ethernet_mac_address, | |
| 83 std::string* wifi_mac_address) OVERRIDE; | |
| 84 virtual void RequestNetworkScan() OVERRIDE; | |
| 85 virtual void AddBluetoothDevice() OVERRIDE; | 75 virtual void AddBluetoothDevice() OVERRIDE; |
| 86 virtual void ToggleAirplaneMode() OVERRIDE; | |
| 87 virtual void ToggleWifi() OVERRIDE; | |
| 88 virtual void ToggleMobile() OVERRIDE; | |
| 89 virtual void ToggleBluetooth() OVERRIDE; | 76 virtual void ToggleBluetooth() OVERRIDE; |
| 90 virtual bool IsBluetoothDiscovering() OVERRIDE; | 77 virtual bool IsBluetoothDiscovering() OVERRIDE; |
| 91 virtual void ShowMobileSimDialog() OVERRIDE; | 78 virtual void ShowMobileSimDialog() OVERRIDE; |
| 92 virtual void ShowOtherWifi() OVERRIDE; | 79 virtual void ShowOtherWifi() OVERRIDE; |
| 93 virtual void ShowOtherVPN() OVERRIDE; | 80 virtual void ShowOtherVPN() OVERRIDE; |
| 94 virtual void ShowOtherCellular() OVERRIDE; | 81 virtual void ShowOtherCellular() OVERRIDE; |
| 95 virtual bool IsNetworkConnected() OVERRIDE; | |
| 96 virtual bool GetWifiAvailable() OVERRIDE; | |
| 97 virtual bool GetMobileAvailable() OVERRIDE; | |
| 98 virtual bool GetBluetoothAvailable() OVERRIDE; | 82 virtual bool GetBluetoothAvailable() OVERRIDE; |
| 99 virtual bool GetWifiEnabled() OVERRIDE; | |
| 100 virtual bool GetMobileEnabled() OVERRIDE; | |
| 101 virtual bool GetBluetoothEnabled() OVERRIDE; | 83 virtual bool GetBluetoothEnabled() OVERRIDE; |
| 102 virtual bool GetMobileScanSupported() OVERRIDE; | |
| 103 virtual bool GetCellularCarrierInfo(std::string* carrier_id, | 84 virtual bool GetCellularCarrierInfo(std::string* carrier_id, |
| 104 std::string* topup_url, | 85 std::string* topup_url, |
| 105 std::string* setup_url) OVERRIDE; | 86 std::string* setup_url) OVERRIDE; |
| 106 virtual bool GetWifiScanning() OVERRIDE; | |
| 107 virtual bool GetCellularInitializing() OVERRIDE; | |
| 108 virtual void ShowCellularURL(const std::string& url) OVERRIDE; | 87 virtual void ShowCellularURL(const std::string& url) OVERRIDE; |
| 109 virtual void ChangeProxySettings() OVERRIDE; | 88 virtual void ChangeProxySettings() OVERRIDE; |
| 110 virtual VolumeControlDelegate* GetVolumeControlDelegate() const OVERRIDE; | 89 virtual VolumeControlDelegate* GetVolumeControlDelegate() const OVERRIDE; |
| 111 virtual void SetVolumeControlDelegate( | 90 virtual void SetVolumeControlDelegate( |
| 112 scoped_ptr<VolumeControlDelegate> delegate) OVERRIDE; | 91 scoped_ptr<VolumeControlDelegate> delegate) OVERRIDE; |
| 113 virtual bool GetSessionStartTime( | 92 virtual bool GetSessionStartTime( |
| 114 base::TimeTicks* session_start_time) OVERRIDE; | 93 base::TimeTicks* session_start_time) OVERRIDE; |
| 115 virtual bool GetSessionLengthLimit( | 94 virtual bool GetSessionLengthLimit( |
| 116 base::TimeDelta* session_length_limit) OVERRIDE; | 95 base::TimeDelta* session_length_limit) OVERRIDE; |
| 117 virtual int GetSystemTrayMenuWidth() OVERRIDE; | 96 virtual int GetSystemTrayMenuWidth() OVERRIDE; |
| 118 virtual base::string16 FormatTimeDuration( | 97 virtual base::string16 FormatTimeDuration( |
| 119 const base::TimeDelta& delta) const OVERRIDE; | 98 const base::TimeDelta& delta) const OVERRIDE; |
| 120 virtual void MaybeSpeak(const std::string& utterance) const OVERRIDE; | 99 virtual void MaybeSpeak(const std::string& utterance) const OVERRIDE; |
| 121 | 100 |
| 122 private: | 101 private: |
| 123 bool wifi_enabled_; | |
| 124 bool cellular_enabled_; | |
| 125 bool bluetooth_enabled_; | 102 bool bluetooth_enabled_; |
| 126 bool caps_lock_enabled_; | 103 bool caps_lock_enabled_; |
| 127 gfx::ImageSkia null_image_; | 104 gfx::ImageSkia null_image_; |
| 128 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; | 105 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; |
| 129 | 106 |
| 130 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); |
| 131 }; | 108 }; |
| 132 | 109 |
| 133 } // namespace test | 110 } // namespace test |
| 134 } // namespace ash | 111 } // namespace ash |
| 135 | 112 |
| 136 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 113 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |