@raydiant/playlist-window-manager 0.0.0-test-17 → 0.0.0-test-20

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.
@@ -272,14 +272,28 @@ var BrowserWindowRenderer = /** @class */ (function () {
272
272
  }
273
273
  };
274
274
  BrowserWindowRenderer.prototype.showWindow = function (windowId, isFocused) {
275
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts showWindow1");
275
276
  var window = this.getWindow(windowId);
276
277
  if (!window) {
277
278
  throw new Error("Failed to show window, missing window id '".concat(windowId, "'"));
278
279
  }
279
280
  if (window.view instanceof electron_1.BrowserWindow) {
281
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts showWindow2: ".concat(JSON.stringify({
282
+ fullscreen: window.view.isFullScreen(),
283
+ bounds: window.view.getBounds(),
284
+ normalBounds: window.view.getNormalBounds(),
285
+ contentBounds: window.view.getContentBounds(),
286
+ })));
280
287
  if (window.view.isFullScreen()) {
281
- window.view.maximize();
288
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts showWindow3: setFullScreen(true)");
289
+ window.view.setFullScreen(true);
282
290
  }
291
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts showWindow4: ".concat(JSON.stringify({
292
+ fullscreen: window.view.isFullScreen(),
293
+ bounds: window.view.getBounds(),
294
+ normalBounds: window.view.getNormalBounds(),
295
+ contentBounds: window.view.getContentBounds(),
296
+ })));
283
297
  if (isFocused) {
284
298
  window.view.show();
285
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.0.0-test-17",
3
+ "version": "0.0.0-test-20",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -352,15 +352,41 @@ export default class BrowserWindowRenderer
352
352
  }
353
353
 
354
354
  public showWindow(windowId: string, isFocused: boolean) {
355
+ this.logger.info(
356
+ `playlist-window-manager/src/BrowserWindowRenderer.ts showWindow1`
357
+ );
355
358
  const window = this.getWindow(windowId);
356
359
  if (!window) {
357
360
  throw new Error(`Failed to show window, missing window id '${windowId}'`);
358
361
  }
359
362
 
360
363
  if (window.view instanceof BrowserWindow) {
364
+ this.logger.info(
365
+ `playlist-window-manager/src/BrowserWindowRenderer.ts showWindow2: ${JSON.stringify(
366
+ {
367
+ fullscreen: window.view.isFullScreen(),
368
+ bounds: window.view.getBounds(),
369
+ normalBounds: window.view.getNormalBounds(),
370
+ contentBounds: window.view.getContentBounds(),
371
+ }
372
+ )}`
373
+ );
361
374
  if (window.view.isFullScreen()) {
362
- window.view.maximize();
375
+ this.logger.info(
376
+ `playlist-window-manager/src/BrowserWindowRenderer.ts showWindow3: setFullScreen(true)`
377
+ );
378
+ window.view.setFullScreen(true);
363
379
  }
380
+ this.logger.info(
381
+ `playlist-window-manager/src/BrowserWindowRenderer.ts showWindow4: ${JSON.stringify(
382
+ {
383
+ fullscreen: window.view.isFullScreen(),
384
+ bounds: window.view.getBounds(),
385
+ normalBounds: window.view.getNormalBounds(),
386
+ contentBounds: window.view.getContentBounds(),
387
+ }
388
+ )}`
389
+ );
364
390
  if (isFocused) {
365
391
  window.view.show();
366
392
  } else {