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

Unified Diff: Source/web/WebTextAreaElement.cpp

Issue 167383002: Add functions for autocomplete, selectionRange, directioinForFormData for TextArea element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make shouldAutocomplete() public Created 6 years, 10 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/html/HTMLFormControlElementWithState.h ('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 c4ecd8b95e8db4b88c02170538f32e9b435ce029..4f6a6851ffa031a904d8247b5158bb37bbf7f89f 100644
--- a/Source/web/WebTextAreaElement.cpp
+++ b/Source/web/WebTextAreaElement.cpp
@@ -60,6 +60,21 @@ WebString WebTextAreaElement::suggestedValue() const
return constUnwrap<HTMLTextAreaElement>()->suggestedValue();
}
+void WebTextAreaElement::setSelectionRange(int start, int end)
+{
+ unwrap<HTMLTextAreaElement>()->setSelectionRange(start, end);
+}
+
+bool WebTextAreaElement::autoComplete() const
+{
+ return constUnwrap<HTMLTextAreaElement>()->shouldAutocomplete();
+}
+
+WebString WebTextAreaElement::directionForFormData() const
+{
+ return constUnwrap<HTMLTextAreaElement>()->directionForFormData();
+}
+
WebTextAreaElement::WebTextAreaElement(const PassRefPtr<HTMLTextAreaElement>& element)
: WebFormControlElement(element)
{
« no previous file with comments | « Source/core/html/HTMLFormControlElementWithState.h ('k') | public/web/WebTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698