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

Unified Diff: ash/common/system/status_area_focus_observer.h

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/status_area_focus_observer.h
diff --git a/ash/common/system/status_area_focus_observer.h b/ash/common/system/status_area_focus_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..4cdc5af94fc362c47ca3cb6cbc333fc74703f897
--- /dev/null
+++ b/ash/common/system/status_area_focus_observer.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_SYSTEM_STATUS_AREA_FOCUS_OBSERVER_H_
+#define ASH_COMMON_SYSTEM_STATUS_AREA_FOCUS_OBSERVER_H_
+
+#include "ash/ash_export.h"
+
+namespace ash {
+
+class ASH_EXPORT StatusAreaFocusObserver {
+ public:
+ virtual ~StatusAreaFocusObserver() {}
+
+ // On WebUILoginView, when focus enters status area widget, its focus manager
+ // will rotate focus within the widget on tab/shift-tab key events.
+ // The observer should take the focus to web contents properly.
+ virtual void OnWillReturnFocusToWebContents(bool reverse) = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_SYSTEM_STATUS_AREA_FOCUS_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698