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

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

Issue 2698473007: Convert path usage in NetworkListViewBase subclasses to use guids. (Closed)
Patch Set: Tweak NetworkPortalNotificationControllerTest to create GUIDs for new NetworkStates. Created 3 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
« no previous file with comments | « ash/common/system/tray/system_tray_notifier.h ('k') | ash/mus/system_tray_delegate_mus.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 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/system_tray_notifier.h" 5 #include "ash/common/system/tray/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/chromeos/bluetooth/bluetooth_observer.h" 8 #include "ash/common/system/chromeos/bluetooth/bluetooth_observer.h"
9 #include "ash/common/system/chromeos/enterprise/enterprise_domain_observer.h" 9 #include "ash/common/system/chromeos/enterprise/enterprise_domain_observer.h"
10 #include "ash/common/system/chromeos/network/network_observer.h" 10 #include "ash/common/system/chromeos/network/network_observer.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 NetworkPortalDetectorObserver* observer) { 174 NetworkPortalDetectorObserver* observer) {
175 network_portal_detector_observers_.AddObserver(observer); 175 network_portal_detector_observers_.AddObserver(observer);
176 } 176 }
177 177
178 void SystemTrayNotifier::RemoveNetworkPortalDetectorObserver( 178 void SystemTrayNotifier::RemoveNetworkPortalDetectorObserver(
179 NetworkPortalDetectorObserver* observer) { 179 NetworkPortalDetectorObserver* observer) {
180 network_portal_detector_observers_.RemoveObserver(observer); 180 network_portal_detector_observers_.RemoveObserver(observer);
181 } 181 }
182 182
183 void SystemTrayNotifier::NotifyOnCaptivePortalDetected( 183 void SystemTrayNotifier::NotifyOnCaptivePortalDetected(
184 const std::string& service_path) { 184 const std::string& guid) {
185 for (auto& observer : network_portal_detector_observers_) 185 for (auto& observer : network_portal_detector_observers_)
186 observer.OnCaptivePortalDetected(service_path); 186 observer.OnCaptivePortalDetected(guid);
187 } 187 }
188 188
189 void SystemTrayNotifier::AddScreenCaptureObserver( 189 void SystemTrayNotifier::AddScreenCaptureObserver(
190 ScreenCaptureObserver* observer) { 190 ScreenCaptureObserver* observer) {
191 screen_capture_observers_.AddObserver(observer); 191 screen_capture_observers_.AddObserver(observer);
192 } 192 }
193 193
194 void SystemTrayNotifier::RemoveScreenCaptureObserver( 194 void SystemTrayNotifier::RemoveScreenCaptureObserver(
195 ScreenCaptureObserver* observer) { 195 ScreenCaptureObserver* observer) {
196 screen_capture_observers_.RemoveObserver(observer); 196 screen_capture_observers_.RemoveObserver(observer);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 virtual_keyboard_observers_.RemoveObserver(observer); 290 virtual_keyboard_observers_.RemoveObserver(observer);
291 } 291 }
292 292
293 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( 293 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged(
294 bool suppressed) { 294 bool suppressed) {
295 for (auto& observer : virtual_keyboard_observers_) 295 for (auto& observer : virtual_keyboard_observers_)
296 observer.OnKeyboardSuppressionChanged(suppressed); 296 observer.OnKeyboardSuppressionChanged(suppressed);
297 } 297 }
298 298
299 } // namespace ash 299 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_notifier.h ('k') | ash/mus/system_tray_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698