brightray namespaced frameAutosaveName
This commit is contained in:
parent
92a4b25e47
commit
3acba90225
1 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ void SetActive(content::WebContents* web_contents, bool active) {
|
||||||
_private->window.delegate = self;
|
_private->window.delegate = self;
|
||||||
_private->window.releasedWhenClosed = NO;
|
_private->window.releasedWhenClosed = NO;
|
||||||
_private->window.title = @"Developer Tools";
|
_private->window.title = @"Developer Tools";
|
||||||
_private->window.frameAutosaveName = @"Developer Tools";
|
_private->window.frameAutosaveName = @"brightray.developer.tools";
|
||||||
[_private->window setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
|
[_private->window setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
|
||||||
[_private->window setContentBorderThickness:24 forEdge:NSMaxYEdge];
|
[_private->window setContentBorderThickness:24 forEdge:NSMaxYEdge];
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ void SetActive(content::WebContents* web_contents, bool active) {
|
||||||
if (!devToolsWebContents)
|
if (!devToolsWebContents)
|
||||||
return NO;
|
return NO;
|
||||||
auto devToolsView = devToolsWebContents->GetView()->GetNativeView();
|
auto devToolsView = devToolsWebContents->GetView()->GetNativeView();
|
||||||
|
|
||||||
return _private->window && devToolsView.window == _private->window;
|
return _private->window && devToolsView.window == _private->window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ void SetActive(content::WebContents* web_contents, bool active) {
|
||||||
SetActive(inspectable_contents->devtools_web_contents(), active);
|
SetActive(inspectable_contents->devtools_web_contents(), active);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Changes the window that hosts us always affect our main web contents. If the dev tools are also
|
// Changes the window that hosts us always affect our main web contents. If the dev tools are also
|
||||||
// hosted in this window, they are affected too.
|
// hosted in this window, they are affected too.
|
||||||
SetActive(inspectable_contents->GetWebContents(), active);
|
SetActive(inspectable_contents->GetWebContents(), active);
|
||||||
|
|
Loading…
Add table
Reference in a new issue