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

Unified Diff: ash/system/tray/system_tray_notifier.cc

Issue 2086503003: mash: Migrate tray IME view to wm common types, move to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movea11y
Patch Set: nit 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index d24444cd23eb3676be0854e4c6a525f8c54257d4..21129329a4585bddd7986035eb472b347d37ab78 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -20,14 +20,6 @@ void SystemTrayNotifier::RemoveAudioObserver(AudioObserver* observer) {
audio_observers_.RemoveObserver(observer);
}
-void SystemTrayNotifier::AddIMEObserver(IMEObserver* observer) {
- ime_observers_.AddObserver(observer);
-}
-
-void SystemTrayNotifier::RemoveIMEObserver(IMEObserver* observer) {
- ime_observers_.RemoveObserver(observer);
-}
-
void SystemTrayNotifier::AddLocaleObserver(LocaleObserver* observer) {
locale_observers_.AddObserver(observer);
}
@@ -150,16 +142,7 @@ void SystemTrayNotifier::RemoveLastWindowClosedObserver(
last_window_closed_observers_.RemoveObserver(observer);
}
-void SystemTrayNotifier::AddVirtualKeyboardObserver(
- VirtualKeyboardObserver* observer) {
- virtual_keyboard_observers_.AddObserver(observer);
-}
-
-void SystemTrayNotifier::RemoveVirtualKeyboardObserver(
- VirtualKeyboardObserver* observer) {
- virtual_keyboard_observers_.RemoveObserver(observer);
-}
-#endif
+#endif // defined(OS_CHROMEOS)
void SystemTrayNotifier::NotifyAudioOutputVolumeChanged(uint64_t node_id,
double volume) {
@@ -201,18 +184,6 @@ void SystemTrayNotifier::NotifyTracingModeChanged(bool value) {
OnTracingModeChanged(value));
}
-void SystemTrayNotifier::NotifyRefreshIME() {
- FOR_EACH_OBSERVER(IMEObserver,
- ime_observers_,
- OnIMERefresh());
-}
-
-void SystemTrayNotifier::NotifyRefreshIMEMenu(bool is_active) {
- FOR_EACH_OBSERVER(IMEObserver,
- ime_observers_,
- OnIMEMenuActivationChanged(is_active));
-}
-
void SystemTrayNotifier::NotifyLocaleChanged(
LocaleObserver::Delegate* delegate,
const std::string& cur_locale,
@@ -326,13 +297,6 @@ void SystemTrayNotifier::NotifyLastWindowClosed() {
OnLastWindowClosed());
}
-void SystemTrayNotifier::NotifyVirtualKeyboardSuppressionChanged(
- bool suppressed) {
- FOR_EACH_OBSERVER(VirtualKeyboardObserver,
- virtual_keyboard_observers_,
- OnKeyboardSuppressionChanged(suppressed));
-}
-
#endif // OS_CHROMEOS
} // namespace ash
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698