Merge pull request #111 from deepak1556/devtools_workspace_patch

delegate filesystem request calls
This commit is contained in:
Cheng Zhao 2015-06-05 10:32:10 +08:00
commit 3f2c2e3484
2 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,9 @@ class InspectableWebContentsDelegate {
virtual void DevToolsAppendToFile( virtual void DevToolsAppendToFile(
const std::string& url, const std::string& content) {} const std::string& url, const std::string& content) {}
virtual void DevToolsFocused() {} virtual void DevToolsFocused() {}
virtual void DevToolsAddFileSystem() {}
virtual void DevToolsRemoveFileSystem(
const std::string& file_system_path) {}
#if defined(USE_X11) #if defined(USE_X11)
// Called when creating devtools window. // Called when creating devtools window.

View file

@ -265,10 +265,14 @@ void InspectableWebContentsImpl::RequestFileSystems() {
} }
void InspectableWebContentsImpl::AddFileSystem() { void InspectableWebContentsImpl::AddFileSystem() {
if (delegate_)
delegate_->DevToolsAddFileSystem();
} }
void InspectableWebContentsImpl::RemoveFileSystem( void InspectableWebContentsImpl::RemoveFileSystem(
const std::string& file_system_path) { const std::string& file_system_path) {
if (delegate_)
delegate_->DevToolsRemoveFileSystem(file_system_path);
} }
void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions( void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions(