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

Side by Side Diff: ash/common/system/tray/wm_system_tray_notifier.cc

Issue 2091953002: mash: Move TrayTracing to //ash/common/system/chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/common/system/tray/wm_system_tray_notifier.h ('k') | ash/system/chromeos/tray_tracing.h » ('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 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 #include "ash/common/system/tray/wm_system_tray_notifier.h" 5 #include "ash/common/system/tray/wm_system_tray_notifier.h"
6 6
7 #include "ash/common/system/accessibility_observer.h" 7 #include "ash/common/system/accessibility_observer.h"
8 #include "ash/common/system/audio/audio_observer.h" 8 #include "ash/common/system/audio/audio_observer.h"
9 #include "ash/common/system/date/clock_observer.h" 9 #include "ash/common/system/date/clock_observer.h"
10 #include "ash/common/system/ime/ime_observer.h" 10 #include "ash/common/system/ime/ime_observer.h"
11 #include "ash/common/system/update/update_observer.h" 11 #include "ash/common/system/update/update_observer.h"
12 12
13 #if defined(OS_CHROMEOS) 13 #if defined(OS_CHROMEOS)
14 #include "ash/common/system/chromeos/tray_tracing.h"
14 #include "ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_observer. h" 15 #include "ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_observer. h"
15 #endif 16 #endif
16 17
17 namespace ash { 18 namespace ash {
18 19
19 WmSystemTrayNotifier::WmSystemTrayNotifier() {} 20 WmSystemTrayNotifier::WmSystemTrayNotifier() {}
20 21
21 WmSystemTrayNotifier::~WmSystemTrayNotifier() {} 22 WmSystemTrayNotifier::~WmSystemTrayNotifier() {}
22 23
23 void WmSystemTrayNotifier::AddAccessibilityObserver( 24 void WmSystemTrayNotifier::AddAccessibilityObserver(
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 update_observers_.RemoveObserver(observer); 141 update_observers_.RemoveObserver(observer);
141 } 142 }
142 143
143 void WmSystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) { 144 void WmSystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) {
144 FOR_EACH_OBSERVER(UpdateObserver, update_observers_, 145 FOR_EACH_OBSERVER(UpdateObserver, update_observers_,
145 OnUpdateRecommended(info)); 146 OnUpdateRecommended(info));
146 } 147 }
147 148
148 #if defined(OS_CHROMEOS) 149 #if defined(OS_CHROMEOS)
149 150
151 void WmSystemTrayNotifier::AddTracingObserver(TracingObserver* observer) {
152 tracing_observers_.AddObserver(observer);
153 }
154
155 void WmSystemTrayNotifier::RemoveTracingObserver(TracingObserver* observer) {
156 tracing_observers_.RemoveObserver(observer);
157 }
158
159 void WmSystemTrayNotifier::NotifyTracingModeChanged(bool value) {
160 FOR_EACH_OBSERVER(TracingObserver, tracing_observers_,
161 OnTracingModeChanged(value));
162 }
163
150 void WmSystemTrayNotifier::AddVirtualKeyboardObserver( 164 void WmSystemTrayNotifier::AddVirtualKeyboardObserver(
151 VirtualKeyboardObserver* observer) { 165 VirtualKeyboardObserver* observer) {
152 virtual_keyboard_observers_.AddObserver(observer); 166 virtual_keyboard_observers_.AddObserver(observer);
153 } 167 }
154 168
155 void WmSystemTrayNotifier::RemoveVirtualKeyboardObserver( 169 void WmSystemTrayNotifier::RemoveVirtualKeyboardObserver(
156 VirtualKeyboardObserver* observer) { 170 VirtualKeyboardObserver* observer) {
157 virtual_keyboard_observers_.RemoveObserver(observer); 171 virtual_keyboard_observers_.RemoveObserver(observer);
158 } 172 }
159 173
160 void WmSystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( 174 void WmSystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged(
161 bool suppressed) { 175 bool suppressed) {
162 FOR_EACH_OBSERVER(VirtualKeyboardObserver, virtual_keyboard_observers_, 176 FOR_EACH_OBSERVER(VirtualKeyboardObserver, virtual_keyboard_observers_,
163 OnKeyboardSuppressionChanged(suppressed)); 177 OnKeyboardSuppressionChanged(suppressed));
164 } 178 }
165 179
166 #endif // defined(OS_CHROMEOS) 180 #endif // defined(OS_CHROMEOS)
167 181
168 } // namespace ash 182 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/wm_system_tray_notifier.h ('k') | ash/system/chromeos/tray_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698