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