(page, window)
| 186 | } |
| 187 | |
| 188 | handleWindowState (page, window) { |
| 189 | window.on('resize', debounce(() => { |
| 190 | const bounds = window.getBounds() |
| 191 | this.emit('window-resized', { page, bounds }) |
| 192 | }, 500)) |
| 193 | |
| 194 | window.on('move', debounce(() => { |
| 195 | const bounds = window.getBounds() |
| 196 | this.emit('window-moved', { page, bounds }) |
| 197 | }, 500)) |
| 198 | } |
| 199 | |
| 200 | handleWindowClose (pageOptions, page, window) { |
| 201 | window.on('close', (event) => { |