Fix IsDevToolsOpened when devtools is attched to pane on Linux.

This commit is contained in:
Cheng Zhao 2013-12-09 13:27:22 +00:00
parent a8c5911094
commit 7a5415a3b7

View file

@ -167,7 +167,10 @@ void InspectableWebContentsViewLinux::CloseDevTools() {
}
bool InspectableWebContentsViewLinux::IsDevToolsOpened() {
return devtools_window_ && IsWidgetAncestryVisible(devtools_window_);
auto devtools_web_contents =
inspectable_web_contents()->devtools_web_contents();
GtkWidget* devtools = devtools_web_contents->GetView()->GetNativeView();
return IsWidgetAncestryVisible(devtools);
}
bool InspectableWebContentsViewLinux::SetDockSide(const std::string& side) {