Add NativeWindow::SetContentView
This commit is contained in:
parent
13473ee138
commit
56735d4ff5
6 changed files with 81 additions and 68 deletions
|
@ -53,13 +53,14 @@ class NativeWindow : public base::SupportsUserData {
|
|||
|
||||
// Create window with existing WebContents, the caller is responsible for
|
||||
// managing the window's live.
|
||||
static NativeWindow* Create(
|
||||
brightray::InspectableWebContents* inspectable_web_contents,
|
||||
const mate::Dictionary& options,
|
||||
NativeWindow* parent = nullptr);
|
||||
static NativeWindow* Create(const mate::Dictionary& options,
|
||||
NativeWindow* parent = nullptr);
|
||||
|
||||
void InitFromOptions(const mate::Dictionary& options);
|
||||
|
||||
virtual void SetContentView(
|
||||
brightray::InspectableWebContents* web_contents) = 0;
|
||||
|
||||
virtual void Close() = 0;
|
||||
virtual void CloseImmediately() = 0;
|
||||
virtual bool IsClosed() const { return is_closed_; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue