| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 Vector<String> paths; | 296 Vector<String> paths; |
| 297 for (unsigned i = 0; i < m_fileList->length(); ++i) | 297 for (unsigned i = 0; i < m_fileList->length(); ++i) |
| 298 paths.append(m_fileList->item(i)->path()); | 298 paths.append(m_fileList->item(i)->path()); |
| 299 | 299 |
| 300 if (input->renderer()) | 300 if (input->renderer()) |
| 301 input->renderer()->repaint(); | 301 input->renderer()->repaint(); |
| 302 | 302 |
| 303 if (pathsChanged) { | 303 if (pathsChanged) { |
| 304 // This call may cause destruction of this instance. | 304 // This call may cause destruction of this instance. |
| 305 // input instance is safe since it is ref-counted. | 305 // input instance is safe since it is ref-counted. |
| 306 input->HTMLElement::dispatchChangeEvent(); | 306 input->dispatchChangeEvent(); |
| 307 } | 307 } |
| 308 input->setChangedSinceLastFormControlChangeEvent(false); | 308 input->setChangedSinceLastFormControlChangeEvent(false); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void FileInputType::filesChosen(const Vector<FileChooserFileInfo>& files) | 311 void FileInputType::filesChosen(const Vector<FileChooserFileInfo>& files) |
| 312 { | 312 { |
| 313 setFiles(createFileList(files)); | 313 setFiles(createFileList(files)); |
| 314 } | 314 } |
| 315 | 315 |
| 316 void FileInputType::receiveDropForDirectoryUpload(const Vector<String>& paths) | 316 void FileInputType::receiveDropForDirectoryUpload(const Vector<String>& paths) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 StringBuilder names; | 372 StringBuilder names; |
| 373 for (size_t i = 0; i < listSize; ++i) { | 373 for (size_t i = 0; i < listSize; ++i) { |
| 374 names.append(fileList->item(i)->name()); | 374 names.append(fileList->item(i)->name()); |
| 375 if (i != listSize - 1) | 375 if (i != listSize - 1) |
| 376 names.append('\n'); | 376 names.append('\n'); |
| 377 } | 377 } |
| 378 return names.toString(); | 378 return names.toString(); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace WebCore | 381 } // namespace WebCore |
| OLD | NEW |