mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
* feat: save/restore window state * cleanup * remove constructor option * refactor: apply suggestions from code review Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: forward declare prefservice * refactor: remove constructor option * refactor: save window state on move/resize instead of moved/resized * feat: resave window state after construction * test: add basic window save tests * test: add work area tests * test: asynchronous batching behavior * docs: add windowStateRestoreOptions to BaseWindowConstructorOptions * chore: move includes to main block * Update spec/api-browser-window-spec.ts Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * docs: update docs/api/structures/base-window-options.md Co-authored-by: Erick Zhao <erick@hotmail.ca> * fix: preserve original bounds during window state save in special modes * feat: save kiosk state in window preferences * chore: remove ts-expect-error * test: check hasCapturableScreen before running tests * test: remove multimonitor tests * test: add missing hasCapturableScreen checks before tests * docs: add blurb on saving mechanism * feat: add debounce window of 200ms to saveWindowState * docs: remove blurb until finalized * style: convert constants from snake_case to camelCase * refactor: initialize prefs_ only if window state is configured to be saved/restored * refactor: rename window states key * refactor: store in application-level Local State instead of browser context * refactor: switch to more accurate function names * fix: add dcheck for browser_process * fix: flush window state to avoid race condition * refactor: change stateId to name * refactor: change windowStateRestoreOptions to windowStatePersistence * Update docs/api/structures/base-window-options.md Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * fix: add warning when window state persistence enabled without window name * docs: lowercase capital B for consistency --------- Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com> Co-authored-by: Erick Zhao <erick@hotmail.ca>
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"name": "electron-test-main",
|
|
"productName": "Electron Test Main",
|
|
"main": "index.js",
|
|
"version": "0.1.0",
|
|
"scripts": {
|
|
"node-gyp-install": "node-gyp install"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-ci/echo": "*",
|
|
"@electron-ci/external-ab": "*",
|
|
"@electron-ci/is-valid-window": "*",
|
|
"@electron-ci/osr-gpu": "*",
|
|
"@electron-ci/uv-dlopen": "*",
|
|
"@electron-ci/virtual-display": "*",
|
|
"@electron/fuses": "^1.8.0",
|
|
"@electron/packager": "^18.3.2",
|
|
"@types/basic-auth": "^1.1.8",
|
|
"@types/busboy": "^1.5.4",
|
|
"@types/chai": "^4.3.19",
|
|
"@types/chai-as-promised": "^7.1.3",
|
|
"@types/dirty-chai": "^2.0.5",
|
|
"@types/express": "^4.17.13",
|
|
"@types/mocha": "^7.0.2",
|
|
"@types/send": "^0.14.5",
|
|
"@types/sinon": "^9.0.4",
|
|
"@types/uuid": "^3.4.6",
|
|
"@types/w3c-web-serial": "^1.0.7",
|
|
"@types/ws": "^7.2.0",
|
|
"abstract-socket": "github:deepak1556/node-abstractsocket#928cc591decd12aff7dad96449da8afc29832c19",
|
|
"basic-auth": "^2.0.1",
|
|
"busboy": "^1.6.0",
|
|
"chai": "^4.2.0",
|
|
"chai-as-promised": "^7.1.1",
|
|
"coffeescript": "^2.4.1",
|
|
"dbus-native": "github:nornagon/dbus-native#master",
|
|
"dirty-chai": "^2.0.1",
|
|
"express": "^4.20.0",
|
|
"graceful-fs": "^4.1.15",
|
|
"mkdirp": "^0.5.1",
|
|
"mocha": "^10.0.0",
|
|
"mocha-junit-reporter": "^1.18.0",
|
|
"mocha-multi-reporters": "^1.1.7",
|
|
"pdfjs-dist": "4.2.67",
|
|
"ps-list": "^7.0.0",
|
|
"q": "^1.5.1",
|
|
"send": "^0.19.0",
|
|
"sinon": "^9.0.1",
|
|
"uuid": "^3.3.3",
|
|
"winreg": "1.2.4",
|
|
"ws": "^7.5.10",
|
|
"yargs": "^16.0.3"
|
|
}
|
|
}
|