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

Unified Diff: public/web/WebFormControlElement.h

Issue 133443011: Add text field change handling for autofill preview in textarea element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update documentation as per tkent's review comments Created 6 years, 9 months 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
« no previous file with comments | « public/web/WebAutofillClient.h ('k') | public/web/WebInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFormControlElement.h
diff --git a/public/web/WebFormControlElement.h b/public/web/WebFormControlElement.h
index a6abd72ffa558f0134e195624207a89dbe14756a..e771d3cb4a8c0d97d84c4c983f669b32e17b1a4b 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,
+ // a null string is returned.
+ 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.
« no previous file with comments | « public/web/WebAutofillClient.h ('k') | public/web/WebInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698