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

Unified Diff: ash/focus_cycler_unittest.cc

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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
« no previous file with comments | « no previous file | ash/shelf/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/focus_cycler_unittest.cc
diff --git a/ash/focus_cycler_unittest.cc b/ash/focus_cycler_unittest.cc
index e13973ec78dcd9d3db548fc06e2564a79e12cec6..b9842e53976585901952e1bfd2aec5369cd1da2e 100644
--- a/ash/focus_cycler_unittest.cc
+++ b/ash/focus_cycler_unittest.cc
@@ -318,22 +318,22 @@ TEST_F(FocusCyclerTest, CycleFocusThroughWindowWithPanes) {
root_view->AddChildView(pane1);
views::View* view1 = new views::View;
- view1->SetFocusable(true);
+ view1->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
pane1->AddChildView(view1);
views::View* view2 = new views::View;
- view2->SetFocusable(true);
+ view2->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
pane1->AddChildView(view2);
views::AccessiblePaneView* pane2 = new views::AccessiblePaneView();
root_view->AddChildView(pane2);
views::View* view3 = new views::View;
- view3->SetFocusable(true);
+ view3->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
pane2->AddChildView(view3);
views::View* view4 = new views::View;
- view4->SetFocusable(true);
+ view4->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
pane2->AddChildView(view4);
std::vector<views::View*> panes;
« no previous file with comments | « no previous file | ash/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698