Cheng Zhao
272592415d
Fix building on non-mac
2016-04-25 10:34:41 +09:00
Cheng Zhao
993695af07
Remove unneeded cleanup code
2016-04-25 10:23:36 +09:00
Cheng Zhao
60d2cb8a84
Remove the isolate parameter of GetWrapper
2016-04-25 10:19:25 +09:00
Cheng Zhao
2ae52d0ff4
Make Wrappable a template class
2016-04-25 10:17:54 +09:00
Cheng Zhao
df97be30e5
Do not create the folder passed to app.setPath
2016-04-21 14:37:29 +09:00
Cheng Zhao
aa29dc0c8a
Merge pull request #5199 from Mr0grog/5183-disambiguate-loading-from-main-frame-loading
...
Add `isLoadingMainFrame()` to WebContents
2016-04-20 20:49:56 +09:00
Cheng Zhao
965c3f605e
Merge pull request #5197 from deepak1556/client_certificate_patch
...
app: api to import client certificate
2016-04-20 14:35:00 +09:00
Rob Brackett
d3e879cd7f
Change WebContents::IsLoadingMainFrame
to compare SiteInstances
...
(per @deepak1556's recommendation)
Also updates tests to cover the situation where navigating between pages from the same potential "site" and adds generalized tests for `isLoadingMainFrame()`.
2016-04-19 22:05:09 -07:00
Cheng Zhao
d3bff7fffc
Merge pull request #5208 from deepak1556/devtools_dock_state_patch
...
devtools: allow opening in specified dock state
2016-04-20 13:34:52 +09:00
deepak1556
794d120754
rename importClientCertificate => importCertificate
2016-04-20 08:45:49 +05:30
Rob Brackett
942971b01a
Fix linting errors.
2016-04-19 19:20:59 -07:00
Cheng Zhao
eb9e0e5534
Merge pull request #4922 from electron/bengotow/sheet-offset
...
Allow sheets to be attached at a custom offset #4679
2016-04-20 08:55:42 +09:00
Cheng Zhao
8ca1a6961c
Merge pull request #5147 from deepak1556/devtools_network_controller_patch
...
session: set client id when enabling network emulation
2016-04-20 08:52:59 +09:00
deepak1556
58dfad4d01
devtools: allow opening in specified dock state
2016-04-19 18:12:05 +05:30
deepak1556
2d8286515d
expose api only on platforms using nss cert database
2016-04-19 11:29:24 +05:30
Ben Gotow
414245f4d8
Keep function placement consistent
2016-04-18 22:45:38 -07:00
Ben Gotow
8f89cd2d59
Move "setSheetOffset" to the BrowserWindow
2016-04-18 22:39:12 -07:00
Rob Brackett
64a84dee3b
Add isLoadingMainFrame
method to WebContents.
...
Also switch `webContents.executeJavaScript` to check it instead of `isLoading`.
There doesn’t seem to be a reasonable public way to get this information out of Chromium, so it’s synthesized here based on WebContentsObserver callbacks.
Fixes #5183 .
2016-04-18 10:37:08 -07:00
deepak1556
919be67cd2
remove --client-certificate flag
2016-04-18 22:26:37 +05:30
deepak1556
1240c83e40
set trust bits for CA certs
2016-04-18 21:05:33 +05:30
deepak1556
b8e04f4947
set client id on AtomNetworkDelegate instead of cmd line switch
2016-04-18 11:35:24 +05:30
Cheng Zhao
34319abf4a
Initialize the embedder_ member data
...
Otherwise it is going to be some random value and bite us.
2016-04-18 14:52:03 +09:00
deepak1556
e81cec4058
app: api to import client certificate
2016-04-18 10:54:43 +05:30
deepak1556
fcf04377d7
set network emulation client id in request headers
2016-04-18 10:49:00 +05:30
Cheng Zhao
0bf1e56156
Update brightray for electron/brightray#212
2016-04-18 13:59:15 +09:00
Ben Gotow
c87c49f4c8
Allow sheets to be attached at a custom offset #4679
...
Adds a new "setSheetOffset" API to the `dialog` module, which allows you to change the attachment point for sheets on Mac OS X. I put the API on the dialog module, even though Mac OS X requires that the native window hold and return the desired offset.
1. I was originally hoping to make this an argument on the actual dialog.show* calls, but it seems the parameter set is defined in `libchromiumcontent` and I wasn't sure it would be appropriate to add there?
2. The API could also be on the BrowserWindow (eg `BrowserWindow.setSheetOffset`). I don't have a strong preference, but I think it's more discoverable on the `dialog` module.
2016-04-16 10:16:43 -04:00
Cheng Zhao
075da45b74
Merge pull request #5155 from electron/mac-background-color
...
Set the backgroundColor of RenderWidgetHostView
2016-04-15 08:48:09 +09:00
Cheng Zhao
b84a178ceb
Set the backgroundColor of RenderWidgetHostView
2016-04-14 21:52:17 +09:00
deepak1556
54545a8a6e
provide security style for devtools security panel
2016-04-14 16:20:14 +05:30
Cheng Zhao
92882c358a
No more need to delay did-fail-load event
2016-04-13 19:33:59 +09:00
Cheng Zhao
2fbe06a2a5
Handle the Page.reload command coming from devtools
2016-04-12 16:36:12 +09:00
Rob Brackett
c1b1348735
Add resourceType
arg to webContents did-get-response-details
event.
...
Fixes #5074 and follows @zcbenz's recommendation to expose ResourceTypeToString from atom_network_delegate publicly.
Also adds testing for other arguments to the `did-get-response-details` events, since there were no existing tests for them.
2016-04-08 11:19:36 -07:00
Cheng Zhao
d156846036
Add backgroundThrottling option to webPreferences
2016-04-08 15:54:33 +09:00
Rob Brackett
f12f87d6f0
Add isMainFrame
as last argument to WebContents did-fail-load
event.
...
Fixes #5013 .
2016-04-04 19:26:06 -07:00
Cheng Zhao
9828875ebc
Set the background color of RenderViewHost to transparent
2016-04-03 10:42:49 +09:00
Cheng Zhao
cb470cb94b
Use BrowserWindow's backgroundColor as renderer view's background color
2016-04-02 20:46:50 +09:00
Cheng Zhao
576b54320a
Fix compilation errors on Windows
2016-04-01 16:34:20 +09:00
deepak1556
e14c91771b
removed redundant delegation
2016-04-01 08:14:29 +05:30
deepak1556
e0fe478ae7
decide early on render initiated window creations
2016-04-01 08:14:29 +05:30
Robo
7016fbe258
browser: fix disposition value for new-window event
2016-04-01 08:14:29 +05:30
Cheng Zhao
c220753c60
Merge pull request #4896 from felixrieseberg/default-protocol-handler
...
Enable Electron to set/unset itself as default protocol handler (OS X, Windows)
2016-03-31 10:38:57 +09:00
Cheng Zhao
0e3737423b
Merge pull request #4843 from jwheare/mac-swipe-events
...
OSX: Expose 3-finger swipe events in browser-window
2016-03-31 10:37:27 +09:00
Felix Rieseberg
1231360b2f
⚡ Add API: RemoveAsDefaultProtocolHandler
2016-03-28 15:31:01 -07:00
Felix Rieseberg
d2567b0381
⚡ Add API: SetASDefaultProtocolHandler
...
This PR adds an API enabling Electron to set itself as the default
protocol handler for a custom porotocl on both oS X and Windows.
For details, please see `docs/app.md`.
Closes #4857
2016-03-23 22:12:17 -07:00
James Wheare
8482109dea
Switch to a single OS X swipe event with a direction argument
2016-03-23 15:20:11 +00:00
Kevin Sawicki
6aa452cda4
Set _setDeprecatedOptionsCheck on exports
2016-03-18 09:06:03 -07:00
James Wheare
03319a5426
OSX: Capture 3-finger swipe events in NativeWindow
2016-03-18 15:21:19 +00:00
Kevin Sawicki
c31882749d
Correct typos in comments
2016-03-17 13:37:08 -07:00
Kevin Sawicki
15397bf879
Report deprecated BrowserWindow options
2016-03-17 13:37:07 -07:00
Cheng Zhao
e50ba35871
Merge pull request #4777 from deepak1556/webview_background_patch
...
webview: allow setting background color
2016-03-15 21:12:04 +09:00
Robo
f8f3fba433
webview: allow setting background color
2016-03-14 15:01:36 +05:30
Robo
8378cbb1e8
webcontents: provide position of match with found-in-page event
2016-03-14 06:49:45 +05:30
Cheng Zhao
6aec1e6949
Merge pull request #4714 from atom/chrome49
...
Upgrade to Chrome 49
2016-03-11 21:39:52 +09:00
Cheng Zhao
03ec5ced05
Merge pull request #4751 from maxbeatty/window-blur
...
Add blur method to window
2016-03-11 19:15:51 +09:00
Max Beatty
704b8335aa
Add blur method to window ref #4724
2016-03-10 21:45:51 -08:00
Arek Sredzki
c1267b2320
Added 'show' & 'hide' events to browser-window, fixed visibilitychange event in renderer
2016-03-10 13:51:31 -08:00
Cheng Zhao
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
Paul Betts
4503aafe64
int32 => int32_t
2016-03-10 17:06:21 +09:00
Kevin Sawicki
70aa9b06ee
Move JavaScript to root lib/ folder
2016-03-08 11:14:21 -08:00
Cheng Zhao
549cccfce4
Merge pull request #4715 from dongjoon-hyun/fix_typos_in_comments
...
Fix typos in comments.
2016-03-08 19:45:05 +09:00
Dongjoon Hyun
0c92d44077
Fix typos in comments.
2016-03-07 20:22:03 -08:00
Machisté N. Quintana
03434f45bb
Map webContents.delete to role
2016-03-07 15:50:33 -08:00
Cheng Zhao
0e2ac2d802
Merge pull request #4646 from phamdaniel/dark-mode
...
Add API to check OSX's Dark theme
2016-03-07 09:53:03 +09:00
Daniel Pham
68b453770b
🍎 Rename 'isDarkModeEnabled' to 'isDarkMode'
2016-03-06 10:55:47 -05:00
Cheng Zhao
c0b87c1a62
Merge pull request #4656 from princejwesley/menu-item-click
...
Add platform predicate for menu item action
2016-03-05 21:13:59 +09:00
Cheng Zhao
23b92ef9ec
Fix passing certificate to select-client-certificate's callback
2016-03-05 18:57:46 +09:00
Daniel Pham
63294892f0
Rename dark-mode-changed to platform-theme-changed
2016-03-03 23:58:58 -05:00
Prince J Wesley
f02affbc18
🐛 Add platform predicate for menu item action
2016-03-03 08:38:32 +05:30
Daniel Pham
c4049cb393
🍎 Add 'dark-mode-changed' event to app api
2016-03-01 15:43:38 -05:00
Daniel Pham
eaac67ac60
🍎 Add 'isDarkModeEnabled' to app api
2016-03-01 13:12:21 -05:00
Cheng Zhao
7de97a55f7
Merge pull request #4609 from MaxWhere/framesubscriber-fix
...
🐎 framesubscriber speed and quality improvement
2016-02-26 23:21:42 +08:00
Cheng Zhao
b25c8ca621
Merge pull request #4616 from deepak1556/media_device_enumeration_patch
...
browser: allow enumeration of media device labels
2016-02-26 22:07:35 +08:00
Robo
fce641aab6
browser: allow enumeration of media device labels
2016-02-26 16:31:20 +05:30
Heilig Benedek
4bfa03e5f4
Removed an include no longer needed
2016-02-26 02:13:17 +01:00
Heilig Benedek
3f0d598a59
Merge atom/master
2016-02-26 02:05:57 +01:00
Robo
1235907835
run webframe methods for webview in its context
2016-02-26 05:14:45 +05:30
Heilig Benedek
9a0372b61b
Removed size_ since it's not needed anymore
2016-02-25 23:48:58 +01:00
Robo
8386baf267
add spec
2016-02-25 11:46:30 +05:30
Robo
a734326907
track async api requests
2016-02-25 11:45:59 +05:30
Robo
2b547bd44a
webContents: provide responses for executeJavscript method
2016-02-25 11:45:59 +05:30
Robo
6fcc197db8
webview: api to get webcontents and associated host webcontents
2016-02-24 11:55:15 +05:30
Cheng Zhao
96b2705bd3
Fix render-view-deleted being emitted twice
2016-02-22 15:24:19 +08:00
Cheng Zhao
6753fcc1b4
Get rid of the ATOM_BROWSER_RELEASE_RENDER_VIEW event
2016-02-22 15:24:19 +08:00
Dongjoon Hyun
078c7bf8ab
Rename constant PERSIST_PERFIX
to PERSIST_PREFIX
in session.js
.
2016-02-21 00:16:53 -08:00
Heilig Benedek
2610aa60e9
🎨 lint fix
2016-02-18 01:19:41 +01:00
Heilig Benedek
7bf17f2541
Improved frame subscriber - now we only use framesubscription events as an event, and we copy from the backing store directly (instead of accessing it through a videoframe)
2016-02-18 01:15:00 +01:00
Cheng Zhao
66bb6a8534
Use weak pointer instead of manual bookkeeping
2016-02-16 10:44:10 +08:00
Cheng Zhao
1232a285e6
Merge pull request #4451 from MaxWhere/framesubscriber-fix
...
Fixing FrameSubscriber memory issue
2016-02-16 10:20:44 +08:00
Cheng Zhao
08e5c1f6fe
Merge branch 'webcontent_invalid_loadurl_patch' of https://github.com/deepak1556/atom-shell into deepak1556-webcontent_invalid_loadurl_patch
2016-02-15 21:14:54 +08:00
Cheng Zhao
18f31d7db9
Merge pull request #4398 from LartSimZ/master
...
Fix for issue #4369
2016-02-15 15:30:06 +07:00
Heilig Benedek
f36e2841bf
Don't fire callbacks after we end the subscription
2016-02-12 13:30:11 +01:00
Heilig Benedek
91c96559fa
Fixing the problem related to FrameSubscriber
2016-02-12 02:18:13 +01:00
Kevin Sawicki
704bd4d191
Improve error message
2016-02-11 13:25:58 -08:00
Kevin Sawicki
c94f1fc857
Throw error when IPC channel is missing
2016-02-11 13:25:58 -08:00
Kevin Sawicki
55d4db1387
🎨
2016-02-11 13:25:57 -08:00
Robo
5a8bebc2f8
browser: emit did-fail-load for invalid url
2016-02-12 01:52:42 +05:30
Kevin Sawicki
7da4c3acf7
Use const for util require
2016-02-09 14:54:18 -08:00
Kevin Sawicki
6617592224
Remove lint errors
2016-02-09 14:54:18 -08:00
Kevin Sawicki
c842ca1f12
Don't use ES6 class for AutoUpdater windows class
2016-02-09 14:54:17 -08:00
Michael Vasseur
702455674b
Using node::Buffer::Copy() instead of node::Buffer::New() to copy the handle bytes to buffer make the buffer really contains the data.
2016-02-07 10:20:38 +01:00