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

Unified Diff: chrome/browser/chromeos/login/ui/webui_login_view.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: chrome/browser/chromeos/login/ui/webui_login_view.h
diff --git a/chrome/browser/chromeos/login/ui/webui_login_view.h b/chrome/browser/chromeos/login/ui/webui_login_view.h
index e6a337b5860be059e7996f2087f3341520c9afbe..1a24a5fdff191118da81a1fbb038c5b731e5c05f 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.h
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.h
@@ -8,6 +8,7 @@
#include <map>
#include <string>
+#include "ash/common/system/status_area_focus_observer.h"
#include "base/macros.h"
#include "base/observer_list.h"
#include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h"
@@ -39,7 +40,8 @@ class WebUILoginView : public views::View,
public content::WebContentsDelegate,
public content::NotificationObserver,
public ChromeWebModalDialogManagerDelegate,
- public web_modal::WebContentsModalDialogHost {
+ public web_modal::WebContentsModalDialogHost,
+ public ash::StatusAreaFocusObserver {
public:
// Internal class name.
static const char kViewClassName[];
@@ -135,6 +137,9 @@ class WebUILoginView : public views::View,
bool PreHandleGestureEvent(content::WebContents* source,
const blink::WebGestureEvent& event) override;
+ // Overridden from ash::StatusAreaFocusObserver.
+ void OnWillReturnFocusToWebContents(bool reverse) override;
+
// Performs series of actions when login prompt is considered
// to be ready and visible.
// 1. Emits LoginPromptVisible signal if needed

Powered by Google App Engine
This is Rietveld 408576698