mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: emit devtools-open-url event for DevTools link selection (#36774)
* feat: emit event for DevTools link selection * chore: devtools-open-in-new-tab -> devtools-open-url
This commit is contained in:
@@ -3825,6 +3825,10 @@ void WebContents::DevToolsStopIndexing(int request_id) {
|
||||
devtools_indexing_jobs_.erase(it);
|
||||
}
|
||||
|
||||
void WebContents::DevToolsOpenInNewTab(const std::string& url) {
|
||||
Emit("devtools-open-url", url);
|
||||
}
|
||||
|
||||
void WebContents::DevToolsSearchInPath(int request_id,
|
||||
const std::string& file_system_path,
|
||||
const std::string& query) {
|
||||
|
||||
@@ -704,6 +704,7 @@ class WebContents : public ExclusiveAccessContext,
|
||||
void DevToolsIndexPath(int request_id,
|
||||
const std::string& file_system_path,
|
||||
const std::string& excluded_folders_message) override;
|
||||
void DevToolsOpenInNewTab(const std::string& url) override;
|
||||
void DevToolsStopIndexing(int request_id) override;
|
||||
void DevToolsSearchInPath(int request_id,
|
||||
const std::string& file_system_path,
|
||||
|
||||
Reference in New Issue
Block a user