Index: public/web/WebFormControlElement.h |
diff --git a/public/web/WebFormControlElement.h b/public/web/WebFormControlElement.h |
index a6abd72ffa558f0134e195624207a89dbe14756a..d7422c8df9c2b6636d53536622d36bb32a9378d7 100644 |
--- a/public/web/WebFormControlElement.h |
+++ b/public/web/WebFormControlElement.h |
@@ -64,6 +64,20 @@ public: |
BLINK_EXPORT bool isAutofilled() const; |
BLINK_EXPORT void setAutofilled(bool); |
+ // This returns the non-sanitized, exact value inside the text input field |
+ // or insisde the textarea. If neither input element nor textarea element, |
+ // an empty string is returned. |
tkent
2014/03/05 23:18:39
Actually, *null* string is returned, not *empty* s
|
+ BLINK_EXPORT WebString editingValue() const; |
+ |
+ // The returned value represents a cursor/caret position at the current |
+ // selection's start for text input field or textarea. If neither input |
+ // element nor textarea element, 0 is returned. |
+ BLINK_EXPORT int selectionStart() const; |
+ // The returned value represents a cursor/caret position at the current |
+ // selection's end for text input field or textarea. If neither input |
+ // element nor textarea element, 0 is returned. |
+ BLINK_EXPORT int selectionEnd() const; |
+ |
// Returns the name that should be used for the specified |element| when |
// storing autofill data. This is either the field name or its id, an empty |
// string if it has no name and no id. |