@raydiant/playlist-window-manager 0.0.0-test-24 → 0.0.0-test-26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -426,9 +426,9 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
426
426
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds3: bounds are equal");
|
|
427
427
|
return;
|
|
428
428
|
}
|
|
429
|
-
if (
|
|
430
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds4:
|
|
431
|
-
window.
|
|
429
|
+
if ((0, boundUtils_1.isFullscreen)(bounds) !== window.isFullScreen()) {
|
|
430
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds4: setFullScreen");
|
|
431
|
+
window.setFullScreen((0, boundUtils_1.isFullscreen)(bounds));
|
|
432
432
|
}
|
|
433
433
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds5: ".concat(JSON.stringify({
|
|
434
434
|
fullscreen: window.isFullScreen(),
|
|
@@ -437,9 +437,9 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
437
437
|
contentBounds: window.getContentBounds(),
|
|
438
438
|
normalBounds: window.getNormalBounds(),
|
|
439
439
|
})));
|
|
440
|
-
if ((0, boundUtils_1.
|
|
441
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds6:
|
|
442
|
-
window.
|
|
440
|
+
if (!(0, boundUtils_1.areBoundsEqual)(window.getBounds(), bounds)) {
|
|
441
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds6: setBounds");
|
|
442
|
+
window.setBounds(bounds);
|
|
443
443
|
}
|
|
444
444
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds7: ".concat(JSON.stringify({
|
|
445
445
|
fullscreen: window.isFullScreen(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydiant/playlist-window-manager",
|
|
3
|
-
"version": "0.0.0-test-
|
|
3
|
+
"version": "0.0.0-test-26",
|
|
4
4
|
"description": "Window manager for playlist playback.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@types/jschannel": "^1.0.1",
|
|
25
25
|
"@types/lodash": "^4.14.200",
|
|
26
26
|
"@types/uuid": "8.3.0",
|
|
27
|
-
"electron": "
|
|
27
|
+
"electron": "10.1.5",
|
|
28
28
|
"jest": "^24.8.0",
|
|
29
29
|
"ts-jest": "^24.0.2",
|
|
30
30
|
"typescript": "^4.1.2"
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
screen,
|
|
7
7
|
IpcMainEvent,
|
|
8
8
|
Event,
|
|
9
|
-
|
|
9
|
+
Details,
|
|
10
10
|
BrowserWindowConstructorOptions,
|
|
11
11
|
BrowserViewConstructorOptions,
|
|
12
12
|
} from 'electron';
|
|
@@ -35,10 +35,7 @@ interface BrowserWindowRendererWindow {
|
|
|
35
35
|
payload?: any
|
|
36
36
|
) => void;
|
|
37
37
|
unresponsiveCallback: () => void;
|
|
38
|
-
renderProcessGoneCallback: (
|
|
39
|
-
event: Event,
|
|
40
|
-
details: RenderProcessGoneDetails
|
|
41
|
-
) => void;
|
|
38
|
+
renderProcessGoneCallback: (event: Event, details: Details) => void;
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
interface BrowserWindowRendererOptions {
|
|
@@ -183,10 +180,7 @@ export default class BrowserWindowRenderer
|
|
|
183
180
|
);
|
|
184
181
|
},
|
|
185
182
|
|
|
186
|
-
renderProcessGoneCallback: (
|
|
187
|
-
_: Event,
|
|
188
|
-
details: RenderProcessGoneDetails
|
|
189
|
-
) => {
|
|
183
|
+
renderProcessGoneCallback: (_: Event, details: Details) => {
|
|
190
184
|
this.logger.error(
|
|
191
185
|
`Window received 'render-process-gone' event. Reason: ${details.reason}`,
|
|
192
186
|
{ windowId }
|
|
@@ -553,11 +547,11 @@ export default class BrowserWindowRenderer
|
|
|
553
547
|
return;
|
|
554
548
|
}
|
|
555
549
|
|
|
556
|
-
if (
|
|
550
|
+
if (isFullscreen(bounds) !== window.isFullScreen()) {
|
|
557
551
|
this.logger.info(
|
|
558
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds4:
|
|
552
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds4: setFullScreen`
|
|
559
553
|
);
|
|
560
|
-
window.
|
|
554
|
+
window.setFullScreen(isFullscreen(bounds));
|
|
561
555
|
}
|
|
562
556
|
|
|
563
557
|
this.logger.info(
|
|
@@ -572,11 +566,11 @@ export default class BrowserWindowRenderer
|
|
|
572
566
|
)}`
|
|
573
567
|
);
|
|
574
568
|
|
|
575
|
-
if (
|
|
569
|
+
if (!areBoundsEqual(window.getBounds(), bounds)) {
|
|
576
570
|
this.logger.info(
|
|
577
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds6:
|
|
571
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds6: setBounds`
|
|
578
572
|
);
|
|
579
|
-
window.
|
|
573
|
+
window.setBounds(bounds);
|
|
580
574
|
}
|
|
581
575
|
|
|
582
576
|
this.logger.info(
|