RESOLVED FIXED 88860
Refactor InputType::receiveDroppedFiles to take DragData
https://bugs.webkit.org/show_bug.cgi?id=88860
Summary Refactor InputType::receiveDroppedFiles to take DragData
Kinuko Yasuda
Reported 2012-06-12 04:42:06 PDT
This issue is splitted from bug 88293. Refactor InputType::receiveDroppedFiles to take DragData and move the code extracting files from DragData into FileInputType.cpp, to make it easier to extract more data from DragData for <input type=file> (like bug 88293 for directory drag-and-drop).
Attachments
Patch (7.34 KB, patch)
2012-06-12 04:45 PDT, Kinuko Yasuda
tkent: review+
Kinuko Yasuda
Comment 1 2012-06-12 04:45:48 PDT
Kent Tamura
Comment 2 2012-06-12 05:04:36 PDT
Comment on attachment 147058 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147058&action=review > Source/WebCore/html/FileInputType.h:67 > - virtual void receiveDroppedFiles(const Vector<String>&) OVERRIDE; > + virtual bool receiveDroppedFiles(const DragData*) OVERRIDE; had better add a comment explaining what is the return value.
Kent Tamura
Comment 3 2012-06-12 05:05:29 PDT
(In reply to comment #2) > (From update of attachment 147058 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=147058&action=review > > > Source/WebCore/html/FileInputType.h:67 > > - virtual void receiveDroppedFiles(const Vector<String>&) OVERRIDE; > > + virtual bool receiveDroppedFiles(const DragData*) OVERRIDE; > > had better add a comment explaining what is the return value. oh, not here. we had better add it to HTMLInputElement.h and InputType.h.
Kinuko Yasuda
Comment 4 2012-06-12 05:06:51 PDT
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 147058 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=147058&action=review > > > > > Source/WebCore/html/FileInputType.h:67 > > > - virtual void receiveDroppedFiles(const Vector<String>&) OVERRIDE; > > > + virtual bool receiveDroppedFiles(const DragData*) OVERRIDE; > > > > had better add a comment explaining what is the return value. > > oh, not here. we had better add it to HTMLInputElement.h and InputType.h. Will do. Thanks!
Kinuko Yasuda
Comment 5 2012-06-12 08:34:45 PDT
Note You need to log in before you can comment on or make changes to this bug.