allow delegate to handle file system indexing requests
This commit is contained in:
parent
8e94d5ab0f
commit
2db138f2dc
2 changed files with 13 additions and 0 deletions
|
@ -20,6 +20,13 @@ class InspectableWebContentsDelegate {
|
||||||
const base::FilePath& file_system_path) {}
|
const base::FilePath& file_system_path) {}
|
||||||
virtual void DevToolsRemoveFileSystem(
|
virtual void DevToolsRemoveFileSystem(
|
||||||
const base::FilePath& file_system_path) {}
|
const base::FilePath& file_system_path) {}
|
||||||
|
virtual void DevToolsIndexPath(
|
||||||
|
int request_id, const std::string& file_system_path) {}
|
||||||
|
virtual void DevToolsStopIndexing(int request_id) {}
|
||||||
|
virtual void DevToolsSearchInPath(
|
||||||
|
int request_id,
|
||||||
|
const std::string& file_system_path,
|
||||||
|
const std::string& query) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace brightray
|
} // namespace brightray
|
||||||
|
|
|
@ -459,15 +459,21 @@ void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions(
|
||||||
|
|
||||||
void InspectableWebContentsImpl::IndexPath(
|
void InspectableWebContentsImpl::IndexPath(
|
||||||
int request_id, const std::string& file_system_path) {
|
int request_id, const std::string& file_system_path) {
|
||||||
|
if (delegate_)
|
||||||
|
delegate_->DevToolsIndexPath(request_id, file_system_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContentsImpl::StopIndexing(int request_id) {
|
void InspectableWebContentsImpl::StopIndexing(int request_id) {
|
||||||
|
if (delegate_)
|
||||||
|
delegate_->DevToolsStopIndexing(request_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContentsImpl::SearchInPath(
|
void InspectableWebContentsImpl::SearchInPath(
|
||||||
int request_id,
|
int request_id,
|
||||||
const std::string& file_system_path,
|
const std::string& file_system_path,
|
||||||
const std::string& query) {
|
const std::string& query) {
|
||||||
|
if (delegate_)
|
||||||
|
delegate_->DevToolsSearchInPath(request_id, file_system_path, query);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContentsImpl::SetWhitelistedShortcuts(const std::string& message) {
|
void InspectableWebContentsImpl::SetWhitelistedShortcuts(const std::string& message) {
|
||||||
|
|
Loading…
Reference in a new issue