| 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 ~DefaultSystemTrayDelegate() override; | 18 ~DefaultSystemTrayDelegate() override; |
| 19 | 19 |
| 20 // SystemTrayDelegate | 20 // SystemTrayDelegate |
| 21 bool GetTrayVisibilityOnStartup() override; | 21 bool GetTrayVisibilityOnStartup() override; |
| 22 user::LoginStatus GetUserLoginStatus() const override; | 22 user::LoginStatus GetUserLoginStatus() const override; |
| 23 const std::string GetSupervisedUserManager() const override; | 23 std::string GetSupervisedUserManager() const override; |
| 24 bool IsUserSupervised() const override; | 24 bool IsUserSupervised() const override; |
| 25 void GetSystemUpdateInfo(UpdateInfo* info) const override; | 25 void GetSystemUpdateInfo(UpdateInfo* info) const override; |
| 26 bool ShouldShowSettings() override; | 26 bool ShouldShowSettings() override; |
| 27 bool ShouldShowDisplayNotification() override; | 27 bool ShouldShowDisplayNotification() override; |
| 28 void ToggleBluetooth() override; | 28 void ToggleBluetooth() override; |
| 29 bool IsBluetoothDiscovering() override; | 29 bool IsBluetoothDiscovering() override; |
| 30 bool GetBluetoothAvailable() override; | 30 bool GetBluetoothAvailable() override; |
| 31 bool GetBluetoothEnabled() override; | 31 bool GetBluetoothEnabled() override; |
| 32 bool GetBluetoothDiscovering() override; | 32 bool GetBluetoothDiscovering() override; |
| 33 VolumeControlDelegate* GetVolumeControlDelegate() const override; | 33 VolumeControlDelegate* GetVolumeControlDelegate() const override; |
| 34 void SetVolumeControlDelegate( | 34 void SetVolumeControlDelegate( |
| 35 scoped_ptr<VolumeControlDelegate> delegate) override; | 35 scoped_ptr<VolumeControlDelegate> delegate) override; |
| 36 int GetSystemTrayMenuWidth() override; | 36 int GetSystemTrayMenuWidth() override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 bool bluetooth_enabled_; | 39 bool bluetooth_enabled_; |
| 40 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; | 40 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); | 42 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace ash | 45 } // namespace ash |
| 46 | 46 |
| 47 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | 47 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |