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

Unified Diff: Source/core/html/HTMLTextAreaElement.h

Issue 120443003: Add autofill preview support for Textarea (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 | « no previous file | Source/core/html/HTMLTextAreaElement.cpp » ('j') | Source/core/html/HTMLTextAreaElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextAreaElement.h
diff --git a/Source/core/html/HTMLTextAreaElement.h b/Source/core/html/HTMLTextAreaElement.h
index 7f157ca116aa9d1105dde57db7c2e293af449169..b6349388c75252d419b6041b7cd5e49d18cf0612 100644
--- a/Source/core/html/HTMLTextAreaElement.h
+++ b/Source/core/html/HTMLTextAreaElement.h
@@ -48,6 +48,11 @@ public:
int textLength() const { return value().length(); }
virtual int maxLength() const;
void setMaxLength(int, ExceptionState&);
+
+ // suggested values for autofill
+ const String& suggestedValue() const;
+ void setSuggestedValue(const String&);
+
// For ValidityState
virtual String validationMessage() const OVERRIDE;
virtual bool valueMissing() const OVERRIDE;
@@ -124,6 +129,8 @@ private:
WrapMethod m_wrap;
mutable String m_value;
mutable bool m_isDirty;
+
+ String m_suggestedValue;
};
DEFINE_NODE_TYPE_CASTS(HTMLTextAreaElement, hasTagName(HTMLNames::textareaTag));
« no previous file with comments | « no previous file | Source/core/html/HTMLTextAreaElement.cpp » ('j') | Source/core/html/HTMLTextAreaElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698