| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | |
| 6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "ash/ash_export.h" | |
| 11 #include "ash/system/tray/system_tray_delegate.h" | |
| 12 #include "base/compiler_specific.h" | |
| 13 #include "base/macros.h" | |
| 14 | |
| 15 namespace ash { | |
| 16 | |
| 17 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate { | |
| 18 public: | |
| 19 DefaultSystemTrayDelegate(); | |
| 20 ~DefaultSystemTrayDelegate() override; | |
| 21 | |
| 22 // SystemTrayDelegate | |
| 23 bool GetTrayVisibilityOnStartup() override; | |
| 24 LoginStatus GetUserLoginStatus() const override; | |
| 25 std::string GetSupervisedUserManager() const override; | |
| 26 bool IsUserSupervised() const override; | |
| 27 void GetSystemUpdateInfo(UpdateInfo* info) const override; | |
| 28 bool ShouldShowSettings() override; | |
| 29 bool ShouldShowDisplayNotification() override; | |
| 30 void ToggleBluetooth() override; | |
| 31 bool IsBluetoothDiscovering() override; | |
| 32 bool GetBluetoothAvailable() override; | |
| 33 bool GetBluetoothEnabled() override; | |
| 34 bool GetBluetoothDiscovering() override; | |
| 35 VolumeControlDelegate* GetVolumeControlDelegate() const override; | |
| 36 void SetVolumeControlDelegate( | |
| 37 std::unique_ptr<VolumeControlDelegate> delegate) override; | |
| 38 int GetSystemTrayMenuWidth() override; | |
| 39 | |
| 40 private: | |
| 41 bool bluetooth_enabled_; | |
| 42 std::unique_ptr<VolumeControlDelegate> volume_control_delegate_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); | |
| 45 }; | |
| 46 | |
| 47 } // namespace ash | |
| 48 | |
| 49 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | |
| OLD | NEW |