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

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: create a helper GetStatusAreaWidgetDelegate 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..1f4b3f30aec1adea5d5408b4b6cf7b3c0500d85b 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.h
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.h
@@ -21,6 +21,10 @@
class GURL;
+namespace ash {
+class StatusAreaWidgetDelegate;
+}
+
namespace content {
class WebUI;
}
@@ -141,6 +145,9 @@ class WebUILoginView : public views::View,
// 2. Notifies OOBE/sign classes.
void OnLoginPromptVisible();
+ // Return if status area widget delegate exists, otherwise nullptr.
+ ash::StatusAreaWidgetDelegate* GetStatusAreaWidgetDelegate();
xiyuan 2016/09/13 21:48:08 Move this to cc file in anonymous namespace since
Qiang(Joe) Xu 2016/09/13 21:54:57 done
+
content::NotificationRegistrar registrar_;
// Converts keyboard events on the WebContents to accelerators.
@@ -162,6 +169,17 @@ class WebUILoginView : public views::View,
// True to forward keyboard event.
bool forward_keyboard_event_;
+ // A FocusTraversable for StatusAreaWidget that uses
+ // |status_area_widget_host_| as placeholder in WebUiLoginView's focus chain.
+ class StatusAreaFocusTraversable;
+ std::unique_ptr<StatusAreaFocusTraversable> status_area_focus_traversable_;
+ views::View* status_area_widget_host_ = nullptr;
+
+ // A FocusTraversable for WebUILoginView that loops back at the end of its
+ // focus chain.
+ class CycleFocusTraversable;
+ std::unique_ptr<CycleFocusTraversable> cycle_focus_traversable_;
+
base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_;
DISALLOW_COPY_AND_ASSIGN(WebUILoginView);
« no previous file with comments | « ash/common/system/status_area_widget_delegate.cc ('k') | chrome/browser/chromeos/login/ui/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698