Index: third_party/WebKit/public/web/WebWidget.h |
diff --git a/third_party/WebKit/public/web/WebWidget.h b/third_party/WebKit/public/web/WebWidget.h |
index 3e6f5889a0086cbd214c7539df96c0e3ccdcbdc7..7641bb139158ef0427c0c3663f457d9fd91bf560 100644 |
--- a/third_party/WebKit/public/web/WebWidget.h |
+++ b/third_party/WebKit/public/web/WebWidget.h |
@@ -144,6 +144,15 @@ |
// "marked range." |
virtual WebRange compositionRange() { return WebRange(); } |
+ // Returns information about the current text input of this WebWidget. |
+ // Note that this query can be expensive for long fields, as it returns the |
+ // plain-text representation of the current editable element. Consider using |
+ // the lighter-weight textInputType() when appropriate. |
+ virtual WebTextInputInfo textInputInfo() { return WebTextInputInfo(); } |
+ |
+ // Returns the type of current text input of this WebWidget. |
+ virtual WebTextInputType textInputType() { return WebTextInputTypeNone; } |
+ |
// Returns the anchor and focus bounds of the current selection. |
// If the selection range is empty, it returns the caret bounds. |
virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const { |