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

Unified Diff: ash/common/system/tray/wm_system_tray_notifier.h

Issue 2082193002: mash: Migrate locale observer and notification to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format 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/common/system/locale/locale_observer.h ('k') | ash/common/system/tray/wm_system_tray_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/wm_system_tray_notifier.h
diff --git a/ash/common/system/tray/wm_system_tray_notifier.h b/ash/common/system/tray/wm_system_tray_notifier.h
index 7060d4725e86f32161ccb08b1e811a025943375e..f6d8c7b52791653da9829e7e37dead400afe9c64 100644
--- a/ash/common/system/tray/wm_system_tray_notifier.h
+++ b/ash/common/system/tray/wm_system_tray_notifier.h
@@ -7,6 +7,7 @@
#include "ash/ash_export.h"
#include "ash/common/accessibility_types.h"
+#include "ash/common/system/locale/locale_observer.h"
#include "base/macros.h"
#include "base/observer_list.h"
@@ -52,6 +53,14 @@ class ASH_EXPORT WmSystemTrayNotifier {
void NotifyRefreshIME();
void NotifyRefreshIMEMenu(bool is_active);
+ // Locale.
+ void AddLocaleObserver(LocaleObserver* observer);
+ void RemoveLocaleObserver(LocaleObserver* observer);
+ void NotifyLocaleChanged(LocaleObserver::Delegate* delegate,
+ const std::string& cur_locale,
+ const std::string& from_locale,
+ const std::string& to_locale);
+
// OS updates.
void AddUpdateObserver(UpdateObserver* observer);
void RemoveUpdateObserver(UpdateObserver* observer);
@@ -66,8 +75,9 @@ class ASH_EXPORT WmSystemTrayNotifier {
private:
base::ObserverList<AccessibilityObserver> accessibility_observers_;
- base::ObserverList<IMEObserver> ime_observers_;
base::ObserverList<ClockObserver> clock_observers_;
James Cook 2016/06/22 02:53:29 thanks for fixing this ordering
+ base::ObserverList<IMEObserver> ime_observers_;
+ base::ObserverList<LocaleObserver> locale_observers_;
base::ObserverList<UpdateObserver> update_observers_;
#if defined(OS_CHROMEOS)
« no previous file with comments | « ash/common/system/locale/locale_observer.h ('k') | ash/common/system/tray/wm_system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698