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

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

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: cleanup Created 4 years, 2 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Audio. 58 // Audio.
59 void AddAudioObserver(AudioObserver* observer); 59 void AddAudioObserver(AudioObserver* observer);
60 void RemoveAudioObserver(AudioObserver* observer); 60 void RemoveAudioObserver(AudioObserver* observer);
61 void NotifyAudioOutputVolumeChanged(uint64_t node_id, double volume); 61 void NotifyAudioOutputVolumeChanged(uint64_t node_id, double volume);
62 void NotifyAudioOutputMuteChanged(bool mute_on, bool system_adjust); 62 void NotifyAudioOutputMuteChanged(bool mute_on, bool system_adjust);
63 void NotifyAudioNodesChanged(); 63 void NotifyAudioNodesChanged();
64 void NotifyAudioActiveOutputNodeChanged(); 64 void NotifyAudioActiveOutputNodeChanged();
65 void NotifyAudioActiveInputNodeChanged(); 65 void NotifyAudioActiveInputNodeChanged();
66 66
67 // Date and time. 67 // Date and time.
68 void AddClockObserver(ClockObserver* observer); 68 // TODO: Remove all these in favor of SystemTrayController.
69 void RemoveClockObserver(ClockObserver* observer); 69 //void AddClockObserver(ClockObserver* observer);
70 //void RemoveClockObserver(ClockObserver* observer);
70 void NotifyRefreshClock(); 71 void NotifyRefreshClock();
71 void NotifyDateFormatChanged(); 72 // void NotifyDateFormatChanged();
72 void NotifySystemClockTimeUpdated(); 73 void NotifySystemClockTimeUpdated();
73 void NotifySystemClockCanSetTimeChanged(bool can_set_time); 74 void NotifySystemClockCanSetTimeChanged(bool can_set_time);
74 75
75 // Input methods. 76 // Input methods.
76 void AddIMEObserver(IMEObserver* observer); 77 void AddIMEObserver(IMEObserver* observer);
77 void RemoveIMEObserver(IMEObserver* observer); 78 void RemoveIMEObserver(IMEObserver* observer);
78 void NotifyRefreshIME(); 79 void NotifyRefreshIME();
79 void NotifyRefreshIMEMenu(bool is_active); 80 void NotifyRefreshIMEMenu(bool is_active);
80 81
81 // Locale. 82 // Locale.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 base::ObserverList<TracingObserver> tracing_observers_; 194 base::ObserverList<TracingObserver> tracing_observers_;
194 base::ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_; 195 base::ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_;
195 #endif 196 #endif
196 197
197 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); 198 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
198 }; 199 };
199 200
200 } // namespace ash 201 } // namespace ash
201 202
202 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 203 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698