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

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

Issue 2489723005: chromeos: Make system tray audio item observe CrasAudioHandler directly (Closed)
Patch Set: rebase Created 4 years, 1 month 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 <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/chromeos/supervised/custodian_info_tray_observer.h" 15 #include "ash/common/system/chromeos/supervised/custodian_info_tray_observer.h"
16 #include "ash/common/system/tray/ime_info.h" 16 #include "ash/common/system/tray/ime_info.h"
17 #include "ash/common/system/tray/system_tray_delegate.h" 17 #include "ash/common/system/tray/system_tray_delegate.h"
18 #include "base/callback_forward.h" 18 #include "base/callback_forward.h"
19 #include "base/callback_list.h" 19 #include "base/callback_list.h"
20 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
21 #include "base/macros.h" 21 #include "base/macros.h"
22 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
23 #include "base/memory/weak_ptr.h" 23 #include "base/memory/weak_ptr.h"
24 #include "base/observer_list.h" 24 #include "base/observer_list.h"
25 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 25 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
26 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" 26 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h"
27 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" 28 #include "chrome/browser/supervised_user/supervised_user_service_observer.h"
29 #include "chrome/browser/ui/browser_list_observer.h" 29 #include "chrome/browser/ui/browser_list_observer.h"
30 #include "chromeos/audio/cras_audio_handler.h"
31 #include "chromeos/dbus/session_manager_client.h" 30 #include "chromeos/dbus/session_manager_client.h"
32 #include "components/policy/core/common/cloud/cloud_policy_store.h" 31 #include "components/policy/core/common/cloud/cloud_policy_store.h"
33 #include "components/prefs/pref_change_registrar.h" 32 #include "components/prefs/pref_change_registrar.h"
34 #include "components/signin/core/account_id/account_id.h" 33 #include "components/signin/core/account_id/account_id.h"
35 #include "components/user_manager/user_manager.h" 34 #include "components/user_manager/user_manager.h"
36 #include "content/public/browser/notification_observer.h" 35 #include "content/public/browser/notification_observer.h"
37 #include "content/public/browser/notification_registrar.h" 36 #include "content/public/browser/notification_registrar.h"
38 #include "device/bluetooth/bluetooth_adapter.h" 37 #include "device/bluetooth/bluetooth_adapter.h"
39 #include "device/bluetooth/bluetooth_discovery_session.h" 38 #include "device/bluetooth/bluetooth_discovery_session.h"
40 #include "extensions/browser/app_window/app_window_registry.h" 39 #include "extensions/browser/app_window/app_window_registry.h"
(...skipping 11 matching lines...) Expand all
52 } 51 }
53 52
54 namespace chromeos { 53 namespace chromeos {
55 54
56 class SystemTrayDelegateChromeOS 55 class SystemTrayDelegateChromeOS
57 : public ui::ime::InputMethodMenuManager::Observer, 56 : public ui::ime::InputMethodMenuManager::Observer,
58 public ash::SystemTrayDelegate, 57 public ash::SystemTrayDelegate,
59 public SessionManagerClient::Observer, 58 public SessionManagerClient::Observer,
60 public content::NotificationObserver, 59 public content::NotificationObserver,
61 public input_method::InputMethodManager::Observer, 60 public input_method::InputMethodManager::Observer,
62 public chromeos::CrasAudioHandler::AudioObserver,
63 public device::BluetoothAdapter::Observer, 61 public device::BluetoothAdapter::Observer,
64 public policy::CloudPolicyStore::Observer, 62 public policy::CloudPolicyStore::Observer,
65 public ash::SessionStateObserver, 63 public ash::SessionStateObserver,
66 public chrome::BrowserListObserver, 64 public chrome::BrowserListObserver,
67 public extensions::AppWindowRegistry::Observer, 65 public extensions::AppWindowRegistry::Observer,
68 public user_manager::UserManager::UserSessionStateObserver, 66 public user_manager::UserManager::UserSessionStateObserver,
69 public SupervisedUserServiceObserver, 67 public SupervisedUserServiceObserver,
70 public ShutdownPolicyHandler::Delegate, 68 public ShutdownPolicyHandler::Delegate,
71 public input_method::InputMethodManager::ImeMenuObserver { 69 public input_method::InputMethodManager::ImeMenuObserver {
72 public: 70 public:
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 175
178 // Overridden from InputMethodManager::Observer. 176 // Overridden from InputMethodManager::Observer.
179 void InputMethodChanged(input_method::InputMethodManager* manager, 177 void InputMethodChanged(input_method::InputMethodManager* manager,
180 Profile* profile, 178 Profile* profile,
181 bool show_message) override; 179 bool show_message) override;
182 180
183 // Overridden from InputMethodMenuManager::Observer. 181 // Overridden from InputMethodMenuManager::Observer.
184 void InputMethodMenuItemChanged( 182 void InputMethodMenuItemChanged(
185 ui::ime::InputMethodMenuManager* manager) override; 183 ui::ime::InputMethodMenuManager* manager) override;
186 184
187 // Overridden from CrasAudioHandler::AudioObserver.
188 void OnOutputNodeVolumeChanged(uint64_t node_id, int volume) override;
189 void OnOutputMuteChanged(bool mute_on, bool system_adjust) override;
190 void OnInputNodeGainChanged(uint64_t node_id, int gain) override;
191 void OnInputMuteChanged(bool mute_on) override;
192 void OnAudioNodesChanged() override;
193 void OnActiveOutputNodeChanged() override;
194 void OnActiveInputNodeChanged() override;
195
196 // Overridden from BluetoothAdapter::Observer. 185 // Overridden from BluetoothAdapter::Observer.
197 void AdapterPresentChanged(device::BluetoothAdapter* adapter, 186 void AdapterPresentChanged(device::BluetoothAdapter* adapter,
198 bool present) override; 187 bool present) override;
199 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, 188 void AdapterPoweredChanged(device::BluetoothAdapter* adapter,
200 bool powered) override; 189 bool powered) override;
201 void AdapterDiscoveringChanged(device::BluetoothAdapter* adapter, 190 void AdapterDiscoveringChanged(device::BluetoothAdapter* adapter,
202 bool discovering) override; 191 bool discovering) override;
203 void DeviceAdded(device::BluetoothAdapter* adapter, 192 void DeviceAdded(device::BluetoothAdapter* adapter,
204 device::BluetoothDevice* device) override; 193 device::BluetoothDevice* device) override;
205 void DeviceChanged(device::BluetoothAdapter* adapter, 194 void DeviceChanged(device::BluetoothAdapter* adapter,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 266
278 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; 267 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_;
279 268
280 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); 269 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS);
281 }; 270 };
282 271
283 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); 272 ash::SystemTrayDelegate* CreateSystemTrayDelegate();
284 273
285 } // namespace chromeos 274 } // namespace chromeos
286 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 275 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/common/wm_root_window_controller.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698