Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
index 8959a6a4b34abe35273583a9ef93dfb1fee1fa70..9ab3a0a81e75eaf26acc7f379859d0e9140d532b 100644 |
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
@@ -516,6 +516,20 @@ |
return PlainTextRange::create(*editable, range); |
} |
+WebTextInputInfo WebFrameWidgetImpl::textInputInfo() { |
+ LocalFrame* focused = focusedLocalFrameInWidget(); |
+ if (!focused) |
+ return WebTextInputInfo(); |
+ return focused->inputMethodController().textInputInfo(); |
+} |
+ |
+WebTextInputType WebFrameWidgetImpl::textInputType() { |
+ LocalFrame* focused = focusedLocalFrameInWidget(); |
+ if (!focused) |
+ return WebTextInputTypeNone; |
+ return focused->inputMethodController().textInputType(); |
+} |
+ |
WebColor WebFrameWidgetImpl::backgroundColor() const { |
if (isTransparent()) |
return Color::transparent; |