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

Side by Side Diff: Source/WebCore/html/FileInputType.cpp

Issue 11370004: Revert 123677 - Merge 123495 - Files from drag and file <input> should use getMIMETypeForExtension … (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 for (size_t i = 0; i < size; i++) { 280 for (size_t i = 0; i < size; i++) {
281 // Normalize backslashes to slashes before exposing the relative pat h to script. 281 // Normalize backslashes to slashes before exposing the relative pat h to script.
282 String relativePath = files[i].path.substring(rootLength).replace('\ \', '/'); 282 String relativePath = files[i].path.substring(rootLength).replace('\ \', '/');
283 fileList->append(File::createWithRelativePath(files[i].path, relativ ePath)); 283 fileList->append(File::createWithRelativePath(files[i].path, relativ ePath));
284 } 284 }
285 return fileList; 285 return fileList;
286 } 286 }
287 #endif 287 #endif
288 288
289 for (size_t i = 0; i < size; i++) 289 for (size_t i = 0; i < size; i++)
290 fileList->append(File::createWithName(files[i].path, files[i].displayNam e, File::AllContentTypes)); 290 fileList->append(File::createWithName(files[i].path, files[i].displayNam e));
291 return fileList; 291 return fileList;
292 } 292 }
293 293
294 bool FileInputType::isFileUpload() const 294 bool FileInputType::isFileUpload() const
295 { 295 {
296 return true; 296 return true;
297 } 297 }
298 298
299 void FileInputType::createShadowSubtree() 299 void FileInputType::createShadowSubtree()
300 { 300 {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 StringBuilder names; 439 StringBuilder names;
440 for (size_t i = 0; i < listSize; ++i) { 440 for (size_t i = 0; i < listSize; ++i) {
441 names.append(fileList->item(i)->name()); 441 names.append(fileList->item(i)->name());
442 if (i != listSize - 1) 442 if (i != listSize - 1)
443 names.append('\n'); 443 names.append('\n');
444 } 444 }
445 return names.toString(); 445 return names.toString();
446 } 446 }
447 447
448 } // namespace WebCore 448 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/fileapi/File.cpp ('k') | Source/WebCore/platform/chromium/ChromiumDataObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698