Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.h

Issue 2568973002: chromeos: Replace user image notifications with observer (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 : public ui::ime::InputMethodMenuManager::Observer, 55 : public ui::ime::InputMethodMenuManager::Observer,
56 public ash::SystemTrayDelegate, 56 public ash::SystemTrayDelegate,
57 public SessionManagerClient::Observer, 57 public SessionManagerClient::Observer,
58 public content::NotificationObserver, 58 public content::NotificationObserver,
59 public input_method::InputMethodManager::Observer, 59 public input_method::InputMethodManager::Observer,
60 public device::BluetoothAdapter::Observer, 60 public device::BluetoothAdapter::Observer,
61 public policy::CloudPolicyStore::Observer, 61 public policy::CloudPolicyStore::Observer,
62 public ash::SessionStateObserver, 62 public ash::SessionStateObserver,
63 public chrome::BrowserListObserver, 63 public chrome::BrowserListObserver,
64 public extensions::AppWindowRegistry::Observer, 64 public extensions::AppWindowRegistry::Observer,
65 public user_manager::UserManager::Observer,
65 public user_manager::UserManager::UserSessionStateObserver, 66 public user_manager::UserManager::UserSessionStateObserver,
66 public SupervisedUserServiceObserver, 67 public SupervisedUserServiceObserver,
67 public input_method::InputMethodManager::ImeMenuObserver { 68 public input_method::InputMethodManager::ImeMenuObserver {
68 public: 69 public:
69 SystemTrayDelegateChromeOS(); 70 SystemTrayDelegateChromeOS();
70 71
71 ~SystemTrayDelegateChromeOS() override; 72 ~SystemTrayDelegateChromeOS() override;
72 73
73 void InitializeOnAdapterReady( 74 void InitializeOnAdapterReady(
74 scoped_refptr<device::BluetoothAdapter> adapter); 75 scoped_refptr<device::BluetoothAdapter> adapter);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int GetSystemTrayMenuWidth() override; 110 int GetSystemTrayMenuWidth() override;
110 void ActiveUserWasChanged() override; 111 void ActiveUserWasChanged() override;
111 bool IsSearchKeyMappedToCapsLock() override; 112 bool IsSearchKeyMappedToCapsLock() override;
112 void AddCustodianInfoTrayObserver( 113 void AddCustodianInfoTrayObserver(
113 ash::CustodianInfoTrayObserver* observer) override; 114 ash::CustodianInfoTrayObserver* observer) override;
114 void RemoveCustodianInfoTrayObserver( 115 void RemoveCustodianInfoTrayObserver(
115 ash::CustodianInfoTrayObserver* observer) override; 116 ash::CustodianInfoTrayObserver* observer) override;
116 std::unique_ptr<ash::SystemTrayItem> CreateRotationLockTrayItem( 117 std::unique_ptr<ash::SystemTrayItem> CreateRotationLockTrayItem(
117 ash::SystemTray* tray) override; 118 ash::SystemTray* tray) override;
118 119
120 // Overridden from user_manager::UserManager::Observer:
121 void OnUserImageChanged(const user_manager::User& user) override;
122
119 // Overridden from user_manager::UserManager::UserSessionStateObserver: 123 // Overridden from user_manager::UserManager::UserSessionStateObserver:
120 void UserAddedToSession(const user_manager::User* active_user) override; 124 void UserAddedToSession(const user_manager::User* active_user) override;
121 void ActiveUserChanged(const user_manager::User* active_user) override; 125 void ActiveUserChanged(const user_manager::User* active_user) override;
122 126
123 void UserChangedChildStatus(user_manager::User* user) override; 127 void UserChangedChildStatus(user_manager::User* user) override;
124 128
125 private: 129 private:
126 ash::SystemTrayNotifier* GetSystemTrayNotifier(); 130 ash::SystemTrayNotifier* GetSystemTrayNotifier();
127 131
128 void SetProfile(Profile* profile); 132 void SetProfile(Profile* profile);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; 251 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_;
248 252
249 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); 253 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS);
250 }; 254 };
251 255
252 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); 256 ash::SystemTrayDelegate* CreateSystemTrayDelegate();
253 257
254 } // namespace chromeos 258 } // namespace chromeos
255 259
256 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 260 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698