Add support for the webkit-directory attribute (issue #958).

This commit is contained in:
YuTeh Shen
2015-03-24 21:14:30 +08:00
committed by Marshall Greenblatt
parent ae91d8f4e5
commit 505f11159a
2 changed files with 101 additions and 6 deletions

View File

@ -50,6 +50,7 @@ class WebInputEvent;
}
namespace net {
class DirectoryLister;
class URLRequest;
}
@ -580,6 +581,14 @@ class CefBrowserHostImpl : public CefBrowserHost,
int selected_accept_filter,
const std::vector<base::FilePath>& file_paths);
// Used with WebContentsDelegate::RunFileChooser when mode is
// content::FileChooserParams::UploadFolder.
void OnRunFileChooserUploadFolderDelegateCallback(
content::WebContents* web_contents,
const content::FileChooserParams::Mode mode,
int selected_accept_filter,
const std::vector<base::FilePath>& file_paths);
// Used with WebContentsDelegate::RunFileChooser to notify the WebContents.
void OnRunFileChooserDelegateCallback(
content::WebContents* web_contents,
@ -667,6 +676,9 @@ class CefBrowserHostImpl : public CefBrowserHost,
// True if a file chooser is currently pending.
bool file_chooser_pending_;
// Used for asynchronously listing directory contents.
scoped_ptr<net::DirectoryLister> lister_;
#if defined(USE_AURA)
// Widget hosting the web contents. It will be deleted automatically when the
// associated root window is destroyed.