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

Unified Diff: third_party/WebKit/Source/core/html/forms/FileInputType.cpp

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/FileInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
index f234817b723628154589bdb26ba389e0f9c1ea06..0d6b38e4894ad3a796b841e0694b8470f3e9aa18 100644
--- a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
@@ -157,6 +157,10 @@ LayoutObject* FileInputType::createLayoutObject(const ComputedStyle&) const {
return new LayoutFileUploadControl(&element());
}
+InputType::ValueMode FileInputType::valueMode() const {
+ return ValueMode::kFilename;
+}
+
bool FileInputType::canSetStringValue() const {
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/FileInputType.h ('k') | third_party/WebKit/Source/core/html/forms/HiddenInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698