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

Unified Diff: ui/views/controls/webview/webview_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 | « ui/views/controls/webview/webview.cc ('k') | ui/views/examples/button_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/webview_unittest.cc
diff --git a/ui/views/controls/webview/webview_unittest.cc b/ui/views/controls/webview/webview_unittest.cc
index 193828e24ad4beced07fccfb5d00038e1c500245..7c85a7255b8a7f85657a1b67307d517fc89a7d58 100644
--- a/ui/views/controls/webview/webview_unittest.cc
+++ b/ui/views/controls/webview/webview_unittest.cc
@@ -401,7 +401,7 @@ TEST_F(WebViewUnitTest, EmbeddedFullscreenDuringScreenCapture_ClickToFocus) {
web_view()->SetBoundsRect(gfx::Rect(0, 0, 100, 90));
views::View* const something_to_focus = new views::View();
something_to_focus->SetBoundsRect(gfx::Rect(0, 90, 100, 10));
- something_to_focus->SetFocusable(true);
+ something_to_focus->SetFocusBehavior(View::FocusBehavior::ALWAYS);
top_level_widget()->GetContentsView()->AddChildView(something_to_focus);
web_view()->SetEmbedFullscreenWidgetMode(true);
« no previous file with comments | « ui/views/controls/webview/webview.cc ('k') | ui/views/examples/button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698