Add has_frame_ attribute for NativeWindow.
This commit is contained in:
parent
4223867dbc
commit
a5eb9ea08f
2 changed files with 6 additions and 0 deletions
|
@ -39,10 +39,13 @@ namespace atom {
|
|||
NativeWindow::NativeWindow(content::WebContents* web_contents,
|
||||
base::DictionaryValue* options)
|
||||
: content::WebContentsObserver(web_contents),
|
||||
has_frame_(true),
|
||||
is_closed_(false),
|
||||
not_responding_(false),
|
||||
inspectable_web_contents_(
|
||||
brightray::InspectableWebContents::Create(web_contents)) {
|
||||
options->GetBoolean(switches::kFrame, &has_frame_);
|
||||
|
||||
web_contents->SetDelegate(this);
|
||||
|
||||
WindowList::AddWindow(this);
|
||||
|
|
|
@ -165,6 +165,9 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
const content::NotificationSource& source,
|
||||
const content::NotificationDetails& details) OVERRIDE;
|
||||
|
||||
// Whether window has standard frame.
|
||||
bool has_frame_;
|
||||
|
||||
private:
|
||||
void RendererUnresponsiveDelayed();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue