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

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

Issue 2920883002: chromeos: Make ash system tray directly observe IME state changes (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
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 6eb56b358688a8ac8509d9ee4a93e7a91af26720..2e4d0aecc75bd9deab079876b5dfb1118331a2c3 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -8,7 +8,6 @@
#include "ash/system/bluetooth/bluetooth_observer.h"
#include "ash/system/date/clock_observer.h"
#include "ash/system/enterprise/enterprise_domain_observer.h"
-#include "ash/system/ime/ime_observer.h"
#include "ash/system/network/network_observer.h"
#include "ash/system/network/network_portal_detector_observer.h"
#include "ash/system/screen_security/screen_capture_observer.h"
@@ -103,24 +102,6 @@ void SystemTrayNotifier::NotifyEnterpriseDomainChanged() {
observer.OnEnterpriseDomainChanged();
}
-void SystemTrayNotifier::AddIMEObserver(IMEObserver* observer) {
- ime_observers_.AddObserver(observer);
-}
-
-void SystemTrayNotifier::RemoveIMEObserver(IMEObserver* observer) {
- ime_observers_.RemoveObserver(observer);
-}
-
-void SystemTrayNotifier::NotifyRefreshIME() {
- for (auto& observer : ime_observers_)
- observer.OnIMERefresh();
-}
-
-void SystemTrayNotifier::NotifyRefreshIMEMenu(bool is_active) {
- for (auto& observer : ime_observers_)
- observer.OnIMEMenuActivationChanged(is_active);
-}
-
void SystemTrayNotifier::AddLastWindowClosedObserver(
LastWindowClosedObserver* observer) {
last_window_closed_observers_.AddObserver(observer);
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698