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 virtual ~DefaultSystemTrayDelegate(); |
19 | 19 |
20 // Overridden from SystemTrayDelegate: | 20 // Overridden from SystemTrayDelegate: |
21 virtual void Initialize() override; | 21 virtual void Initialize() override; |
22 virtual void Shutdown() override; | 22 virtual void Shutdown() override; |
23 virtual bool GetTrayVisibilityOnStartup() override; | 23 virtual bool GetTrayVisibilityOnStartup() override; |
24 virtual user::LoginStatus GetUserLoginStatus() const override; | 24 virtual user::LoginStatus GetUserLoginStatus() const override; |
25 virtual void ChangeProfilePicture() override; | 25 virtual void ChangeProfilePicture() override; |
26 virtual const std::string GetEnterpriseDomain() const override; | 26 virtual const std::string GetEnterpriseDomain() const override; |
27 virtual const base::string16 GetEnterpriseMessage() const override; | 27 virtual const base::string16 GetEnterpriseMessage() const override; |
28 virtual const std::string GetSupervisedUserManager() const override; | 28 virtual const std::string GetSupervisedUserManager() const override; |
29 virtual const base::string16 GetSupervisedUserManagerName() const | 29 virtual const base::string16 GetSupervisedUserManagerName() const override; |
30 override; | |
31 virtual const base::string16 GetSupervisedUserMessage() const override; | 30 virtual const base::string16 GetSupervisedUserMessage() const override; |
32 virtual bool IsUserSupervised() const override; | 31 virtual bool IsUserSupervised() const override; |
33 virtual bool SystemShouldUpgrade() const override; | 32 virtual void GetSystemUpdateInfo(UpdateInfo* info) const override; |
34 virtual base::HourClockType GetHourClockType() const override; | 33 virtual base::HourClockType GetHourClockType() const override; |
35 virtual void ShowSettings() override; | 34 virtual void ShowSettings() override; |
36 virtual bool ShouldShowSettings() override; | 35 virtual bool ShouldShowSettings() override; |
37 virtual void ShowDateSettings() override; | 36 virtual void ShowDateSettings() override; |
38 virtual void ShowSetTimeDialog() override; | 37 virtual void ShowSetTimeDialog() override; |
39 virtual void ShowNetworkSettings(const std::string& service_path) override; | 38 virtual void ShowNetworkSettings(const std::string& service_path) override; |
40 virtual void ShowBluetoothSettings() override; | 39 virtual void ShowBluetoothSettings() override; |
41 virtual void ShowDisplaySettings() override; | 40 virtual void ShowDisplaySettings() override; |
42 virtual void ShowChromeSlow() override; | 41 virtual void ShowChromeSlow() override; |
43 virtual bool ShouldShowDisplayNotification() override; | 42 virtual bool ShouldShowDisplayNotification() override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 private: | 92 private: |
94 bool bluetooth_enabled_; | 93 bool bluetooth_enabled_; |
95 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; | 94 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); | 96 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); |
98 }; | 97 }; |
99 | 98 |
100 } // namespace ash | 99 } // namespace ash |
101 | 100 |
102 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ | 101 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |