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

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

Issue 144803003: Fix issue that IME can't be enabled when set Plugin mode to "Click to play". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update the fixing with a focused_ flag in WebViewPlugin Created 6 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.h
diff --git a/components/plugins/renderer/webview_plugin.h b/components/plugins/renderer/webview_plugin.h
index 6a4f1f36259669f1243df63d2120e32b17af6c62..276855f67136b6310d28b517aa7c490b89870cc3 100644
--- a/components/plugins/renderer/webview_plugin.h
+++ b/components/plugins/renderer/webview_plugin.h
@@ -85,7 +85,8 @@ class WebViewPlugin : public blink::WebPlugin,
const blink::WebVector<blink::WebRect>& cut_out_rects,
bool is_visible);
- virtual void updateFocus(bool) {}
+ virtual void updateFocus(bool);
+ virtual bool hasFocus();
Bernhard Bauer 2014/01/25 14:36:37 This method doesn't override a method from WebPlug
Ruiyi Luo 2014/01/26 09:40:28 Remove this function as no need after merging.
virtual void updateVisibility(bool) {}
virtual bool acceptsInputEvents();
@@ -155,6 +156,7 @@ class WebViewPlugin : public blink::WebPlugin,
bool finished_loading_;
scoped_ptr<blink::WebURLError> error_;
blink::WebString old_title_;
+ bool focused_;
};
#endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_

Powered by Google App Engine
This is Rietveld 408576698