Merge pull request #111 from deepak1556/devtools_workspace_patch
delegate filesystem request calls
This commit is contained in:
commit
3f2c2e3484
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