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

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

Issue 24246011: Move form-related 78 files to core/html/forms/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/forms/FileInputType.h ('k') | Source/core/html/forms/FormController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/FileInputType.cpp
diff --git a/Source/core/html/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp
similarity index 98%
rename from Source/core/html/FileInputType.cpp
rename to Source/core/html/forms/FileInputType.cpp
index cdf47352dab5c993773e417d73ad8d9e9e3fe439..e6018cdf38fd1defe5253315562ddc9455f39782 100644
--- a/Source/core/html/FileInputType.cpp
+++ b/Source/core/html/forms/FileInputType.cpp
@@ -20,21 +20,21 @@
*/
#include "config.h"
-#include "core/html/FileInputType.h"
+#include "core/html/forms/FileInputType.h"
#include "HTMLNames.h"
+#include "RuntimeEnabledFeatures.h"
#include "bindings/v8/ExceptionStatePlaceholder.h"
#include "bindings/v8/ScriptController.h"
#include "core/dom/Event.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/fileapi/File.h"
#include "core/fileapi/FileList.h"
-#include "core/html/FormController.h"
#include "core/html/FormDataList.h"
#include "core/html/HTMLInputElement.h"
-#include "core/html/InputTypeNames.h"
+#include "core/html/forms/FormController.h"
+#include "core/html/forms/InputTypeNames.h"
#include "core/page/Chrome.h"
-#include "RuntimeEnabledFeatures.h"
#include "core/platform/DragData.h"
#include "core/platform/FileSystem.h"
#include "core/platform/LocalizedStrings.h"
@@ -275,9 +275,9 @@ void FileInputType::setFiles(PassRefPtr<FileList> files)
RefPtr<HTMLInputElement> input = element();
bool pathsChanged = false;
- if (files->length() != m_fileList->length())
+ if (files->length() != m_fileList->length()) {
pathsChanged = true;
- else {
+ } else {
for (unsigned i = 0; i < files->length(); ++i) {
if (files->item(i)->path() != m_fileList->item(i)->path()) {
pathsChanged = true;
@@ -345,9 +345,9 @@ bool FileInputType::receiveDroppedFiles(const DragData* dragData)
for (unsigned i = 0; i < paths.size(); ++i)
files.append(FileChooserFileInfo(paths[i]));
- if (input->fastHasAttribute(multipleAttr))
+ if (input->fastHasAttribute(multipleAttr)) {
filesChosen(files);
- else {
+ } else {
Vector<FileChooserFileInfo> firstFileOnly;
firstFileOnly.append(files[0]);
filesChosen(firstFileOnly);
« no previous file with comments | « Source/core/html/forms/FileInputType.h ('k') | Source/core/html/forms/FormController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698