OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |