mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Merge pull request #128 from deepak1556/inspectable_web_contents_api_patch
fix devtools workspace api
This commit is contained in:
@@ -14,9 +14,10 @@ class InspectableWebContentsDelegate {
|
||||
const std::string& url, const std::string& content, bool save_as) {}
|
||||
virtual void DevToolsAppendToFile(
|
||||
const std::string& url, const std::string& content) {}
|
||||
virtual void DevToolsAddFileSystem() {}
|
||||
virtual void DevToolsAddFileSystem(
|
||||
const base::FilePath& file_system_path) {}
|
||||
virtual void DevToolsRemoveFileSystem(
|
||||
const std::string& file_system_path) {}
|
||||
const base::FilePath& file_system_path) {}
|
||||
};
|
||||
|
||||
} // namespace brightray
|
||||
|
||||
@@ -384,13 +384,14 @@ void InspectableWebContentsImpl::RequestFileSystems() {
|
||||
|
||||
void InspectableWebContentsImpl::AddFileSystem() {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsAddFileSystem();
|
||||
delegate_->DevToolsAddFileSystem(base::FilePath());
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::RemoveFileSystem(
|
||||
const std::string& file_system_path) {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsRemoveFileSystem(file_system_path);
|
||||
delegate_->DevToolsRemoveFileSystem(
|
||||
base::FilePath::FromUTF8Unsafe(file_system_path));
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions(
|
||||
|
||||
Reference in New Issue
Block a user