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

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

Issue 1115083002: Add the supporting code for the cast system tray integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support detecting if we are casting a tab or the desktop Created 5 years, 7 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 (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 #include "ash/system/tray/system_tray_notifier.h" 5 #include "ash/system/tray/system_tray_notifier.h"
6 6
7 namespace ash { 7 namespace ash {
8 8
9 SystemTrayNotifier::SystemTrayNotifier() { 9 SystemTrayNotifier::SystemTrayNotifier() {
10 } 10 }
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 void SystemTrayNotifier::AddBluetoothObserver(BluetoothObserver* observer) { 33 void SystemTrayNotifier::AddBluetoothObserver(BluetoothObserver* observer) {
34 bluetooth_observers_.AddObserver(observer); 34 bluetooth_observers_.AddObserver(observer);
35 } 35 }
36 36
37 void SystemTrayNotifier::RemoveBluetoothObserver(BluetoothObserver* observer) { 37 void SystemTrayNotifier::RemoveBluetoothObserver(BluetoothObserver* observer) {
38 bluetooth_observers_.RemoveObserver(observer); 38 bluetooth_observers_.RemoveObserver(observer);
39 } 39 }
40 40
41 void SystemTrayNotifier::AddCastObserver(CastObserver* observer) {
42 cast_observers_.AddObserver(observer);
43 }
44
45 void SystemTrayNotifier::RemoveCastObserver(CastObserver* observer) {
46 cast_observers_.RemoveObserver(observer);
47 }
48
41 void SystemTrayNotifier::AddClockObserver(ClockObserver* observer) { 49 void SystemTrayNotifier::AddClockObserver(ClockObserver* observer) {
42 clock_observers_.AddObserver(observer); 50 clock_observers_.AddObserver(observer);
43 } 51 }
44 52
45 void SystemTrayNotifier::RemoveClockObserver(ClockObserver* observer) { 53 void SystemTrayNotifier::RemoveClockObserver(ClockObserver* observer) {
46 clock_observers_.RemoveObserver(observer); 54 clock_observers_.RemoveObserver(observer);
47 } 55 }
48 56
49 void SystemTrayNotifier::AddIMEObserver(IMEObserver* observer) { 57 void SystemTrayNotifier::AddIMEObserver(IMEObserver* observer) {
50 ime_observers_.AddObserver(observer); 58 ime_observers_.AddObserver(observer);
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged( 393 void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged(
386 bool suppressed) { 394 bool suppressed) {
387 FOR_EACH_OBSERVER(VirtualKeyboardObserver, 395 FOR_EACH_OBSERVER(VirtualKeyboardObserver,
388 virtual_keyboard_observers_, 396 virtual_keyboard_observers_,
389 OnKeyboardSuppressionChanged(suppressed)); 397 OnKeyboardSuppressionChanged(suppressed));
390 } 398 }
391 399
392 #endif // OS_CHROMEOS 400 #endif // OS_CHROMEOS
393 401
394 } // namespace ash 402 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698