force devtools to show as undocked.
This commit is contained in:
parent
45f4a25ac9
commit
6c3f065147
1 changed files with 3 additions and 0 deletions
|
@ -376,6 +376,9 @@ void WebContents::ExecuteJavaScript(const base::string16& code) {
|
||||||
|
|
||||||
void WebContents::OpenDevTools() {
|
void WebContents::OpenDevTools() {
|
||||||
inspectable_web_contents()->ShowDevTools();
|
inspectable_web_contents()->ShowDevTools();
|
||||||
|
|
||||||
|
// force the inspectable web contents to be undocked when it is opened.
|
||||||
|
inspectable_web_contents()->GetView()->SetIsDocked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebContents::SendIPCMessage(const base::string16& channel,
|
bool WebContents::SendIPCMessage(const base::string16& channel,
|
||||||
|
|
Loading…
Reference in a new issue