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

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

Issue 170843009: Revert 251959 "Refactor the TrayAudio code so that it can be use..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 months 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 | Annotate | Revision Log
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 "ash/ime/input_method_menu_manager.h" 8 #include "ash/ime/input_method_menu_manager.h"
9 #include "ash/session_state_observer.h" 9 #include "ash/session_state_observer.h"
10 #include "ash/system/tray/system_tray.h" 10 #include "ash/system/tray/system_tray.h"
11 #include "ash/system/tray/system_tray_delegate.h" 11 #include "ash/system/tray/system_tray_delegate.h"
12 #include "ash/system/tray/system_tray_notifier.h" 12 #include "ash/system/tray/system_tray_notifier.h"
13 #include "base/callback_list.h" 13 #include "base/callback_list.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/prefs/pref_change_registrar.h" 17 #include "base/prefs/pref_change_registrar.h"
18 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 18 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
19 #include "chrome/browser/chromeos/drive/job_list.h" 19 #include "chrome/browser/chromeos/drive/job_list.h"
20 #include "chrome/browser/chromeos/events/system_key_event_listener.h" 20 #include "chrome/browser/chromeos/events/system_key_event_listener.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" 22 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
23 #include "chromeos/audio/cras_audio_handler.h"
24 #include "chromeos/dbus/session_manager_client.h" 23 #include "chromeos/dbus/session_manager_client.h"
25 #include "chromeos/ime/input_method_manager.h" 24 #include "chromeos/ime/input_method_manager.h"
26 #include "chromeos/login/login_state.h" 25 #include "chromeos/login/login_state.h"
27 #include "components/policy/core/common/cloud/cloud_policy_store.h" 26 #include "components/policy/core/common/cloud/cloud_policy_store.h"
28 #include "content/public/browser/notification_observer.h" 27 #include "content/public/browser/notification_observer.h"
29 #include "content/public/browser/notification_registrar.h" 28 #include "content/public/browser/notification_registrar.h"
30 #include "device/bluetooth/bluetooth_adapter.h" 29 #include "device/bluetooth/bluetooth_adapter.h"
31 30
32 namespace chromeos { 31 namespace chromeos {
33 32
34 class SystemTrayDelegateChromeOS 33 class SystemTrayDelegateChromeOS
35 : public ash::ime::InputMethodMenuManager::Observer, 34 : public ash::ime::InputMethodMenuManager::Observer,
36 public ash::SystemTrayDelegate, 35 public ash::SystemTrayDelegate,
37 public SessionManagerClient::Observer, 36 public SessionManagerClient::Observer,
38 public drive::JobListObserver, 37 public drive::JobListObserver,
39 public content::NotificationObserver, 38 public content::NotificationObserver,
40 public input_method::InputMethodManager::Observer, 39 public input_method::InputMethodManager::Observer,
41 public chromeos::LoginState::Observer, 40 public chromeos::LoginState::Observer,
42 public chromeos::CrasAudioHandler::AudioObserver,
43 public device::BluetoothAdapter::Observer, 41 public device::BluetoothAdapter::Observer,
44 public SystemKeyEventListener::CapsLockObserver, 42 public SystemKeyEventListener::CapsLockObserver,
45 public policy::CloudPolicyStore::Observer, 43 public policy::CloudPolicyStore::Observer,
46 public ash::SessionStateObserver { 44 public ash::SessionStateObserver {
47 public: 45 public:
48 SystemTrayDelegateChromeOS(); 46 SystemTrayDelegateChromeOS();
49 47
50 virtual ~SystemTrayDelegateChromeOS(); 48 virtual ~SystemTrayDelegateChromeOS();
51 49
52 void InitializeOnAdapterReady( 50 void InitializeOnAdapterReady(
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void UpdatePerformanceTracing(); 179 void UpdatePerformanceTracing();
182 180
183 // Overridden from InputMethodManager::Observer. 181 // Overridden from InputMethodManager::Observer.
184 virtual void InputMethodChanged(input_method::InputMethodManager* manager, 182 virtual void InputMethodChanged(input_method::InputMethodManager* manager,
185 bool show_message) OVERRIDE; 183 bool show_message) OVERRIDE;
186 184
187 // Overridden from InputMethodMenuManager::Observer. 185 // Overridden from InputMethodMenuManager::Observer.
188 virtual void InputMethodMenuItemChanged( 186 virtual void InputMethodMenuItemChanged(
189 ash::ime::InputMethodMenuManager* manager) OVERRIDE; 187 ash::ime::InputMethodMenuManager* manager) OVERRIDE;
190 188
191 // Overridden from CrasAudioHandler::AudioObserver.
192 virtual void OnOutputVolumeChanged() OVERRIDE;
193 virtual void OnOutputMuteChanged() OVERRIDE;
194 virtual void OnInputGainChanged() OVERRIDE;
195 virtual void OnInputMuteChanged() OVERRIDE;
196 virtual void OnAudioNodesChanged() OVERRIDE;
197 virtual void OnActiveOutputNodeChanged() OVERRIDE;
198 virtual void OnActiveInputNodeChanged() OVERRIDE;
199
200 // drive::JobListObserver overrides. 189 // drive::JobListObserver overrides.
201 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE; 190 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE;
202 191
203 virtual void OnJobDone(const drive::JobInfo& job_info, 192 virtual void OnJobDone(const drive::JobInfo& job_info,
204 drive::FileError error) OVERRIDE; 193 drive::FileError error) OVERRIDE;
205 194
206 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; 195 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE;
207 196
208 drive::DriveIntegrationService* FindDriveIntegrationService(); 197 drive::DriveIntegrationService* FindDriveIntegrationService();
209 198
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_; 239 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_;
251 scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_; 240 scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_;
252 241
253 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); 242 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS);
254 }; 243 };
255 244
256 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); 245 ash::SystemTrayDelegate* CreateSystemTrayDelegate();
257 246
258 } // namespace chromeos 247 } // namespace chromeos
259 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 248 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « trunk/src/ash/system/tray/system_tray_notifier.cc ('k') | trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698