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

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 102963005: Add supportsInputMethod() interface for WebPlugin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: setComposition/confirmComposition 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: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index e4c9592295eff74477e7890382463d7ea037d215..6922aa0d74e4cda6154c3a48c855e77b4363b835 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -525,4 +525,11 @@ bool HTMLPlugInElement::useFallbackContent() const
return hasAuthorShadowRoot();
}
+bool HTMLPlugInElement::canHandleInputMethod() const
+{
+ if (!document().page())
+ return false;
+ return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(pluginWidget())->supportsInputMethod();
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698