feat: add activate option to webContents.openDevTools (#13852)
This commit is contained in:
parent
aafbd865bf
commit
d63a848011
13 changed files with 63 additions and 32 deletions
|
@ -55,7 +55,7 @@ class InspectableWebContentsImpl
|
|||
void ReleaseWebContents() override;
|
||||
void SetDevToolsWebContents(content::WebContents* devtools) override;
|
||||
void SetDockState(const std::string& state) override;
|
||||
void ShowDevTools() override;
|
||||
void ShowDevTools(bool activate) override;
|
||||
void CloseDevTools() override;
|
||||
bool IsDevToolsViewShowing() override;
|
||||
void AttachTo(scoped_refptr<content::DevToolsAgentHost>) override;
|
||||
|
@ -211,6 +211,7 @@ class InspectableWebContentsImpl
|
|||
gfx::Rect devtools_bounds_;
|
||||
bool can_dock_;
|
||||
std::string dock_state_;
|
||||
bool activate_ = true;
|
||||
|
||||
using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>;
|
||||
PendingRequestsMap pending_requests_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue