| 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 CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 int GetSystemTrayMenuWidth() override; | 88 int GetSystemTrayMenuWidth() override; |
| 89 void ActiveUserWasChanged() override; | 89 void ActiveUserWasChanged() override; |
| 90 bool IsSearchKeyMappedToCapsLock() override; | 90 bool IsSearchKeyMappedToCapsLock() override; |
| 91 void AddCustodianInfoTrayObserver( | 91 void AddCustodianInfoTrayObserver( |
| 92 ash::CustodianInfoTrayObserver* observer) override; | 92 ash::CustodianInfoTrayObserver* observer) override; |
| 93 void RemoveCustodianInfoTrayObserver( | 93 void RemoveCustodianInfoTrayObserver( |
| 94 ash::CustodianInfoTrayObserver* observer) override; | 94 ash::CustodianInfoTrayObserver* observer) override; |
| 95 std::unique_ptr<ash::SystemTrayItem> CreateRotationLockTrayItem( | 95 std::unique_ptr<ash::SystemTrayItem> CreateRotationLockTrayItem( |
| 96 ash::SystemTray* tray) override; | 96 ash::SystemTray* tray) override; |
| 97 | 97 |
| 98 // Overridden from user_manager::UserManager::Observer: | |
| 99 void OnUserImageChanged(const user_manager::User& user) override; | |
| 100 | |
| 101 // Overridden from user_manager::UserManager::UserSessionStateObserver: | 98 // Overridden from user_manager::UserManager::UserSessionStateObserver: |
| 102 void UserAddedToSession(const user_manager::User* active_user) override; | |
| 103 void ActiveUserChanged(const user_manager::User* active_user) override; | |
| 104 | |
| 105 void UserChangedChildStatus(user_manager::User* user) override; | 99 void UserChangedChildStatus(user_manager::User* user) override; |
| 106 | 100 |
| 107 private: | 101 private: |
| 108 ash::SystemTrayNotifier* GetSystemTrayNotifier(); | 102 ash::SystemTrayNotifier* GetSystemTrayNotifier(); |
| 109 | 103 |
| 110 void SetProfile(Profile* profile); | 104 void SetProfile(Profile* profile); |
| 111 | 105 |
| 112 bool UnsetProfile(Profile* profile); | 106 bool UnsetProfile(Profile* profile); |
| 113 | 107 |
| 114 void UpdateShowLogoutButtonInTray(); | 108 void UpdateShowLogoutButtonInTray(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 custodian_info_changed_observers_; | 196 custodian_info_changed_observers_; |
| 203 | 197 |
| 204 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); | 198 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); |
| 205 }; | 199 }; |
| 206 | 200 |
| 207 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); | 201 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); |
| 208 | 202 |
| 209 } // namespace chromeos | 203 } // namespace chromeos |
| 210 | 204 |
| 211 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 205 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |