Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / ash / system / tray / test_system_tray_delegate.h
blob4dc847d1fab88b025d2b8fe1fac01826797461c8
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
3 // found in the LICENSE file.
5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
12 // TODO(oshima/stevenjb): Move this to ash/test. crbug.com/159693.
14 namespace ash {
15 namespace test {
17 class TestSystemTrayDelegate : public SystemTrayDelegate {
18 public:
19 TestSystemTrayDelegate();
21 virtual ~TestSystemTrayDelegate();
23 public:
24 virtual void Initialize() OVERRIDE;
25 virtual void Shutdown() OVERRIDE;
26 virtual bool GetTrayVisibilityOnStartup() OVERRIDE;
28 // Overridden from SystemTrayDelegate:
29 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE;
30 virtual bool IsOobeCompleted() const OVERRIDE;
31 virtual void ChangeProfilePicture() OVERRIDE;
32 virtual const std::string GetEnterpriseDomain() const OVERRIDE;
33 virtual const base::string16 GetEnterpriseMessage() const OVERRIDE;
34 virtual const std::string GetLocallyManagedUserManager() const OVERRIDE;
35 virtual const base::string16 GetLocallyManagedUserManagerName() const
36 OVERRIDE;
37 virtual const base::string16 GetLocallyManagedUserMessage() const OVERRIDE;
38 virtual bool SystemShouldUpgrade() const OVERRIDE;
39 virtual base::HourClockType GetHourClockType() const OVERRIDE;
40 virtual void ShowSettings() OVERRIDE;
41 virtual void ShowDateSettings() OVERRIDE;
42 virtual void ShowNetworkSettings(const std::string& service_path) OVERRIDE;
43 virtual void ShowBluetoothSettings() OVERRIDE;
44 virtual void ShowDisplaySettings() OVERRIDE;
45 virtual void ShowChromeSlow() OVERRIDE;
46 virtual bool ShouldShowDisplayNotification() OVERRIDE;
47 virtual void ShowDriveSettings() OVERRIDE;
48 virtual void ShowIMESettings() OVERRIDE;
49 virtual void ShowHelp() OVERRIDE;
50 virtual void ShowAccessibilityHelp() OVERRIDE;
51 virtual void ShowAccessibilitySettings() OVERRIDE;
52 virtual void ShowPublicAccountInfo() OVERRIDE;
53 virtual void ShowEnterpriseInfo() OVERRIDE;
54 virtual void ShowLocallyManagedUserInfo() OVERRIDE;
55 virtual void ShowUserLogin() OVERRIDE;
56 virtual void ShutDown() OVERRIDE;
57 virtual void SignOut() OVERRIDE;
58 virtual void RequestLockScreen() OVERRIDE;
59 virtual void RequestRestartForUpdate() OVERRIDE;
60 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* list) OVERRIDE;
61 virtual void BluetoothStartDiscovering() OVERRIDE;
62 virtual void BluetoothStopDiscovering() OVERRIDE;
63 virtual void ConnectToBluetoothDevice(const std::string& address) OVERRIDE;
64 virtual void GetCurrentIME(IMEInfo* info) OVERRIDE;
65 virtual void GetAvailableIMEList(IMEInfoList* list) OVERRIDE;
66 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) OVERRIDE;
67 virtual void SwitchIME(const std::string& ime_id) OVERRIDE;
68 virtual void ActivateIMEProperty(const std::string& key) OVERRIDE;
69 virtual void CancelDriveOperation(int32 operation_id) OVERRIDE;
70 virtual void GetDriveOperationStatusList(
71 ash::DriveOperationStatusList*) OVERRIDE;
72 virtual void ConfigureNetwork(const std::string& network_id) OVERRIDE;
73 virtual void EnrollOrConfigureNetwork(
74 const std::string& network_id,
75 gfx::NativeWindow parent_window) OVERRIDE;
76 virtual void ManageBluetoothDevices() OVERRIDE;
77 virtual void ToggleBluetooth() OVERRIDE;
78 virtual bool IsBluetoothDiscovering() OVERRIDE;
79 virtual void ShowMobileSimDialog() OVERRIDE;
80 virtual void ShowMobileSetup(const std::string& network_id) OVERRIDE;
81 virtual void ShowOtherWifi() OVERRIDE;
82 virtual void ShowOtherVPN() OVERRIDE;
83 virtual void ShowOtherCellular() OVERRIDE;
84 virtual bool GetBluetoothAvailable() OVERRIDE;
85 virtual bool GetBluetoothEnabled() OVERRIDE;
86 virtual bool GetCellularCarrierInfo(std::string* carrier_id,
87 std::string* topup_url,
88 std::string* setup_url) OVERRIDE;
89 virtual void ShowCellularURL(const std::string& url) OVERRIDE;
90 virtual void ChangeProxySettings() OVERRIDE;
91 virtual VolumeControlDelegate* GetVolumeControlDelegate() const OVERRIDE;
92 virtual void SetVolumeControlDelegate(
93 scoped_ptr<VolumeControlDelegate> delegate) OVERRIDE;
94 virtual bool GetSessionStartTime(
95 base::TimeTicks* session_start_time) OVERRIDE;
96 virtual bool GetSessionLengthLimit(
97 base::TimeDelta* session_length_limit) OVERRIDE;
98 virtual int GetSystemTrayMenuWidth() OVERRIDE;
99 virtual base::string16 FormatTimeDuration(
100 const base::TimeDelta& delta) const OVERRIDE;
101 virtual void MaybeSpeak(const std::string& utterance) const OVERRIDE;
103 void set_should_show_display_notification(bool should_show) {
104 should_show_display_notification_ = should_show;
107 private:
108 bool bluetooth_enabled_;
109 bool caps_lock_enabled_;
110 bool should_show_display_notification_;
111 scoped_ptr<VolumeControlDelegate> volume_control_delegate_;
113 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
116 } // namespace test
117 } // namespace ash
119 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_