| 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 "ash/session_state_observer.h" | 8 #include "ash/session_state_observer.h" |
| 9 #include "ash/system/tray/system_tray.h" | 9 #include "ash/system/tray/system_tray.h" |
| 10 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
| 11 #include "ash/system/tray/system_tray_notifier.h" | 11 #include "ash/system/tray/system_tray_notifier.h" |
| 12 #include "base/callback_list.h" | 12 #include "base/callback_list.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/prefs/pref_change_registrar.h" | 16 #include "base/prefs/pref_change_registrar.h" |
| 17 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 17 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| 18 #include "chrome/browser/chromeos/drive/job_list.h" | 18 #include "chrome/browser/chromeos/drive/job_list.h" |
| 19 #include "chrome/browser/chromeos/system_key_event_listener.h" | 19 #include "chrome/browser/chromeos/system_key_event_listener.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" | 21 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
| 22 #include "chromeos/audio/cras_audio_handler.h" |
| 22 #include "chromeos/dbus/session_manager_client.h" | 23 #include "chromeos/dbus/session_manager_client.h" |
| 23 #include "chromeos/ime/input_method_manager.h" | 24 #include "chromeos/ime/input_method_manager.h" |
| 24 #include "chromeos/login/login_state.h" | 25 #include "chromeos/login/login_state.h" |
| 25 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 26 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 26 #include "content/public/browser/notification_observer.h" | 27 #include "content/public/browser/notification_observer.h" |
| 27 #include "content/public/browser/notification_registrar.h" | 28 #include "content/public/browser/notification_registrar.h" |
| 28 #include "device/bluetooth/bluetooth_adapter.h" | 29 #include "device/bluetooth/bluetooth_adapter.h" |
| 29 | 30 |
| 30 namespace chromeos { | 31 namespace chromeos { |
| 31 | 32 |
| 32 class SystemTrayDelegateChromeOS | 33 class SystemTrayDelegateChromeOS |
| 33 : public ash::SystemTrayDelegate, | 34 : public ash::SystemTrayDelegate, |
| 34 public SessionManagerClient::Observer, | 35 public SessionManagerClient::Observer, |
| 35 public drive::JobListObserver, | 36 public drive::JobListObserver, |
| 36 public content::NotificationObserver, | 37 public content::NotificationObserver, |
| 37 public input_method::InputMethodManager::Observer, | 38 public input_method::InputMethodManager::Observer, |
| 38 public chromeos::LoginState::Observer, | 39 public chromeos::LoginState::Observer, |
| 40 public chromeos::CrasAudioHandler::AudioObserver, |
| 39 public device::BluetoothAdapter::Observer, | 41 public device::BluetoothAdapter::Observer, |
| 40 public SystemKeyEventListener::CapsLockObserver, | 42 public SystemKeyEventListener::CapsLockObserver, |
| 41 public policy::CloudPolicyStore::Observer, | 43 public policy::CloudPolicyStore::Observer, |
| 42 public ash::SessionStateObserver { | 44 public ash::SessionStateObserver { |
| 43 public: | 45 public: |
| 44 SystemTrayDelegateChromeOS(); | 46 SystemTrayDelegateChromeOS(); |
| 45 | 47 |
| 46 virtual ~SystemTrayDelegateChromeOS(); | 48 virtual ~SystemTrayDelegateChromeOS(); |
| 47 | 49 |
| 48 void InitializeOnAdapterReady( | 50 void InitializeOnAdapterReady( |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 177 |
| 176 void UpdatePerformanceTracing(); | 178 void UpdatePerformanceTracing(); |
| 177 | 179 |
| 178 // Overridden from InputMethodManager::Observer. | 180 // Overridden from InputMethodManager::Observer. |
| 179 virtual void InputMethodChanged(input_method::InputMethodManager* manager, | 181 virtual void InputMethodChanged(input_method::InputMethodManager* manager, |
| 180 bool show_message) OVERRIDE; | 182 bool show_message) OVERRIDE; |
| 181 | 183 |
| 182 virtual void InputMethodPropertyChanged( | 184 virtual void InputMethodPropertyChanged( |
| 183 input_method::InputMethodManager* manager) OVERRIDE; | 185 input_method::InputMethodManager* manager) OVERRIDE; |
| 184 | 186 |
| 187 // Overrideen from CrasAudioHandler::AudioObserver. |
| 188 virtual void OnOutputVolumeChanged() OVERRIDE; |
| 189 virtual void OnOutputMuteChanged() OVERRIDE; |
| 190 virtual void OnInputGainChanged() OVERRIDE; |
| 191 virtual void OnInputMuteChanged() OVERRIDE; |
| 192 virtual void OnAudioNodesChanged() OVERRIDE; |
| 193 virtual void OnActiveOutputNodeChanged() OVERRIDE; |
| 194 virtual void OnActiveInputNodeChanged() OVERRIDE; |
| 195 |
| 185 // drive::JobListObserver overrides. | 196 // drive::JobListObserver overrides. |
| 186 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE; | 197 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE; |
| 187 | 198 |
| 188 virtual void OnJobDone(const drive::JobInfo& job_info, | 199 virtual void OnJobDone(const drive::JobInfo& job_info, |
| 189 drive::FileError error) OVERRIDE; | 200 drive::FileError error) OVERRIDE; |
| 190 | 201 |
| 191 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; | 202 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; |
| 192 | 203 |
| 193 drive::DriveIntegrationService* FindDriveIntegrationService(); | 204 drive::DriveIntegrationService* FindDriveIntegrationService(); |
| 194 | 205 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_; | 246 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_; |
| 236 scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_; | 247 scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_; |
| 237 | 248 |
| 238 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); | 249 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); |
| 239 }; | 250 }; |
| 240 | 251 |
| 241 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); | 252 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); |
| 242 | 253 |
| 243 } // namespace chromeos | 254 } // namespace chromeos |
| 244 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 255 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |