Add "parent" option for BrowserWindow
This commit is contained in:
parent
473413e874
commit
85ba382027
8 changed files with 68 additions and 11 deletions
|
@ -81,7 +81,8 @@ class NativeWindow : public base::SupportsUserData,
|
|||
// managing the window's live.
|
||||
static NativeWindow* Create(
|
||||
brightray::InspectableWebContents* inspectable_web_contents,
|
||||
const mate::Dictionary& options);
|
||||
const mate::Dictionary& options,
|
||||
NativeWindow* parent = nullptr);
|
||||
|
||||
// Find a window from its WebContents
|
||||
static NativeWindow* FromWebContents(content::WebContents* web_contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue