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

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

Issue 2295843006: Signin screen and locked screen status area focus advancing (Closed)
Patch Set: Created 4 years, 3 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/common/system/tray/system_tray_notifier.cc
diff --git a/ash/common/system/tray/system_tray_notifier.cc b/ash/common/system/tray/system_tray_notifier.cc
index 3629b1bde5ff2b8785d6031453afa93459c32c73..7d93a6001a72aeb26ef74458d4097c3ea8fd134d 100644
--- a/ash/common/system/tray/system_tray_notifier.cc
+++ b/ash/common/system/tray/system_tray_notifier.cc
@@ -8,6 +8,7 @@
#include "ash/common/system/audio/audio_observer.h"
#include "ash/common/system/date/clock_observer.h"
#include "ash/common/system/ime/ime_observer.h"
+#include "ash/common/system/status_area_focus_observer.h"
#include "ash/common/system/update/update_observer.h"
#include "ash/common/system/user/user_observer.h"
@@ -155,6 +156,21 @@ void SystemTrayNotifier::NotifyUpdateRecommended(const UpdateInfo& info) {
OnUpdateRecommended(info));
}
+void SystemTrayNotifier::AddStatusAreaFocusObserver(
+ StatusAreaFocusObserver* observer) {
+ status_area_focus_observers_.AddObserver(observer);
+}
+
+void SystemTrayNotifier::RemoveStatusAreaFocusObserver(
+ StatusAreaFocusObserver* observer) {
+ status_area_focus_observers_.RemoveObserver(observer);
+}
+
+void SystemTrayNotifier::NotifyWillReturnFocusToWebContents(bool reverse) {
+ FOR_EACH_OBSERVER(StatusAreaFocusObserver, status_area_focus_observers_,
+ OnWillReturnFocusToWebContents(reverse));
+}
+
void SystemTrayNotifier::AddUserObserver(UserObserver* observer) {
user_observers_.AddObserver(observer);
}

Powered by Google App Engine
This is Rietveld 408576698