| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "core/html/FileInputType.h" | 23 #include "core/html/FileInputType.h" |
| 24 | 24 |
| 25 #include "HTMLNames.h" | 25 #include "HTMLNames.h" |
| 26 #include "bindings/v8/ScriptController.h" | 26 #include "bindings/v8/ScriptController.h" |
| 27 #include "core/dom/Event.h" | 27 #include "core/dom/Event.h" |
| 28 #include "core/dom/shadow/ElementShadow.h" | |
| 29 #include "core/dom/shadow/ShadowRoot.h" | 28 #include "core/dom/shadow/ShadowRoot.h" |
| 30 #include "core/fileapi/File.h" | 29 #include "core/fileapi/File.h" |
| 31 #include "core/fileapi/FileList.h" | 30 #include "core/fileapi/FileList.h" |
| 32 #include "core/html/FormController.h" | 31 #include "core/html/FormController.h" |
| 33 #include "core/html/FormDataList.h" | 32 #include "core/html/FormDataList.h" |
| 34 #include "core/html/HTMLInputElement.h" | 33 #include "core/html/HTMLInputElement.h" |
| 35 #include "core/html/InputTypeNames.h" | 34 #include "core/html/InputTypeNames.h" |
| 36 #include "core/page/Chrome.h" | 35 #include "core/page/Chrome.h" |
| 37 #include "core/page/Frame.h" | |
| 38 #include "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
| 39 #include "core/platform/DragData.h" | 37 #include "core/platform/DragData.h" |
| 40 #include "core/platform/FileSystem.h" | 38 #include "core/platform/FileSystem.h" |
| 41 #include "core/platform/LocalizedStrings.h" | 39 #include "core/platform/LocalizedStrings.h" |
| 42 #include "core/platform/graphics/Icon.h" | 40 #include "core/platform/graphics/Icon.h" |
| 43 #include "core/rendering/RenderFileUploadControl.h" | 41 #include "core/rendering/RenderFileUploadControl.h" |
| 44 #include <wtf/PassOwnPtr.h> | 42 #include <wtf/PassOwnPtr.h> |
| 45 #include <wtf/text/StringBuilder.h> | 43 #include <wtf/text/StringBuilder.h> |
| 46 #include <wtf/text/WTFString.h> | 44 #include <wtf/text/WTFString.h> |
| 47 | 45 |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 StringBuilder names; | 445 StringBuilder names; |
| 448 for (size_t i = 0; i < listSize; ++i) { | 446 for (size_t i = 0; i < listSize; ++i) { |
| 449 names.append(fileList->item(i)->name()); | 447 names.append(fileList->item(i)->name()); |
| 450 if (i != listSize - 1) | 448 if (i != listSize - 1) |
| 451 names.append('\n'); | 449 names.append('\n'); |
| 452 } | 450 } |
| 453 return names.toString(); | 451 return names.toString(); |
| 454 } | 452 } |
| 455 | 453 |
| 456 } // namespace WebCore | 454 } // namespace WebCore |
| OLD | NEW |