Get the status of devtools from brightray, fixed #27.

This commit is contained in:
Cheng Zhao 2013-11-05 10:32:45 +08:00
parent 8bb3b53833
commit dc1a8b644a
6 changed files with 15 additions and 8 deletions

View file

@ -141,6 +141,10 @@ void NativeWindow::CloseDevTools() {
inspectable_web_contents()->GetView()->CloseDevTools();
}
bool NativeWindow::IsDevToolsOpened() {
return inspectable_web_contents()->IsDevToolsOpened();
}
void NativeWindow::InspectElement(int x, int y) {
OpenDevTools();
content::RenderViewHost* rvh = GetWebContents()->GetRenderViewHost();