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

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

Issue 2074913005: Convert TrayAccessibility to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webnotification
Patch Set: rebase 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/accessibility_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 95b5527ff929fd3665e495a72df34927558735a9..e13c25547e64473d6467efba3fdaa7b77f66699c 100644
--- a/ash/common/system/tray/wm_system_tray_notifier.h
+++ b/ash/common/system/tray/wm_system_tray_notifier.h
@@ -6,11 +6,13 @@
#define ASH_COMMON_SYSTEM_TRAY_WM_SYSTEM_TRAY_NOTIFIER_H_
#include "ash/ash_export.h"
+#include "ash/common/accessibility_types.h"
#include "base/macros.h"
#include "base/observer_list.h"
namespace ash {
+class AccessibilityObserver;
class ClockObserver;
struct UpdateInfo;
class UpdateObserver;
@@ -25,12 +27,18 @@ class ASH_EXPORT WmSystemTrayNotifier {
WmSystemTrayNotifier();
~WmSystemTrayNotifier();
+ void AddAccessibilityObserver(AccessibilityObserver* observer);
+ void RemoveAccessibilityObserver(AccessibilityObserver* observer);
+
void AddClockObserver(ClockObserver* observer);
void RemoveClockObserver(ClockObserver* observer);
void AddUpdateObserver(UpdateObserver* observer);
void RemoveUpdateObserver(UpdateObserver* observer);
+ void NotifyAccessibilityModeChanged(
+ ui::AccessibilityNotificationVisibility notify);
+
void NotifyRefreshClock();
void NotifyDateFormatChanged();
void NotifySystemClockTimeUpdated();
@@ -39,6 +47,7 @@ class ASH_EXPORT WmSystemTrayNotifier {
void NotifyUpdateRecommended(const UpdateInfo& info);
private:
+ base::ObserverList<AccessibilityObserver> accessibility_observers_;
base::ObserverList<ClockObserver> clock_observers_;
base::ObserverList<UpdateObserver> update_observers_;
« no previous file with comments | « ash/common/system/accessibility_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