win: Fix detecting attached modal dialog.
This commit is contained in:
parent
f4a2c12d75
commit
9ba7db8815
6 changed files with 37 additions and 19 deletions
|
@ -49,6 +49,7 @@ NativeWindow::NativeWindow(content::WebContents* web_contents,
|
|||
has_frame_(true),
|
||||
is_closed_(false),
|
||||
node_integration_("all"),
|
||||
has_dialog_attached_(false),
|
||||
weak_factory_(this),
|
||||
inspectable_web_contents_(
|
||||
brightray::InspectableWebContents::Create(web_contents)) {
|
||||
|
@ -158,6 +159,10 @@ void NativeWindow::InitFromOptions(base::DictionaryValue* options) {
|
|||
Show();
|
||||
}
|
||||
|
||||
bool NativeWindow::HasModalDialog() {
|
||||
return has_dialog_attached_;
|
||||
}
|
||||
|
||||
void NativeWindow::OpenDevTools() {
|
||||
inspectable_web_contents()->ShowDevTools();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue