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

Unified Diff: ash/wm/immersive_fullscreen_controller_unittest.cc

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class Created 7 years 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/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 672e97645699f72720fd961f2e43d892df525e71..80615b7cf744a76a681b4ff4e0a94f41db0061b2 100644
--- a/ash/wm/immersive_fullscreen_controller_unittest.cc
+++ b/ash/wm/immersive_fullscreen_controller_unittest.cc
@@ -131,7 +131,7 @@ class ImmersiveFullscreenControllerTest : public ash::test::AshTestBase {
top_container_ = new views::View();
top_container_->SetBounds(
0, 0, widget_->GetWindowBoundsInScreen().width(), 100);
- top_container_->set_focusable(true);
+ top_container_->SetFocusable(true);
widget_->GetContentsView()->AddChildView(top_container_);
delegate_.reset(
@@ -678,11 +678,11 @@ TEST_F(ImmersiveFullscreenControllerTest, Focus) {
// test.
views::View* child_view = new views::View();
child_view->SetBounds(0, 0, 10, 10);
- child_view->set_focusable(true);
+ child_view->SetFocusable(true);
top_container()->AddChildView(child_view);
views::View* unrelated_view = new views::View();
unrelated_view->SetBounds(0, 100, 10, 10);
- unrelated_view->set_focusable(true);
+ unrelated_view->SetFocusable(true);
top_container()->parent()->AddChildView(unrelated_view);
views::FocusManager* focus_manager =
top_container()->GetWidget()->GetFocusManager();

Powered by Google App Engine
This is Rietveld 408576698