Enable creating window with existing web contents.
This commit is contained in:
parent
0b2b9d371e
commit
5fb5ce2251
6 changed files with 23 additions and 15 deletions
|
@ -42,9 +42,13 @@ class NativeWindow : public content::WebContentsDelegate,
|
|||
public:
|
||||
virtual ~NativeWindow();
|
||||
|
||||
static NativeWindow* Create(content::BrowserContext* browser_context,
|
||||
// Create window with existing WebContents.
|
||||
static NativeWindow* Create(content::WebContents* web_contents,
|
||||
base::DictionaryValue* options);
|
||||
|
||||
// Create window with new WebContents.
|
||||
static NativeWindow* Create(base::DictionaryValue* options);
|
||||
|
||||
void InitFromOptions(base::DictionaryValue* options);
|
||||
|
||||
virtual void Close() = 0;
|
||||
|
@ -90,7 +94,7 @@ class NativeWindow : public content::WebContentsDelegate,
|
|||
}
|
||||
|
||||
protected:
|
||||
explicit NativeWindow(content::BrowserContext* browser_context,
|
||||
explicit NativeWindow(content::WebContents* web_contents,
|
||||
base::DictionaryValue* options);
|
||||
|
||||
brightray::InspectableWebContents* inspectable_web_contents() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue