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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 24 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
25 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" | 25 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" |
26 #include "chrome/browser/chromeos/system/system_clock.h" | 26 #include "chrome/browser/chromeos/system/system_clock.h" |
27 #include "chrome/browser/chromeos/system/system_clock_observer.h" | 27 #include "chrome/browser/chromeos/system/system_clock_observer.h" |
28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" | 29 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" |
30 #include "chrome/browser/ui/browser_list_observer.h" | 30 #include "chrome/browser/ui/browser_list_observer.h" |
31 #include "chromeos/audio/cras_audio_handler.h" | 31 #include "chromeos/audio/cras_audio_handler.h" |
32 #include "chromeos/dbus/session_manager_client.h" | 32 #include "chromeos/dbus/session_manager_client.h" |
33 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 33 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 34 #include "components/signin/core/account_id/account_id.h" |
34 #include "components/user_manager/user_manager.h" | 35 #include "components/user_manager/user_manager.h" |
35 #include "content/public/browser/notification_observer.h" | 36 #include "content/public/browser/notification_observer.h" |
36 #include "content/public/browser/notification_registrar.h" | 37 #include "content/public/browser/notification_registrar.h" |
37 #include "device/bluetooth/bluetooth_adapter.h" | 38 #include "device/bluetooth/bluetooth_adapter.h" |
38 #include "device/bluetooth/bluetooth_discovery_session.h" | 39 #include "device/bluetooth/bluetooth_discovery_session.h" |
39 #include "extensions/browser/app_window/app_window_registry.h" | 40 #include "extensions/browser/app_window/app_window_registry.h" |
40 #include "ui/base/ime/chromeos/input_method_manager.h" | 41 #include "ui/base/ime/chromeos/input_method_manager.h" |
41 #include "ui/chromeos/ime/input_method_menu_manager.h" | 42 #include "ui/chromeos/ime/input_method_menu_manager.h" |
42 | 43 |
43 namespace ash { | 44 namespace ash { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ash::NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override; | 130 ash::NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override; |
130 ash::VolumeControlDelegate* GetVolumeControlDelegate() const override; | 131 ash::VolumeControlDelegate* GetVolumeControlDelegate() const override; |
131 void SetVolumeControlDelegate( | 132 void SetVolumeControlDelegate( |
132 scoped_ptr<ash::VolumeControlDelegate> delegate) override; | 133 scoped_ptr<ash::VolumeControlDelegate> delegate) override; |
133 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; | 134 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; |
134 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; | 135 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; |
135 int GetSystemTrayMenuWidth() override; | 136 int GetSystemTrayMenuWidth() override; |
136 void ActiveUserWasChanged() override; | 137 void ActiveUserWasChanged() override; |
137 bool IsSearchKeyMappedToCapsLock() override; | 138 bool IsSearchKeyMappedToCapsLock() override; |
138 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate( | 139 ash::tray::UserAccountsDelegate* GetUserAccountsDelegate( |
139 const std::string& user_id) override; | 140 const AccountId& account_id) override; |
140 void AddCustodianInfoTrayObserver( | 141 void AddCustodianInfoTrayObserver( |
141 ash::CustodianInfoTrayObserver* observer) override; | 142 ash::CustodianInfoTrayObserver* observer) override; |
142 void RemoveCustodianInfoTrayObserver( | 143 void RemoveCustodianInfoTrayObserver( |
143 ash::CustodianInfoTrayObserver* observer) override; | 144 ash::CustodianInfoTrayObserver* observer) override; |
144 void AddShutdownPolicyObserver( | 145 void AddShutdownPolicyObserver( |
145 ash::ShutdownPolicyObserver* observer) override; | 146 ash::ShutdownPolicyObserver* observer) override; |
146 void RemoveShutdownPolicyObserver( | 147 void RemoveShutdownPolicyObserver( |
147 ash::ShutdownPolicyObserver* observer) override; | 148 ash::ShutdownPolicyObserver* observer) override; |
148 void ShouldRebootOnShutdown( | 149 void ShouldRebootOnShutdown( |
149 const ash::RebootOnShutdownCallback& callback) override; | 150 const ash::RebootOnShutdownCallback& callback) override; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 void OnStartBluetoothDiscoverySession( | 243 void OnStartBluetoothDiscoverySession( |
243 scoped_ptr<device::BluetoothDiscoverySession> discovery_session); | 244 scoped_ptr<device::BluetoothDiscoverySession> discovery_session); |
244 | 245 |
245 void UpdateEnterpriseDomain(); | 246 void UpdateEnterpriseDomain(); |
246 | 247 |
247 // Overridden from CloudPolicyStore::Observer | 248 // Overridden from CloudPolicyStore::Observer |
248 void OnStoreLoaded(policy::CloudPolicyStore* store) override; | 249 void OnStoreLoaded(policy::CloudPolicyStore* store) override; |
249 void OnStoreError(policy::CloudPolicyStore* store) override; | 250 void OnStoreError(policy::CloudPolicyStore* store) override; |
250 | 251 |
251 // Overridden from ash::SessionStateObserver | 252 // Overridden from ash::SessionStateObserver |
252 void UserAddedToSession(const std::string& user_id) override; | 253 void UserAddedToSession(const AccountId& account_id) override; |
253 void ActiveUserChanged(const std::string& user_id) override; | 254 void ActiveUserChanged(const AccountId& account_id) override; |
254 | 255 |
255 // Overridden from chrome::BrowserListObserver: | 256 // Overridden from chrome::BrowserListObserver: |
256 void OnBrowserRemoved(Browser* browser) override; | 257 void OnBrowserRemoved(Browser* browser) override; |
257 | 258 |
258 // Overridden from extensions::AppWindowRegistry::Observer: | 259 // Overridden from extensions::AppWindowRegistry::Observer: |
259 void OnAppWindowRemoved(extensions::AppWindow* app_window) override; | 260 void OnAppWindowRemoved(extensions::AppWindow* app_window) override; |
260 | 261 |
261 // Overridden from SupervisedUserServiceObserver: | 262 // Overridden from SupervisedUserServiceObserver: |
262 void OnCustodianInfoChanged() override; | 263 void OnCustodianInfoChanged() override; |
263 | 264 |
(...skipping 21 matching lines...) Expand all Loading... |
285 std::string enterprise_domain_; | 286 std::string enterprise_domain_; |
286 bool should_run_bluetooth_discovery_; | 287 bool should_run_bluetooth_discovery_; |
287 bool session_started_; | 288 bool session_started_; |
288 | 289 |
289 scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_; | 290 scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_; |
290 scoped_ptr<device::BluetoothDiscoverySession> bluetooth_discovery_session_; | 291 scoped_ptr<device::BluetoothDiscoverySession> bluetooth_discovery_session_; |
291 scoped_ptr<ash::CastConfigDelegate> cast_config_delegate_; | 292 scoped_ptr<ash::CastConfigDelegate> cast_config_delegate_; |
292 scoped_ptr<ash::NetworkingConfigDelegate> networking_config_delegate_; | 293 scoped_ptr<ash::NetworkingConfigDelegate> networking_config_delegate_; |
293 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_; | 294 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_; |
294 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; | 295 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; |
295 base::ScopedPtrHashMap<std::string, | 296 base::ScopedPtrMap<AccountId, scoped_ptr<ash::tray::UserAccountsDelegate>> |
296 scoped_ptr<ash::tray::UserAccountsDelegate>> | |
297 accounts_delegates_; | 297 accounts_delegates_; |
298 scoped_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; | 298 scoped_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; |
299 scoped_ptr<ash::VPNDelegate> vpn_delegate_; | 299 scoped_ptr<ash::VPNDelegate> vpn_delegate_; |
300 | 300 |
301 base::ObserverList<ash::CustodianInfoTrayObserver> | 301 base::ObserverList<ash::CustodianInfoTrayObserver> |
302 custodian_info_changed_observers_; | 302 custodian_info_changed_observers_; |
303 | 303 |
304 base::ObserverList<ash::ShutdownPolicyObserver> shutdown_policy_observers_; | 304 base::ObserverList<ash::ShutdownPolicyObserver> shutdown_policy_observers_; |
305 | 305 |
306 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; | 306 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; |
307 | 307 |
308 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); | 308 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); |
309 }; | 309 }; |
310 | 310 |
311 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); | 311 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); |
312 | 312 |
313 } // namespace chromeos | 313 } // namespace chromeos |
314 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 314 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
OLD | NEW |