Add API to get whether the devtools is opened.
This commit is contained in:
parent
afc627aae1
commit
de7892cd6e
10 changed files with 24 additions and 2 deletions
|
@ -96,6 +96,10 @@ void InspectableWebContentsImpl::ShowDevTools() {
|
|||
view_->ShowDevTools();
|
||||
}
|
||||
|
||||
bool InspectableWebContentsImpl::IsDevToolsOpened() {
|
||||
return devtools_web_contents_ && view_->IsDevToolsOpened();
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::UpdateFrontendDockSide() {
|
||||
auto javascript = base::StringPrintf(
|
||||
"InspectorFrontendAPI.setDockSide(\"%s\")", dock_side_.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue