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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2508363003: [refactor] - Move textInputInfo() and textInputType() from WebWidget to WebInputMethodController (Closed)
Patch Set: 'controller' may be nullptr. Created 4 years, 1 month 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: 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 8e1ca8bfedc3989487d8189cd7591f5b84bc9902..d0ed98b588702e65e4d6a207f059f2edf86a7800 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2350,20 +2350,6 @@ WebRange WebViewImpl::compositionRange() {
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 {

Powered by Google App Engine
This is Rietveld 408576698