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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 853333002: Browser Plugin: Make aware of focus direction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 5beb3336f1d80eb2c986d5e1129877fba135f23a..f8a9ad393fe90b27d4dc18909f1aafca9cdced85 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -90,7 +90,7 @@ void WebViewPlugin::ReplayReceivedData(WebPlugin* plugin) {
}
// We need to transfer the |focused_| to new plugin after it loaded.
if (focused_) {
- plugin->updateFocus(true);
+ plugin->updateFocus(true, blink::WebFocusTypeNone);
}
if (finished_loading_) {
plugin->didFinishLoading();
@@ -157,7 +157,7 @@ void WebViewPlugin::updateGeometry(const WebRect& frame_rect,
}
}
-void WebViewPlugin::updateFocus(bool focused) {
+void WebViewPlugin::updateFocus(bool focused, blink::WebFocusType focusType) {
jochen (gone - plz use gerrit) 2015/01/19 12:55:33 focus_type
focused_ = focused;
}

Powered by Google App Engine
This is Rietveld 408576698