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

Unified Diff: third_party/WebKit/Source/core/html/forms/InputType.h

Issue 2424983004: Introduce enum InputType::ValueMode. (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/core/html/forms/InputType.h
diff --git a/third_party/WebKit/Source/core/html/forms/InputType.h b/third_party/WebKit/Source/core/html/forms/InputType.h
index 7b6e072bb4afdfcee9cf41ab8af5a2a06b62bf7f..54529a7ceeb9447c7df907ed5064e79b5320b8ba 100644
--- a/third_party/WebKit/Source/core/html/forms/InputType.h
+++ b/third_party/WebKit/Source/core/html/forms/InputType.h
@@ -95,6 +95,10 @@ class CORE_EXPORT InputType : public GarbageCollectedFinalized<InputType> {
// is called.
virtual String defaultValue() const;
+ // https://html.spec.whatwg.org/multipage/forms.html#dom-input-value
+ enum class ValueMode { kValue, kDefault, kDefaultOn, kFilename };
+ virtual ValueMode valueMode() const = 0;
+
virtual double valueAsDate() const;
virtual void setValueAsDate(double, ExceptionState&) const;
virtual double valueAsDouble() const;
@@ -176,7 +180,6 @@ class CORE_EXPORT InputType : public GarbageCollectedFinalized<InputType> {
virtual bool canSetSuggestedValue();
virtual bool shouldSendChangeEventAfterCheckedChanged();
virtual bool canSetValue(const String&);
- virtual bool storesValueSeparateFromAttribute();
virtual void setValue(const String&,
bool valueChanged,
TextFieldEventBehavior);
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp ('k') | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698