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

Unified Diff: ash/wm/immersive_fullscreen_controller_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 | « ash/system/user/button_from_view.cc ('k') | chrome/browser/apps/guest_view/web_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/immersive_fullscreen_controller_unittest.cc
diff --git a/ash/wm/immersive_fullscreen_controller_unittest.cc b/ash/wm/immersive_fullscreen_controller_unittest.cc
index 0d22cfb158b654b88d6c49832933754ec74f074a..18b07f7b6e1b5a19834e23c51c497e774a799dda 100644
--- a/ash/wm/immersive_fullscreen_controller_unittest.cc
+++ b/ash/wm/immersive_fullscreen_controller_unittest.cc
@@ -171,7 +171,7 @@ class ImmersiveFullscreenControllerTest : public ash::test::AshTestBase {
top_container_ = new views::View();
top_container_->SetBounds(
0, 0, window_size.width(), 100);
- top_container_->SetFocusable(true);
+ top_container_->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
widget_->GetContentsView()->AddChildView(top_container_);
delegate_.reset(
@@ -801,11 +801,11 @@ TEST_F(ImmersiveFullscreenControllerTest, Focus) {
// test.
views::View* child_view = new views::View();
child_view->SetBounds(0, 0, 10, 10);
- child_view->SetFocusable(true);
+ child_view->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
top_container()->AddChildView(child_view);
views::View* unrelated_view = new views::View();
unrelated_view->SetBounds(0, 100, 10, 10);
- unrelated_view->SetFocusable(true);
+ unrelated_view->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
top_container()->parent()->AddChildView(unrelated_view);
views::FocusManager* focus_manager =
top_container()->GetWidget()->GetFocusManager();
« no previous file with comments | « ash/system/user/button_from_view.cc ('k') | chrome/browser/apps/guest_view/web_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698