Add API to get whether the devtools is opened.

This commit is contained in:
Cheng Zhao 2013-11-05 10:29:53 +08:00
parent afc627aae1
commit de7892cd6e
10 changed files with 24 additions and 2 deletions

View file

@ -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());