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

Unified Diff: Source/web/WebTextAreaElement.cpp

Issue 120443003: Add autofill preview support for Textarea (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update code as per review comments Created 6 years, 11 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/core/testing/Internals.cpp ('k') | public/web/WebTextAreaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebTextAreaElement.cpp
diff --git a/Source/web/WebTextAreaElement.cpp b/Source/web/WebTextAreaElement.cpp
index 59d16bc044b4f4043fe092b2b9ed0320b491bf5b..c4ecd8b95e8db4b88c02170538f32e9b435ce029 100644
--- a/Source/web/WebTextAreaElement.cpp
+++ b/Source/web/WebTextAreaElement.cpp
@@ -50,6 +50,16 @@ WebString WebTextAreaElement::value() const
return constUnwrap<HTMLTextAreaElement>()->value();
}
+void WebTextAreaElement::setSuggestedValue(const WebString& value)
+{
+ unwrap<HTMLTextAreaElement>()->setSuggestedValue(value);
+}
+
+WebString WebTextAreaElement::suggestedValue() const
+{
+ return constUnwrap<HTMLTextAreaElement>()->suggestedValue();
+}
+
WebTextAreaElement::WebTextAreaElement(const PassRefPtr<HTMLTextAreaElement>& element)
: WebFormControlElement(element)
{
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | public/web/WebTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698