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

Unified Diff: public/web/WebFormControlElement.h

Issue 138433002: Add Autofill preview support for <select> input fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Initialize m_suggestedIndex in constructor 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 | « Source/web/WebFormControlElement.cpp ('k') | no next file » | 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 a6883613b22c25438d3496d08f95dd53c07709e6..bb5733d6722103b88c935144e12588fa2ab97851 100644
--- a/public/web/WebFormControlElement.h
+++ b/public/web/WebFormControlElement.h
@@ -73,13 +73,16 @@ public:
BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = false);
// Returns value of element. For select element, it returns the value of
// the selected option if present. If no selected option, an empty string
- // is returned. For any other types of elements, a null string is returned.
+ // is returned. If element doesn't fall into input element, textarea element
+ // and select element categories, a null string is returned.
BLINK_EXPORT WebString value() const;
- // Sets suggested value for element. The goal of introducing suggested value
- // is to not leak any information to JavaScript.
+ // Sets suggested value for element. For select element it finds the option
+ // with value matches the given parameter and make the option as the suggested
+ // selection. The goal of introducing suggested value is to not leak any information
+ // to JavaScript.
BLINK_EXPORT void setSuggestedValue(const WebString&);
- // Returns suggested value for input element or textarea element. If neither
- // input element nor textarea element, a null string is returned.
+ // Returns suggested value of element. If element doesn't fall into input element,
+ // textarea element and select element categories, a null string is returned.
BLINK_EXPORT WebString suggestedValue() const;
// Returns the non-sanitized, exact value inside the text input field
« no previous file with comments | « Source/web/WebFormControlElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698