Jeremy Apthorp
a3e28788ce
refactor: ginify Tray ( #22822 )
...
* refactor: ginify Tray
* lint
* improve argument parsing logic
* remove redundant imports from tray.js
* new Tray produces an instanceof Tray
* make Constructible generic
* lint
* clean up on exit
2020-03-30 10:32:02 +09:00
Cheng Zhao
76ae3b7ecb
chore: remove unused classes of views API ( #22861 )
...
* chore: remove unused views API classes
* chore: remove LayoutManager code
* chore: no more need to make View inherit from TrackabeObject
* chore: make enable_view_api default to true
* chore: enable_view_api => enable_views_api
2020-03-28 15:44:57 +09:00
Heilig Benedek
74372d65ae
feat: enhance native window.open to match the custom implementation's behavior ( #19703 )
...
Co-authored-by: Andy Locascio <andy@slack-corp.com>
2020-03-26 11:05:45 -07:00
Jeremy Apthorp
e73d5e3db5
refactor: ginify protocol ( #22812 )
2020-03-26 10:34:32 -07:00
Jeremy Apthorp
222022556f
refactor: ginify Cookies ( #22823 )
2020-03-25 15:34:53 -07:00
Jeremy Apthorp
07cd70a37e
refactor: ginify powerMonitor ( #22751 )
2020-03-24 09:03:29 -07:00
Jeremy Apthorp
decbca734f
refactor: ginify net.request ( #22779 )
2020-03-23 13:09:45 -07:00
Cheng Zhao
341f643b81
feat: add ImageView ( #22738 )
2020-03-22 19:11:43 +09:00
Samuel Attard
60bd52880f
feat: add support for net requests to use the session cookie store ( #22704 )
2020-03-20 15:56:02 -07:00
Jeremy Apthorp
22c17bcc5b
refactor: ginify ServiceWorkerContext ( #22756 )
2020-03-20 14:15:14 -07:00
Samuel Attard
5d657dece4
build: enable JS semicolons ( #22783 )
2020-03-20 13:28:31 -07:00
Samuel Attard
b87b501161
build: update eslint + eslint plugins ( #22777 )
...
* build: run eslint --fix
* chore: manually fix all hasOwnProperty errors
* chore: manually fix all void 0 vs undefined errors
* chore: manually fix all async-in-promise errors
* chore: manually fix lexical declaration in case block
2020-03-20 11:12:18 -04:00
Jeremy Apthorp
c4a7eade28
refactor: ginify session.netLog ( #22732 )
2020-03-18 16:46:05 -07:00
Jeremy Apthorp
232ca8af39
refactor: EventEmitters without gin_helper ( #22726 )
2020-03-18 12:57:08 -07:00
Shelley Vohr
fc661ec56b
chore: update app module property support ( #22713 )
2020-03-18 10:06:41 -07:00
Shelley Vohr
674e4a9fdd
chore: more modules to dual prop/fn support ( #22688 )
2020-03-17 18:06:52 -07:00
Samuel Attard
5e4e50c5eb
fix: remove bad usages of for-in and guard against it ( #22616 )
...
* fix: remove bad usages of for-in and guard against it
* Apply suggestions from code review
Co-Authored-By: Samuel Maddock <samuel.maddock@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
* Update remote.js
Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com>
Co-authored-by: Jeremy Apthorp <jeremya@chromium.org>
2020-03-17 13:17:55 -07:00
Shelley Vohr
97d8caa1e0
chore: support props/fns for BrowserWindow ( #22686 )
2020-03-16 14:03:35 -07:00
Shelley Vohr
1b353d1ed3
chore: revert deprecated WebContents properties ( #22640 )
...
* chore: revert deprecated WebContents properties
* Fix failing zoomFactor test
2020-03-13 10:16:08 -07:00
Jeremy Apthorp
b4d07f76d3
feat: MessagePorts in the main process ( #22404 )
2020-03-11 18:07:54 -07:00
Erick Zhao
85ef762269
fix: guard against duplicate TouchBarItem IDs ( #22272 )
...
* feat: Add OtherItemsProxy touchbar item
* review!
* fix: guard against duplicate TouchBarItem IDs
* add spec
2020-02-26 22:12:56 +00:00
Samuel Attard
12c1d4411d
chore: add deprecation warning on setting app.allowRendererProcessReuse to false ( #22337 )
...
* chore: add deprecation warning on setting app.allowRendererProcessReuse to false
* fix: no deprecation warnings in process reuse spec
* chore: add test for new deprecate removeProperty behavior
2020-02-26 14:03:52 -08:00
Erick Zhao
1848e3f658
feat: Add OtherItemsProxy TouchBar item ( #22270 )
...
* feat: Add OtherItemsProxy touchbar item
* review!
2020-02-24 17:55:06 +09:00
Samuel Attard
e7b0a9ca8f
feat: add API for receiving logs from service workers ( #20624 )
...
* feat: add API for receiving logs from service workers
* feat: add new serviceWorkerContext APIs
* chore: add missing #include's
* refactor: rename serviceWorkerContext to serviceWorkers
* chore: clean up based on review
* chore: remove native_mate
* chore: add tests for the service worker module
* Update spec-main/api-service-workers-spec.ts
Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
* chore: fix linting
* chore: handle renames
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
2020-02-20 15:19:06 -08:00
Cheng Zhao
9ad6f06831
fix: remove cyclic references of BrowserWindow ( #22006 )
...
* fix: remove cyclic references in BrowserWindow
* fix: prevent TopLevelWindow from garbage collection
* test: garbage collection of BrowserWindow
* chore: createIDWeakMap is used in tests
2020-02-11 09:37:46 +09:00
Shelley Vohr
928175bdfe
feat: allow specifying pageSize for print ( #22014 )
2020-02-05 04:25:02 +00:00
Jeremy Apthorp
1c6d8f5af6
fix: return path from netLog.stopLogging ( #21985 )
2020-01-31 10:43:02 -08:00
Shelley Vohr
548b290ea7
feat: add more options to printToPDF ( #21906 )
2020-01-28 20:47:24 +00:00
Charles Kerr
1b4eb0b679
fix: use powerMonitor.on() only after app is ready ( #21927 )
...
* fix: use powerMonitor.on() only after app is ready
powerMonitor can't be used until the app is ready; however, on Linux,
powerMonitor.on() was called as soon as lib/browser/api/power-monitor.ts
was loaded.
This patch takes @vladimiry's suggestion of wrapping that in an
app.on('ready') handler to prevent powerMonitor.on() from being called
prematurely.
Fixes #21716
2020-01-28 12:19:44 -06:00
Cheng Zhao
ceacadb4f4
fix: pass full response headers in net module ( #21552 )
2020-01-14 09:36:08 -08:00
Lutz Roeder
ed6a3877a4
fix: SimpleURLLoaderWrapper redirects ( #21630 )
2019-12-31 10:47:08 +11:00
Jeremy Apthorp
54b4756a29
refactor: try just using regular [Sync] for MessageSync ( #20797 )
2019-12-17 11:35:28 -08:00
Milan Burda
6a03d3cc66
refactor: export internalWindowOpen from guest-window-manager ( #21498 )
2019-12-16 10:30:25 +09:00
Jeremy Apthorp
092e00f7f0
fix: fix ClientRequest.getUploadProgress ( #21388 )
2019-12-06 13:14:44 -08:00
Jeremy Apthorp
dc9beda182
feat: remove deprecated setLayoutZoomLevelLimits ( #21383 )
2019-12-06 13:14:25 -08:00
Shelley Vohr
4ac575416f
docs: fix return type of getPrinters ( #21411 )
2019-12-06 12:36:35 -08:00
Shelley Vohr
9e189eac71
fix: pass noLink correctly on Windows ( #21386 )
2019-12-05 13:38:57 -08:00
Shelley Vohr
5f365858c9
fix: correctly plumb checkboxChecked on win ( #21248 )
...
* fix: correctly plumb checkboxChecked on win
* address final style comment
2019-11-27 16:39:07 +09:00
Jeremy Apthorp
d25256dcf5
refactor: rewrite the net module to simplify state tracking ( #21244 )
2019-11-26 17:01:13 -08:00
Samuel Attard
34452ee69e
feat: expose executeJavaScriptInIsolatedWorld on webContents ( #21190 )
...
* feat: expose executeJavaScriptInIsolatedWorld on webContents
* Apply suggestions from code review
Co-Authored-By: loc <andy@slack-corp.com>
2019-11-22 15:33:55 -08:00
Jeremy Apthorp
4f1536479e
fix: implement 'login' event for net.ClientRequest ( #21096 )
2019-11-14 10:01:18 -08:00
Jeremy Apthorp
034f4d5734
fix: implement 'login' event for WebContents ( #20954 )
2019-11-11 09:47:01 -08:00
Samuel Attard
5b7382765c
feat: allow TouchBarButton instances to be disabled ( #20945 )
...
* feat: allow TouchBarButton instances to be disabled
* Update touch-bar-button.md
2019-11-05 15:56:36 -08:00
Milan Burda
01e18c2fc3
fix: cannot access nativeTheme via electron.remote ( #20938 )
2019-11-04 14:17:03 -08:00
Milan Burda
ee7ce3954a
fix: don't export __esModule = true by electron.ts ( #20939 )
2019-11-04 14:16:42 -08:00
Milan Burda
0c870775c4
fix: deprecation warnings in Electron code ( #20793 )
2019-10-29 13:16:10 +09:00
Milan Burda
bd5a5b3ae6
fix: properly generate requestID in webContents.printToPDF() ( #20769 )
2019-10-29 11:36:29 +09:00
Electron Bot
b6246dcf12
chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) ( #20649 )
2019-10-28 15:12:35 -07:00
Alecyrus
825e67140e
feat: support fitToPageEnabled and scaleFactor ( #20436 )
...
* fix: support fitToPageEnabled and scaleFactor
Support fitToPageEnabled and scaleFactor in `WebContents.printToPDF()`
* fix: change default value of scaleFactor
2019-10-18 09:40:19 +09:00
Milan Burda
b92163d226
refactor: take advantage of structured clone algorithm in the remote module ( #20427 )
2019-10-10 09:59:08 -04:00