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

Unified Diff: ui/views/widget/root_view_unittest.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: ui/views/widget/root_view_unittest.cc
diff --git a/ui/views/widget/root_view_unittest.cc b/ui/views/widget/root_view_unittest.cc
index 3a47540aba6d62145791b4974bb14091138ec73f..b2de4de14266d52e9fc5aa8630565ff25d4983f8 100644
--- a/ui/views/widget/root_view_unittest.cc
+++ b/ui/views/widget/root_view_unittest.cc
@@ -54,7 +54,7 @@ TEST_F(RootViewTest, DeleteViewDuringKeyEventDispatch) {
content->AddChildView(child);
// Give focus to |child| so that it will be the target of the key event.
- child->SetFocusable(true);
+ child->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
child->RequestFocus();
internal::RootView* root_view =
@@ -121,7 +121,7 @@ TEST_F(RootViewTest, ContextMenuFromKeyEvent) {
View* focused_view = new View;
focused_view->set_context_menu_controller(&controller);
widget.SetContentsView(focused_view);
- focused_view->SetFocusable(true);
+ focused_view->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
focused_view->RequestFocus();
// No context menu should be shown for a keypress of 'A'.

Powered by Google App Engine
This is Rietveld 408576698