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

Issue 640723006: Pass the selected non-native file information from the browser to FileInputType. (Closed)

Created:
6 years, 2 months ago by hirono
Modified:
6 years, 2 months ago
Reviewers:
tkent
CC:
blink-reviews, tzik, blink-reviews-html_chromium.org, nhiroki, mkwst+moarreviews_chromium.org, dglazkov+blink, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Pass the selected non-native file information from the browser to FileInputType. Previously the blink accepts only native files as a result value of the file chooser. The information is conveyed to the FileInputType. Then FileInputType generates the File class instances from the information, and the instances are used to compose the form request. Thic CL adds non-native file support to the above code path. * Adds noo-native file information (file system URL and metadata) to structures representing selected file (FileChooserFileInfo, SelectedFileInfo). * When FileInputType generates the File class instances, let the class refer the non-native file information. * When FileInputType checks the change of selected files, let the class refer the non-native file information. BUG=126902 TEST=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183960

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Fixed. #

Patch Set 3 : Exclude the separated patch's lines #

Total comments: 8

Patch Set 4 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -15 lines) Patch
M Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fileapi/File.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/fileapi/File.cpp View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/fileapi/FileTest.cpp View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M Source/core/html/forms/FileInputType.h View 1 2 chunks +1 line, -1 line 0 comments Download
M Source/core/html/forms/FileInputType.cpp View 1 7 chunks +17 lines, -12 lines 0 comments Download
A Source/core/html/forms/FileInputTypeTest.cpp View 1 1 chunk +45 lines, -0 lines 0 comments Download
M Source/platform/FileChooser.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M Source/web/WebFileChooserCompletionImpl.cpp View 2 chunks +12 lines, -2 lines 0 comments Download
M public/web/WebFileChooserCompletion.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
hirono
PTAL the CL? Thank you!
6 years, 2 months ago (2014-10-16 11:52:01 UTC) #4
tkent
https://codereview.chromium.org/640723006/diff/40001/Source/core/html/forms/FileInputType.cpp File Source/core/html/forms/FileInputType.cpp (right): https://codereview.chromium.org/640723006/diff/40001/Source/core/html/forms/FileInputType.cpp#newcode248 Source/core/html/forms/FileInputType.cpp:248: for (size_t i = 0; i < size; i++) ...
6 years, 2 months ago (2014-10-17 00:20:22 UTC) #5
pwnall-personal
https://codereview.chromium.org/640723006/diff/40001/public/web/WebFileChooserCompletion.h File public/web/WebFileChooserCompletion.h (right): https://codereview.chromium.org/640723006/diff/40001/public/web/WebFileChooserCompletion.h#newcode56 public/web/WebFileChooserCompletion.h:56: double modificationTime; On 2014/10/17 00:20:22, tkent wrote: > Please ...
6 years, 2 months ago (2014-10-17 08:52:43 UTC) #6
hirono
Thanks! https://codereview.chromium.org/640723006/diff/40001/Source/core/html/forms/FileInputType.cpp File Source/core/html/forms/FileInputType.cpp (right): https://codereview.chromium.org/640723006/diff/40001/Source/core/html/forms/FileInputType.cpp#newcode248 Source/core/html/forms/FileInputType.cpp:248: for (size_t i = 0; i < size; ...
6 years, 2 months ago (2014-10-17 09:30:59 UTC) #7
tkent
lgtm https://codereview.chromium.org/640723006/diff/80001/Source/core/fileapi/File.cpp File Source/core/fileapi/File.cpp (right): https://codereview.chromium.org/640723006/diff/80001/Source/core/fileapi/File.cpp#newcode304 Source/core/fileapi/File.cpp:304: // Compare backing file. The comment adds nothing ...
6 years, 2 months ago (2014-10-20 00:48:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640723006/100001
6 years, 2 months ago (2014-10-20 03:47:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640723006/100001
6 years, 2 months ago (2014-10-20 03:49:52 UTC) #13
hirono
Thanks! https://codereview.chromium.org/640723006/diff/80001/Source/core/fileapi/File.cpp File Source/core/fileapi/File.cpp (right): https://codereview.chromium.org/640723006/diff/80001/Source/core/fileapi/File.cpp#newcode304 Source/core/fileapi/File.cpp:304: // Compare backing file. On 2014/10/20 00:48:48, tkent ...
6 years, 2 months ago (2014-10-20 03:50:06 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 04:48:33 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as 183960

Powered by Google App Engine
This is Rietveld 408576698