Birunthan Mohanathas
8b9f7e5b00
Implement initial, experimental BrowserView API
...
Right now, `<webview>` is the only way to embed additional content in a
`BrowserWindow`. Unfortunately `<webview>` suffers from a [number of
problems](https://github.com/electron/electron/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Awebview%20 ).
To make matters worse, many of these are upstream Chromium bugs instead
of Electron-specific bugs.
For us at [Figma](https://www.figma.com ), the main issue is very slow
performance.
Despite the upstream improvements to `<webview>` through the OOPIF work, it is
probable that there will continue to be `<webview>`-specific bugs in the
future.
Therefore, this introduces a `<webview>` alternative to called `BrowserView`,
which...
- is a thin wrapper around `api::WebContents` (so bugs in `BrowserView` will
likely also be bugs in `BrowserWindow` web contents)
- is instantiated in the main process like `BrowserWindow` (and unlike
`<webview>`, which lives in the DOM of a `BrowserWindow` web contents)
- needs to be added to a `BrowserWindow` to display something on the screen
This implements the most basic API. The API is expected to evolve and change in
the near future and has consequently been marked as experimental. Please do not
use this API in production unless you are prepared to deal with breaking
changes.
In the future, we will want to change the API to support multiple
`BrowserView`s per window. We will also want to consider z-ordering
auto-resizing, and possibly even nested views.
2017-04-13 01:27:27 +03:00
Kevin Sawicki
779e4e5889
Merge pull request #9168 from electron/win-7-notifications
...
Upgrade brightray for Windows 7 notifications
2017-04-12 13:26:40 -07:00
Kevin Sawicki
4f26424ace
Upgrade brightray for Windows 7 notifications
2017-04-12 13:01:52 -07:00
Kevin Sawicki
1c44bcf654
Merge pull request #8786 from electron/per-monitor-dpi-aware
...
Enable per-monitor DPI for Win10
2017-04-12 12:27:41 -07:00
Kevin Sawicki
efa28503a7
Merge pull request #9148 from electron/share-render-frame-observer-with-sandbox
...
Refactor: Share AtomRenderFrameObserver with AtomSandboxedRendererClient
2017-04-11 10:02:12 -07:00
Kevin Sawicki
964b210ce0
Merge pull request #9133 from electron/app-exit-failure
...
Fix app.exit() not closing all windows
2017-04-11 09:49:54 -07:00
Kevin Sawicki
e7b679ead6
Add IsEmpty helper and remove GetInstance public usage
2017-04-11 09:09:17 -07:00
Kevin Sawicki
da5d7d72b0
Add GetWindows helper that returns a vector
2017-04-11 09:09:17 -07:00
Kevin Sawicki
0883a9f966
Use CloseAllWindows helper
2017-04-11 09:09:17 -07:00
Kevin Sawicki
8311aa667c
Add DestroyAllWindows helper that uses vector copy
2017-04-11 09:09:17 -07:00
Kevin Sawicki
bfb9388191
Add failing spec for app.exit with >2 windows
2017-04-11 09:09:17 -07:00
Kevin Sawicki
a30cf30e93
Merge pull request #9134 from electron/scroll-bounce-fix
...
Always set NSScrollViewRubberbanding scroll bounce pref
2017-04-11 09:08:30 -07:00
Kevin Sawicki
b2761ab7dc
Merge pull request #9157 from electron/cifratila/remove-unused-dll
...
#9128 : Removed unused dll from distribution.
2017-04-11 08:52:20 -07:00
Kevin Sawicki
29c68182df
Always set NSScrollViewRubberbanding scroll bounce pref
2017-04-11 08:42:41 -07:00
Cheng Zhao
c59ef0efc5
Enable per-monitor DPI
2017-04-11 15:17:15 +09:00
Kevin Sawicki
e2a00e423c
Merge pull request #9104 from electron/fix-crash-reporter-test
...
Fix sandboxed crashReporter for windows
2017-04-10 15:38:12 -07:00
Kevin Sawicki
f3072e3b2d
Merge pull request #9158 from mcizol/patch-1
...
add electron slack channel for turkish community
2017-04-10 15:37:17 -07:00
Mustafa
2c6ef95923
add electron slack channel for turkish community
2017-04-10 18:41:52 +02:00
Kevin Sawicki
0caa35d33c
Merge pull request #9155 from Hum4n01d/master
...
Add information about dragging not working with Dev tools open
2017-04-10 08:18:09 -07:00
Kevin Sawicki
676f02e001
Tweak GitHub spelling
2017-04-10 08:17:55 -07:00
Kevin Sawicki
3ec7900e6e
Merge pull request #9154 from miniak/fix-api-docs
...
Fix api docs
2017-04-10 08:16:54 -07:00
Kevin Sawicki
cfb4010415
Merge pull request #9151 from mcizol/master
...
add turkish translation files
2017-04-10 08:16:20 -07:00
Kevin Sawicki
53884580cc
Merge pull request #9149 from electron/link-session-docs
...
Link session properties to class docs
2017-04-10 08:15:29 -07:00
Kevin Sawicki
2933eef07e
Merge pull request #9144 from electron/wait-util-server-closes
...
Wait until server closes in afterEach in net spec
2017-04-10 08:14:42 -07:00
Kevin Sawicki
575ece69e2
Merge pull request #9137 from runinspring/patch-3
...
add some document
2017-04-10 08:14:13 -07:00
Kevin Sawicki
ef7dbf8b51
Merge pull request #9136 from runinspring/patch-2
...
Update README.md
2017-04-10 08:13:47 -07:00
Catalin Fratila
d3953f7280
#9128 : Removed unused dll from distribution.
2017-04-10 16:41:16 +02:00
Hum4n01d
0ce983363b
Add information about dragging not working with Dev tools open
2017-04-09 23:05:56 -07:00
Milan Burda
fa0de5c2b4
Define filter argument type for WebRequest methods
2017-04-10 02:18:36 +02:00
Mustafa C. Izol
475620119e
add turkish translation link to readme
2017-04-10 02:12:53 +02:00
Milan Burda
8f46137fda
Fix session.setPermissionRequestHandler webContents argument type
2017-04-10 02:12:15 +02:00
Mustafa C. Izol
613c835eec
add turkish readme file
2017-04-10 02:10:52 +02:00
Mustafa C. Izol
34beb52edb
fix link to electron faq
2017-04-10 01:23:14 +02:00
Mustafa C. Izol
6a729f90e5
add translation files for application-distrubution and supported platforms
2017-04-10 00:47:00 +02:00
Kevin Sawicki
b7b7f28c5a
Link properties to class docs
2017-04-08 18:50:55 -07:00
Thiago de Arruda
039aaba758
Move AtomRenderFrameObserver creation to RendererClientBase.
...
Also remove AtomSandboxedRenderFrameObserver class.
2017-04-08 11:54:58 -03:00
Thiago de Arruda
72781e38c8
Change AtomRenderFrameObserver.renderer_client_ type to RendererClientBase.
2017-04-08 11:27:19 -03:00
Thiago de Arruda
ef07e25f9d
Make SetupMainWorldOverrides/isolated_world pure virtual.
...
Also implement stubs in AtomSandboxedRendererClient.
2017-04-08 11:12:18 -03:00
Thiago de Arruda
f751335bf9
Make DidCreateScriptContext/WillReleaseScriptContext pure virtual.
2017-04-08 10:58:13 -03:00
Thiago de Arruda
0227254774
Move DidClearWindowObject into RendererClientBase.
...
Also adapt AtomSandboxedRenderFrameObserver to forward DidClearWindowObject to
RendererClientBase.
2017-04-08 10:43:19 -03:00
Thiago de Arruda
91ee0ea740
Move AtomRenderFrameObserver into a separate module.
...
Also move SetupMainWorldOverrides into the AtomRendererClient class(since the
code there is specific to AtomRendererClient).
2017-04-08 10:29:05 -03:00
Kevin Sawicki
e2e9e8ae24
Wait until server closes in afterEach
2017-04-07 16:42:01 -07:00
Kevin Sawicki
8a324a9375
Bump v1.6.6
2017-04-07 09:01:28 -07:00
ZhangYu
b6481fde14
Create upload-raw-data.md
2017-04-07 10:48:07 +08:00
ZhangYu
ca584fcaf9
Create upload-file.md
2017-04-07 10:47:52 +08:00
ZhangYu
6089456c84
Create upload-file-system.md
2017-04-07 10:47:37 +08:00
ZhangYu
05d59185b2
Create upload-data.md
2017-04-07 10:47:23 +08:00
ZhangYu
6b44692b0d
Create upload-blob.md
2017-04-07 10:47:09 +08:00
ZhangYu
3ba8a7516a
Create thumbar-button.md
2017-04-07 10:46:53 +08:00
ZhangYu
a584785254
Create task.md
2017-04-07 10:46:34 +08:00