Get the status of devtools from brightray, fixed #27.
This commit is contained in:
parent
8bb3b53833
commit
dc1a8b644a
6 changed files with 15 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue