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

Unified Diff: Source/web/WebInputElement.cpp

Issue 194923003: Move common methods to WebFormControlElement interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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') | Source/web/WebSelectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebInputElement.cpp
diff --git a/Source/web/WebInputElement.cpp b/Source/web/WebInputElement.cpp
index 1c2aac8bfaa056091aa5b6e84a5729d00d0cb3ca..117e4cac5be9cf150f43a649f54554371681e820 100644
--- a/Source/web/WebInputElement.cpp
+++ b/Source/web/WebInputElement.cpp
@@ -77,11 +77,6 @@ bool WebInputElement::isCheckbox() const
return constUnwrap<HTMLInputElement>()->isCheckbox();
}
-bool WebInputElement::autoComplete() const
-{
- return constUnwrap<HTMLInputElement>()->shouldAutocomplete();
-}
-
int WebInputElement::maxLength() const
{
return constUnwrap<HTMLInputElement>()->maxLength();
@@ -102,36 +97,11 @@ int WebInputElement::size() const
return constUnwrap<HTMLInputElement>()->size();
}
-void WebInputElement::setValue(const WebString& value, bool sendChangeEvent)
-{
- unwrap<HTMLInputElement>()->setValue(value, sendChangeEvent ? DispatchChangeEvent : DispatchNoEvent);
-}
-
-WebString WebInputElement::value() const
-{
- return constUnwrap<HTMLInputElement>()->value();
-}
-
void WebInputElement::setEditingValue(const WebString& value)
{
unwrap<HTMLInputElement>()->setEditingValue(value);
}
-void WebInputElement::setSuggestedValue(const WebString& value)
-{
- unwrap<HTMLInputElement>()->setSuggestedValue(value);
-}
-
-WebString WebInputElement::suggestedValue() const
-{
- return constUnwrap<HTMLInputElement>()->suggestedValue();
-}
-
-void WebInputElement::setSelectionRange(int start, int end)
-{
- unwrap<HTMLInputElement>()->setSelectionRange(start, end);
-}
-
bool WebInputElement::isValidValue(const WebString& value) const
{
return constUnwrap<HTMLInputElement>()->isValidValue(value);
@@ -211,11 +181,6 @@ int WebInputElement::defaultMaxLength()
return HTMLInputElement::maximumLength;
}
-WebString WebInputElement::directionForFormData() const
-{
- return constUnwrap<HTMLInputElement>()->directionForFormData();
-}
-
// FIXME: Remove this once password_generation_manager.h stops using it.
WebElement WebInputElement::decorationElementFor(void*)
{
« no previous file with comments | « Source/web/WebFormControlElement.cpp ('k') | Source/web/WebSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698