Commit c988f437 authored by hirono@chromium.org's avatar hirono@chromium.org

Add a flag to show if the FileChooserCompletion needs local paths or not.

BUG=126902
TEST=None

Review URL: https://codereview.chromium.org/637873006

git-svn-id: svn://svn.chromium.org/blink/trunk@183798 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a17911da
......@@ -614,6 +614,7 @@ void ChromeClientImpl::runOpenPanel(LocalFrame* frame, PassRefPtr<FileChooser> f
if (params.selectedFiles.size() > 0)
params.initialValue = params.selectedFiles[0];
params.useMediaCapture = fileChooser->settings().useMediaCapture;
params.needLocalPath = fileChooser->settings().allowsDirectoryUpload;
WebFileChooserCompletionImpl* chooserCompletion =
new WebFileChooserCompletionImpl(fileChooser);
......
......@@ -71,12 +71,18 @@ struct WebFileChooserParams {
// provided for compatibility reasons.
WebString capture;
bool useMediaCapture;
// Whether WebFileChooserCompletion needs local paths or not. If the result
// of file chooser is handled by the implementation of
// WebFileChooserCompletion that can handle files without local paths,
// 'false' should be specified to the flag.
bool needLocalPath;
WebFileChooserParams()
: multiSelect(false)
, directory(false)
, saveAs(false)
, useMediaCapture(false)
, needLocalPath(true)
{
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment