| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 | 14 |
| 15 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate { | 15 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate { |
| 16 public: | 16 public: |
| 17 DefaultSystemTrayDelegate(); | 17 DefaultSystemTrayDelegate(); |
| 18 virtual ~DefaultSystemTrayDelegate(); | 18 ~DefaultSystemTrayDelegate() override; |
| 19 | 19 |
| 20 // Overridden from SystemTrayDelegate: | 20 // Overridden from SystemTrayDelegate: |
| 21 virtual void Initialize() override; | 21 void Initialize() override; |
| 22 virtual void Shutdown() override; | 22 void Shutdown() override; |
| 23 virtual bool GetTrayVisibilityOnStartup() override; | 23 bool GetTrayVisibilityOnStartup() override; |
| 24 virtual user::LoginStatus GetUserLoginStatus() const override; | 24 user::LoginStatus GetUserLoginStatus() const override; |
| 25 virtual void ChangeProfilePicture() override; | 25 void ChangeProfilePicture() override; |
| 26 virtual const std::string GetEnterpriseDomain() const override; | 26 const std::string GetEnterpriseDomain() const override; |
| 27 virtual const base::string16 GetEnterpriseMessage() const override; | 27 const base::string16 GetEnterpriseMessage() const override; |
| 28 virtual const std::string GetSupervisedUserManager() const override; | 28 const std::string GetSupervisedUserManager() const override; |
| 29 virtual const base::string16 GetSupervisedUserManagerName() const override; | 29 const base::string16 GetSupervisedUserManagerName() const override; |
| 30 virtual const base::string16 GetSupervisedUserMessage() const override; | 30 const base::string16 GetSupervisedUserMessage() const override; |
| 31 virtual bool IsUserSupervised() const override; | 31 bool IsUserSupervised() const override; |
| 32 virtual void GetSystemUpdateInfo(UpdateInfo* info) const override; | 32 void GetSystemUpdateInfo(UpdateInfo* info) const override; |
| 33 virtual base::HourClockType GetHourClockType() const override; | 33 base::HourClockType GetHourClockType() const override; |
| 34 virtual void ShowSettings() override; | 34 void ShowSettings() override; |
| 35 virtual bool ShouldShowSettings() override; | 35 bool ShouldShowSettings() override; |
| 36 virtual void ShowDateSettings() override; | 36 void ShowDateSettings() override; |
| 37 virtual void ShowSetTimeDialog() override; | 37 void ShowSetTimeDialog() override; |
| 38 virtual void ShowNetworkSettings(const std::string& service_path) override; | 38 void ShowNetworkSettings(const std::string& service_path) override; |
| 39 virtual void ShowBluetoothSettings() override; | 39 void ShowBluetoothSettings() override; |
| 40 virtual void ShowDisplaySettings() override; | 40 void ShowDisplaySettings() override; |
| 41 virtual void ShowChromeSlow() override; | 41 void ShowChromeSlow() override; |
| 42 virtual bool ShouldShowDisplayNotification() override; | 42 bool ShouldShowDisplayNotification() override; |
| 43 virtual void ShowIMESettings() override; | 43 void ShowIMESettings() override; |
| 44 virtual void ShowHelp() override; | 44 void ShowHelp() override; |
| 45 virtual void ShowAccessibilityHelp() override; | 45 void ShowAccessibilityHelp() override; |
| 46 virtual void ShowAccessibilitySettings() override; | 46 void ShowAccessibilitySettings() override; |
| 47 virtual void ShowPublicAccountInfo() override; | 47 void ShowPublicAccountInfo() override; |
| 48 virtual void ShowEnterpriseInfo() override; | 48 void ShowEnterpriseInfo() override; |
| 49 virtual void ShowSupervisedUserInfo() override; | 49 void ShowSupervisedUserInfo() override; |
| 50 virtual void ShowUserLogin() override; | 50 void ShowUserLogin() override; |
| 51 virtual bool ShowSpringChargerReplacementDialog() override; | 51 bool ShowSpringChargerReplacementDialog() override; |
| 52 virtual bool IsSpringChargerReplacementDialogVisible() override; | 52 bool IsSpringChargerReplacementDialogVisible() override; |
| 53 virtual bool HasUserConfirmedSafeSpringCharger() override; | 53 bool HasUserConfirmedSafeSpringCharger() override; |
| 54 virtual void ShutDown() override; | 54 void ShutDown() override; |
| 55 virtual void SignOut() override; | 55 void SignOut() override; |
| 56 virtual void RequestLockScreen() override; | 56 void RequestLockScreen() override; |
| 57 virtual void RequestRestartForUpdate() override; | 57 void RequestRestartForUpdate() override; |
| 58 virtual void GetAvailableBluetoothDevices(BluetoothDeviceList* list) override; | 58 void GetAvailableBluetoothDevices(BluetoothDeviceList* list) override; |
| 59 virtual void BluetoothStartDiscovering() override; | 59 void BluetoothStartDiscovering() override; |
| 60 virtual void BluetoothStopDiscovering() override; | 60 void BluetoothStopDiscovering() override; |
| 61 virtual void ConnectToBluetoothDevice(const std::string& address) override; | 61 void ConnectToBluetoothDevice(const std::string& address) override; |
| 62 virtual void GetCurrentIME(IMEInfo* info) override; | 62 void GetCurrentIME(IMEInfo* info) override; |
| 63 virtual void GetAvailableIMEList(IMEInfoList* list) override; | 63 void GetAvailableIMEList(IMEInfoList* list) override; |
| 64 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) override; | 64 void GetCurrentIMEProperties(IMEPropertyInfoList* list) override; |
| 65 virtual void SwitchIME(const std::string& ime_id) override; | 65 void SwitchIME(const std::string& ime_id) override; |
| 66 virtual void ActivateIMEProperty(const std::string& key) override; | 66 void ActivateIMEProperty(const std::string& key) override; |
| 67 virtual void ShowNetworkConfigure(const std::string& network_id) override; | 67 void ManageBluetoothDevices() override; |
| 68 virtual bool EnrollNetwork(const std::string& network_id) override; | 68 void ToggleBluetooth() override; |
| 69 virtual void ManageBluetoothDevices() override; | 69 bool IsBluetoothDiscovering() override; |
| 70 virtual void ToggleBluetooth() override; | 70 void ShowOtherNetworkDialog(const std::string& type) override; |
| 71 virtual bool IsBluetoothDiscovering() override; | 71 bool GetBluetoothAvailable() override; |
| 72 virtual void ShowMobileSimDialog() override; | 72 bool GetBluetoothEnabled() override; |
| 73 virtual void ShowMobileSetupDialog(const std::string& service_path) override; | 73 bool GetBluetoothDiscovering() override; |
| 74 virtual void ShowOtherNetworkDialog(const std::string& type) override; | 74 void ChangeProxySettings() override; |
| 75 virtual bool GetBluetoothAvailable() override; | 75 VolumeControlDelegate* GetVolumeControlDelegate() const override; |
| 76 virtual bool GetBluetoothEnabled() override; | 76 void SetVolumeControlDelegate( |
| 77 virtual bool GetBluetoothDiscovering() override; | |
| 78 virtual void ChangeProxySettings() override; | |
| 79 virtual VolumeControlDelegate* GetVolumeControlDelegate() const override; | |
| 80 virtual void SetVolumeControlDelegate( | |
| 81 scoped_ptr<VolumeControlDelegate> delegate) override; | 77 scoped_ptr<VolumeControlDelegate> delegate) override; |
| 82 virtual bool GetSessionStartTime( | 78 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; |
| 83 base::TimeTicks* session_start_time) override; | 79 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; |
| 84 virtual bool GetSessionLengthLimit( | 80 int GetSystemTrayMenuWidth() override; |
| 85 base::TimeDelta* session_length_limit) override; | 81 void ActiveUserWasChanged() override; |
| 86 virtual int GetSystemTrayMenuWidth() override; | 82 bool IsSearchKeyMappedToCapsLock() override; |
| 87 virtual void ActiveUserWasChanged() override; | 83 tray::UserAccountsDelegate* GetUserAccountsDelegate( |
| 88 virtual bool IsSearchKeyMappedToCapsLock() override; | |
| 89 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( | |
| 90 const std::string& user_id) override; | 84 const std::string& user_id) override; |
| 91 virtual void AddCustodianInfoTrayObserver( | 85 void AddCustodianInfoTrayObserver( |
| 92 CustodianInfoTrayObserver* observer) override; | 86 CustodianInfoTrayObserver* observer) override; |
| 93 virtual void RemoveCustodianInfoTrayObserver( | 87 void RemoveCustodianInfoTrayObserver( |
| 94 CustodianInfoTrayObserver* observer) override; | 88 CustodianInfoTrayObserver* observer) override; |
| 95 | 89 |
| 96 private: | 90 private: |
| 97 bool bluetooth_enabled_; | 91 bool bluetooth_enabled_; |
| 98 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; | 92 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; |
| 99 | 93 |
| 100 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); | 94 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); |
| 101 }; | 95 }; |
| 102 | 96 |
| 103 } // namespace ash | 97 } // namespace ash |
| 104 | 98 |
| 105 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | 99 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |