delegate filesystem request calls
This commit is contained in:
parent
894cc64276
commit
62f860123d
2 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,9 @@ class InspectableWebContentsDelegate {
|
|||
virtual void DevToolsAppendToFile(
|
||||
const std::string& url, const std::string& content) {}
|
||||
virtual void DevToolsFocused() {}
|
||||
virtual void DevToolsAddFileSystem() {}
|
||||
virtual void DevToolsRemoveFileSystem(
|
||||
const std::string& file_system_path) {}
|
||||
|
||||
#if defined(USE_X11)
|
||||
// Called when creating devtools window.
|
||||
|
|
|
@ -265,10 +265,14 @@ void InspectableWebContentsImpl::RequestFileSystems() {
|
|||
}
|
||||
|
||||
void InspectableWebContentsImpl::AddFileSystem() {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsAddFileSystem();
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::RemoveFileSystem(
|
||||
const std::string& file_system_path) {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsRemoveFileSystem(file_system_path);
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions(
|
||||
|
|
Loading…
Reference in a new issue