OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ |
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ | 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; | 86 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; |
87 int GetSystemTrayMenuWidth() override; | 87 int GetSystemTrayMenuWidth() override; |
88 void ActiveUserWasChanged() override; | 88 void ActiveUserWasChanged() override; |
89 bool IsSearchKeyMappedToCapsLock() override; | 89 bool IsSearchKeyMappedToCapsLock() override; |
90 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate( | 90 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate( |
91 const std::string& user_id) override; | 91 const std::string& user_id) override; |
92 void AddCustodianInfoTrayObserver( | 92 void AddCustodianInfoTrayObserver( |
93 ash::CustodianInfoTrayObserver* observer) override; | 93 ash::CustodianInfoTrayObserver* observer) override; |
94 void RemoveCustodianInfoTrayObserver( | 94 void RemoveCustodianInfoTrayObserver( |
95 ash::CustodianInfoTrayObserver* observer) override; | 95 ash::CustodianInfoTrayObserver* observer) override; |
| 96 void AddShutdownPolicyObserver( |
| 97 ash::ShutdownPolicyObserver* observer) override; |
| 98 void ShouldRebootOnShutdown( |
| 99 const ash::RebootOnShutdownCallback& callback) override; |
| 100 void RemoveShutdownPolicyObserver( |
| 101 ash::ShutdownPolicyObserver* observer) override; |
96 | 102 |
97 private: | 103 private: |
98 ash::SystemTrayNotifier* GetSystemTrayNotifier(); | 104 ash::SystemTrayNotifier* GetSystemTrayNotifier(); |
99 | 105 |
100 void UpdateClockType(); | 106 void UpdateClockType(); |
101 | 107 |
102 // content::NotificationObserver implementation. | 108 // content::NotificationObserver implementation. |
103 void Observe(int type, | 109 void Observe(int type, |
104 const content::NotificationSource& source, | 110 const content::NotificationSource& source, |
105 const content::NotificationDetails& details) override; | 111 const content::NotificationDetails& details) override; |
106 | 112 |
107 scoped_ptr<content::NotificationRegistrar> registrar_; | 113 scoped_ptr<content::NotificationRegistrar> registrar_; |
108 base::HourClockType clock_type_; | 114 base::HourClockType clock_type_; |
109 | 115 |
110 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateCommon); | 116 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateCommon); |
111 }; | 117 }; |
112 | 118 |
113 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ | 119 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_COMMON_H_ |
OLD | NEW |