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

Side by Side Diff: ash/system/tray/system_tray_notifier.h

Issue 2084533008: mash: Migrate tray audio and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 6 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_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/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "ash/system/audio/audio_observer.h"
15 #include "ash/system/chromeos/tray_tracing.h" 14 #include "ash/system/chromeos/tray_tracing.h"
16 #include "ash/system/user/user_observer.h" 15 #include "ash/system/user/user_observer.h"
17 #include "base/macros.h" 16 #include "base/macros.h"
18 #include "base/observer_list.h" 17 #include "base/observer_list.h"
19 18
20 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS)
21 #include "ash/system/chromeos/bluetooth/bluetooth_observer.h" 20 #include "ash/system/chromeos/bluetooth/bluetooth_observer.h"
22 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h" 21 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
23 #include "ash/system/chromeos/network/network_observer.h" 22 #include "ash/system/chromeos/network/network_observer.h"
24 #include "ash/system/chromeos/network/network_portal_detector_observer.h" 23 #include "ash/system/chromeos/network/network_portal_detector_observer.h"
(...skipping 10 matching lines...) Expand all
35 34
36 #if defined(OS_CHROMEOS) 35 #if defined(OS_CHROMEOS)
37 class NetworkStateNotifier; 36 class NetworkStateNotifier;
38 #endif 37 #endif
39 38
40 class ASH_EXPORT SystemTrayNotifier { 39 class ASH_EXPORT SystemTrayNotifier {
41 public: 40 public:
42 SystemTrayNotifier(); 41 SystemTrayNotifier();
43 ~SystemTrayNotifier(); 42 ~SystemTrayNotifier();
44 43
45 void AddAudioObserver(AudioObserver* observer);
46 void RemoveAudioObserver(AudioObserver* observer);
47
48 void AddTracingObserver(TracingObserver* observer); 44 void AddTracingObserver(TracingObserver* observer);
49 void RemoveTracingObserver(TracingObserver* observer); 45 void RemoveTracingObserver(TracingObserver* observer);
50 46
51 void AddUserObserver(UserObserver* observer); 47 void AddUserObserver(UserObserver* observer);
52 void RemoveUserObserver(UserObserver* observer); 48 void RemoveUserObserver(UserObserver* observer);
53 49
54 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
55 void AddBluetoothObserver(BluetoothObserver* observer); 51 void AddBluetoothObserver(BluetoothObserver* observer);
56 void RemoveBluetoothObserver(BluetoothObserver* observer); 52 void RemoveBluetoothObserver(BluetoothObserver* observer);
57 53
(...skipping 20 matching lines...) Expand all
78 void AddScreenCaptureObserver(ScreenCaptureObserver* observer); 74 void AddScreenCaptureObserver(ScreenCaptureObserver* observer);
79 void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer); 75 void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer);
80 76
81 void AddScreenShareObserver(ScreenShareObserver* observer); 77 void AddScreenShareObserver(ScreenShareObserver* observer);
82 void RemoveScreenShareObserver(ScreenShareObserver* observer); 78 void RemoveScreenShareObserver(ScreenShareObserver* observer);
83 79
84 void AddLastWindowClosedObserver(LastWindowClosedObserver* observer); 80 void AddLastWindowClosedObserver(LastWindowClosedObserver* observer);
85 void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer); 81 void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer);
86 #endif 82 #endif
87 83
88 void NotifyAudioOutputVolumeChanged(uint64_t node_id, double volume);
89 void NotifyAudioOutputMuteChanged(bool mute_on, bool system_adjust);
90 void NotifyAudioNodesChanged();
91 void NotifyAudioActiveOutputNodeChanged();
92 void NotifyAudioActiveInputNodeChanged();
93 void NotifyTracingModeChanged(bool value); 84 void NotifyTracingModeChanged(bool value);
94 void NotifyUserUpdate(); 85 void NotifyUserUpdate();
95 void NotifyUserAddedToSession(); 86 void NotifyUserAddedToSession();
96 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
97 void NotifyRefreshBluetooth(); 88 void NotifyRefreshBluetooth();
98 void NotifyBluetoothDiscoveringChanged(); 89 void NotifyBluetoothDiscoveringChanged();
99 void NotifyShowLoginButtonChanged(bool show_login_button); 90 void NotifyShowLoginButtonChanged(bool show_login_button);
100 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration); 91 void NotifyLogoutDialogDurationChanged(base::TimeDelta duration);
101 void NotifySessionStartTimeChanged(); 92 void NotifySessionStartTimeChanged();
102 void NotifySessionLengthLimitChanged(); 93 void NotifySessionLengthLimitChanged();
103 void NotifyRequestToggleWifi(); 94 void NotifyRequestToggleWifi();
104 void NotifyOnCaptivePortalDetected(const std::string& service_path); 95 void NotifyOnCaptivePortalDetected(const std::string& service_path);
105 void NotifyEnterpriseDomainChanged(); 96 void NotifyEnterpriseDomainChanged();
106 void NotifyMediaCaptureChanged(); 97 void NotifyMediaCaptureChanged();
107 void NotifyScreenCaptureStart(const base::Closure& stop_callback, 98 void NotifyScreenCaptureStart(const base::Closure& stop_callback,
108 const base::string16& sharing_app_name); 99 const base::string16& sharing_app_name);
109 void NotifyScreenCaptureStop(); 100 void NotifyScreenCaptureStop();
110 void NotifyScreenShareStart(const base::Closure& stop_callback, 101 void NotifyScreenShareStart(const base::Closure& stop_callback,
111 const base::string16& helper_name); 102 const base::string16& helper_name);
112 void NotifyScreenShareStop(); 103 void NotifyScreenShareStop();
113 void NotifyLastWindowClosed(); 104 void NotifyLastWindowClosed();
114 #endif 105 #endif
115 106
116 private: 107 private:
117 base::ObserverList<AudioObserver> audio_observers_;
118 base::ObserverList<TracingObserver> tracing_observers_; 108 base::ObserverList<TracingObserver> tracing_observers_;
119 base::ObserverList<UserObserver> user_observers_; 109 base::ObserverList<UserObserver> user_observers_;
120 #if defined(OS_CHROMEOS) 110 #if defined(OS_CHROMEOS)
121 base::ObserverList<BluetoothObserver> bluetooth_observers_; 111 base::ObserverList<BluetoothObserver> bluetooth_observers_;
122 base::ObserverList<LogoutButtonObserver> logout_button_observers_; 112 base::ObserverList<LogoutButtonObserver> logout_button_observers_;
123 base::ObserverList<SessionLengthLimitObserver> 113 base::ObserverList<SessionLengthLimitObserver>
124 session_length_limit_observers_; 114 session_length_limit_observers_;
125 base::ObserverList<NetworkObserver> network_observers_; 115 base::ObserverList<NetworkObserver> network_observers_;
126 base::ObserverList<NetworkPortalDetectorObserver> 116 base::ObserverList<NetworkPortalDetectorObserver>
127 network_portal_detector_observers_; 117 network_portal_detector_observers_;
128 base::ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_; 118 base::ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
129 base::ObserverList<MediaCaptureObserver> media_capture_observers_; 119 base::ObserverList<MediaCaptureObserver> media_capture_observers_;
130 base::ObserverList<ScreenCaptureObserver> screen_capture_observers_; 120 base::ObserverList<ScreenCaptureObserver> screen_capture_observers_;
131 base::ObserverList<ScreenShareObserver> screen_share_observers_; 121 base::ObserverList<ScreenShareObserver> screen_share_observers_;
132 base::ObserverList<LastWindowClosedObserver> last_window_closed_observers_; 122 base::ObserverList<LastWindowClosedObserver> last_window_closed_observers_;
133 #endif 123 #endif
134 124
135 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); 125 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
136 }; 126 };
137 127
138 } // namespace ash 128 } // namespace ash
139 129
140 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 130 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698