| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index a142f24ac5a68c873deeb6352b2dc939a25b611e..32fa319a7dae63b8575759c5a1cd6acafa7cd509 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2339,6 +2339,20 @@
|
| return PlainTextRange::create(*editable, range);
|
| }
|
|
|
| +WebTextInputInfo WebViewImpl::textInputInfo() {
|
| + LocalFrame* focused = focusedLocalFrameInWidget();
|
| + if (!focused)
|
| + return WebTextInputInfo();
|
| + return focused->inputMethodController().textInputInfo();
|
| +}
|
| +
|
| +WebTextInputType WebViewImpl::textInputType() {
|
| + LocalFrame* focused = focusedLocalFrameInWidget();
|
| + if (!focused)
|
| + return WebTextInputTypeNone;
|
| + return focused->inputMethodController().textInputType();
|
| +}
|
| +
|
| // TODO(ekaramad):This method is almost duplicated in WebFrameWidgetImpl as
|
| // well. This code needs to be refactored (http://crbug.com/629721).
|
| bool WebViewImpl::selectionBounds(WebRect& anchor, WebRect& focus) const {
|
|
|