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

Unified Diff: ash/common/system/status_area_widget_delegate.cc

Issue 2295843006: Signin screen and locked screen status area focus advancing (Closed)
Patch Set: GetWidget->IsVisible() 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_widget_delegate.cc
diff --git a/ash/common/system/status_area_widget_delegate.cc b/ash/common/system/status_area_widget_delegate.cc
index 6663b4cc5ec0d1f162099f196779fb014e2e9163..cdf93c1bdcab36b5bbd4090cb6d331078d776e5e 100644
--- a/ash/common/system/status_area_widget_delegate.cc
+++ b/ash/common/system/status_area_widget_delegate.cc
@@ -69,7 +69,25 @@ void StatusAreaWidgetDelegate::SetFocusCyclerForTesting(
}
views::View* StatusAreaWidgetDelegate::GetDefaultFocusableChild() {
- return child_at(0);
+ return default_last_focusable_child_ ? GetLastFocusableChild()
+ : GetFirstFocusableChild();
+}
+
+views::FocusSearch* StatusAreaWidgetDelegate::GetFocusSearch() {
+ return custom_focus_traversable_ ? custom_focus_traversable_->GetFocusSearch()
+ : AccessiblePaneView::GetFocusSearch();
+}
+
+views::FocusTraversable* StatusAreaWidgetDelegate::GetFocusTraversableParent() {
+ return custom_focus_traversable_
+ ? custom_focus_traversable_->GetFocusTraversableParent()
+ : AccessiblePaneView::GetFocusTraversableParent();
+}
+
+views::View* StatusAreaWidgetDelegate::GetFocusTraversableParentView() {
+ return custom_focus_traversable_
+ ? custom_focus_traversable_->GetFocusTraversableParentView()
+ : AccessiblePaneView::GetFocusTraversableParentView();
}
views::Widget* StatusAreaWidgetDelegate::GetWidget() {
« no previous file with comments | « ash/common/system/status_area_widget_delegate.h ('k') | chrome/browser/chromeos/login/ui/webui_login_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698