| 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 <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "ash/common/accessibility_types.h" | 13 #include "ash/common/accessibility_types.h" |
| 14 #include "ash/common/session/session_state_observer.h" | 14 #include "ash/common/session/session_state_observer.h" |
| 15 #include "ash/common/system/tray/system_tray_delegate.h" | 15 #include "ash/common/system/tray/system_tray_delegate.h" |
| 16 #include "ash/system/chromeos/supervised/custodian_info_tray_observer.h" | 16 #include "ash/system/chromeos/supervised/custodian_info_tray_observer.h" |
| 17 #include "ash/system/tray/system_tray.h" | 17 #include "ash/system/tray/system_tray.h" |
| 18 #include "ash/system/tray/system_tray_notifier.h" | |
| 19 #include "base/callback_forward.h" | 18 #include "base/callback_forward.h" |
| 20 #include "base/callback_list.h" | 19 #include "base/callback_list.h" |
| 21 #include "base/compiler_specific.h" | 20 #include "base/compiler_specific.h" |
| 22 #include "base/macros.h" | 21 #include "base/macros.h" |
| 23 #include "base/memory/ref_counted.h" | 22 #include "base/memory/ref_counted.h" |
| 24 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
| 25 #include "base/observer_list.h" | 24 #include "base/observer_list.h" |
| 26 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 25 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 27 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" | 26 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" |
| 28 #include "chrome/browser/chromeos/system/system_clock.h" | 27 #include "chrome/browser/chromeos/system/system_clock.h" |
| 29 #include "chrome/browser/chromeos/system/system_clock_observer.h" | 28 #include "chrome/browser/chromeos/system/system_clock_observer.h" |
| 30 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
| 31 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" | 30 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" |
| 32 #include "chrome/browser/ui/browser_list_observer.h" | 31 #include "chrome/browser/ui/browser_list_observer.h" |
| 33 #include "chromeos/audio/cras_audio_handler.h" | 32 #include "chromeos/audio/cras_audio_handler.h" |
| 34 #include "chromeos/dbus/session_manager_client.h" | 33 #include "chromeos/dbus/session_manager_client.h" |
| 35 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 34 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 36 #include "components/prefs/pref_change_registrar.h" | 35 #include "components/prefs/pref_change_registrar.h" |
| 37 #include "components/signin/core/account_id/account_id.h" | 36 #include "components/signin/core/account_id/account_id.h" |
| 38 #include "components/user_manager/user_manager.h" | 37 #include "components/user_manager/user_manager.h" |
| 39 #include "content/public/browser/notification_observer.h" | 38 #include "content/public/browser/notification_observer.h" |
| 40 #include "content/public/browser/notification_registrar.h" | 39 #include "content/public/browser/notification_registrar.h" |
| 41 #include "device/bluetooth/bluetooth_adapter.h" | 40 #include "device/bluetooth/bluetooth_adapter.h" |
| 42 #include "device/bluetooth/bluetooth_discovery_session.h" | 41 #include "device/bluetooth/bluetooth_discovery_session.h" |
| 43 #include "extensions/browser/app_window/app_window_registry.h" | 42 #include "extensions/browser/app_window/app_window_registry.h" |
| 44 #include "ui/base/ime/chromeos/input_method_manager.h" | 43 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 45 #include "ui/chromeos/ime/input_method_menu_manager.h" | 44 #include "ui/chromeos/ime/input_method_menu_manager.h" |
| 46 | 45 |
| 47 namespace ash { | 46 namespace ash { |
| 48 class WmSystemTrayNotifier; | 47 class SystemTrayNotifier; |
| 49 class VPNDelegate; | 48 class VPNDelegate; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace user_manager { | 51 namespace user_manager { |
| 53 class User; | 52 class User; |
| 54 } | 53 } |
| 55 | 54 |
| 56 namespace chromeos { | 55 namespace chromeos { |
| 57 | 56 |
| 58 class SystemTrayDelegateChromeOS | 57 class SystemTrayDelegateChromeOS |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 bool GetShouldUse24HourClockForTesting() const; | 164 bool GetShouldUse24HourClockForTesting() const; |
| 166 | 165 |
| 167 // chromeos::system::SystemClockObserver implementation. | 166 // chromeos::system::SystemClockObserver implementation. |
| 168 void OnSystemClockChanged(system::SystemClock*) override; | 167 void OnSystemClockChanged(system::SystemClock*) override; |
| 169 | 168 |
| 170 private: | 169 private: |
| 171 ash::SystemTray* GetPrimarySystemTray(); | 170 ash::SystemTray* GetPrimarySystemTray(); |
| 172 | 171 |
| 173 ash::SystemTrayNotifier* GetSystemTrayNotifier(); | 172 ash::SystemTrayNotifier* GetSystemTrayNotifier(); |
| 174 | 173 |
| 175 ash::WmSystemTrayNotifier* GetWmSystemTrayNotifier(); | |
| 176 | |
| 177 void SetProfile(Profile* profile); | 174 void SetProfile(Profile* profile); |
| 178 | 175 |
| 179 bool UnsetProfile(Profile* profile); | 176 bool UnsetProfile(Profile* profile); |
| 180 | 177 |
| 181 bool ShouldUse24HourClock() const; | 178 bool ShouldUse24HourClock() const; |
| 182 | 179 |
| 183 void UpdateShowLogoutButtonInTray(); | 180 void UpdateShowLogoutButtonInTray(); |
| 184 | 181 |
| 185 void UpdateLogoutDialogDuration(); | 182 void UpdateLogoutDialogDuration(); |
| 186 | 183 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 315 |
| 319 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; | 316 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; |
| 320 | 317 |
| 321 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); | 318 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); |
| 322 }; | 319 }; |
| 323 | 320 |
| 324 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); | 321 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); |
| 325 | 322 |
| 326 } // namespace chromeos | 323 } // namespace chromeos |
| 327 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 324 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |