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

Unified Diff: ui/views/controls/webview/webview.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/controls/webview/webview.cc
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index dee63428831a06b0867e9c459a18fbe659804a1b..6b6f0b9169df46bd298605c4f1844b6abb75b7df 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -67,7 +67,8 @@ void WebView::SetWebContents(content::WebContents* replacement) {
observing_render_process_host_->AddObserver(this);
}
// web_contents() now returns |replacement| from here onwards.
- SetFocusable(!!web_contents());
+ SetFocusBehavior(web_contents() ? FocusBehavior::ALWAYS
+ : FocusBehavior::NEVER);
if (wc_owner_.get() != replacement)
wc_owner_.reset();
if (embed_fullscreen_widget_mode_enabled_) {

Powered by Google App Engine
This is Rietveld 408576698