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

@ -29,6 +29,10 @@ void InspectableWebContentsViewMac::CloseDevTools() {
[view_ setDevToolsVisible:NO];
}
bool InspectableWebContentsViewMac::IsDevToolsOpened() {
return [view_ isDevToolsVisible];
}
bool InspectableWebContentsViewMac::SetDockSide(const std::string& side) {
return [view_ setDockSide:side];
}