Cheng Zhao
932cd92bf6
Fix wrong deprecation wrappers of BrowserWindow
2015-11-27 10:30:51 +08:00
Cheng Zhao
b0d4aa211d
Fix compatibility with activate-with-no-open-windows event
2015-11-26 13:57:48 +08:00
Cheng Zhao
9c62be8fc9
Improve the deprecation notice for ipc module
...
Close #3577 .
2015-11-26 11:06:56 +08:00
Eran Tiktin
6db6842c14
Fix menu-item using deprecated API
...
Some of the roles in menu-item use methods on BrowserWindow instead of
WebContents which outputs a deprecation warning.
I changed it to use the correct methods.
2015-11-22 01:13:57 +02:00
Cheng Zhao
08c13cf446
Deprecate app.resolveProxy
...
There is now a public API to get default session, this helper is no
longer necessary.
2015-11-19 21:32:46 +08:00
Cheng Zhao
1392873cbc
Add session.defaultSession and remove app.defaultSession
...
The latter has never been a public API, no need to keep it.
2015-11-19 21:03:42 +08:00
Cheng Zhao
47d7d49d19
Add session module
2015-11-19 20:47:11 +08:00
Cheng Zhao
e432abfb42
Add certificate-error event
2015-11-18 10:39:25 +08:00
Cheng Zhao
341341bf28
Rename select-certificate to select-client-certificate
2015-11-18 10:10:21 +08:00
Robo
2a7f874373
browser: fix reloadignoringcache api
2015-11-14 02:25:23 +05:30
Cheng Zhao
099278855c
Simplify how remote.require('electron') is optimized
2015-11-13 21:54:56 +08:00
Cheng Zhao
e76a7f7b7d
Fix typo, tray => Tray
2015-11-13 21:52:05 +08:00
Cheng Zhao
e8ffd24e4e
Rename the "clicked" event to "click" in Tray
2015-11-13 16:41:33 +08:00
Cheng Zhao
fbb8e61958
Replace "Url" in API names with "URL"
2015-11-13 16:03:40 +08:00
Cheng Zhao
f2439cefd0
linux: Don't throw error when using autoUpdater
...
Fix #3194 .
2015-11-13 10:58:10 +08:00
Cheng Zhao
852500e5fa
Fix a few places using old style require
2015-11-13 09:38:22 +08:00
Cheng Zhao
edd807d227
Fix a typo
2015-11-12 22:56:18 +08:00
Cheng Zhao
8b2942c279
Optimize remote.require('electron')
2015-11-12 20:30:40 +08:00
Cheng Zhao
1d1f911b09
Use require('electron') in Electron's code
2015-11-12 20:29:30 +08:00
Cheng Zhao
c2c09daa23
Add "electron" module
2015-11-12 16:40:27 +08:00
Levin Rickert
08e245e3dc
Fix typo
2015-11-10 12:42:05 +01:00
Cheng Zhao
751af25f37
Use ipcMain in Electron's code
2015-11-10 16:04:34 +08:00
Cheng Zhao
844cea8f21
Deprecate ipc module for ipcMain
2015-11-10 15:41:24 +08:00
Cheng Zhao
91c4ed26fc
Print warnings for deprecated APIs
2015-11-09 21:51:30 +08:00
Cheng Zhao
863199348f
Make process.exit() quit gracefully
...
Instead of abrupting the whole program immediately, we should close all
windows and release all native resources gracefully on exit. This avoids
possible crashes.
Fix #3350 .
2015-11-06 20:25:20 +08:00
Cheng Zhao
75f49477ca
Cleanup wrapper function when app has done quitting
...
The app may still do something when quitting, we need to make sure the
wrapper function is still there at that time.
2015-11-04 16:54:36 +08:00
Cheng Zhao
441cc3e57e
Style fix
2015-11-04 16:50:19 +08:00
Cheng Zhao
9236adfbf5
Translate menu template directly in C++
2015-11-02 23:31:44 +08:00
Robo
c969052f12
browser: handle flash context menu
2015-11-01 01:13:17 +05:30
Cheng Zhao
fae2c7bc7a
win: Make auto-updater really work
...
Apparently that PR was never tested.
2015-10-23 19:41:54 +08:00
Cheng Zhao
f89d28a63e
Simplify the auto-updater implementations
...
We used to use Sparkle on OS X, and the design was reserved to be
extended to all platforms, which are all wrong now.
2015-10-23 15:40:56 +08:00
Cheng Zhao
d74ef5c078
Move implementation of auto-updater on OS X to another file
2015-10-23 15:13:24 +08:00
Cheng Zhao
85c84a0eb0
Emit Date object in C++ directly
2015-10-23 14:58:19 +08:00
Cheng Zhao
07adbc8e8a
Merge pull request #1984 from patrickdet/windows-auto-updater
...
Windows Auto Updater
2015-10-23 13:54:29 +08:00
Patrick Detlefsen
db3bc28937
PR feedback adressed
2015-10-20 19:25:03 +02:00
Cheng Zhao
83c514001e
Move devtools API to WebContents
2015-10-01 11:25:31 +08:00
Cheng Zhao
0fb68e8130
Make Menu.popup accept no parameter
2015-09-30 23:41:23 +08:00
Haojian Wu
1879392c7b
Reimplement downloadItem.getFilename API.
...
Previously, the suggested file name(Always 'empty') returned by
'download_item->GetSuggestedFilename' is not the same with the default one saved
in local disk.
The patch reimplement this API allowing it to return the default file name, which
is more expected from user.
2015-09-24 16:39:02 +08:00
Haojian Wu
0861d5d44b
Redefine 'will-download' design.
2015-09-24 16:04:44 +08:00
Haojian Wu
4391e81dfe
Keep compatibility with old APIs.
2015-09-21 09:38:06 +08:00
Haojian Wu
5ec74451ef
Introduce DownloadItem for supporting more downloading features.
2015-09-20 18:56:10 +08:00
Haojian Wu
a3e9ff67b0
Fix a wrong check in emitting 'activate-with-no-open-windows' event.
2015-09-16 08:36:01 +08:00
Cheng Zhao
fe2219a635
Merge pull request #2777 from atom/dock-clicked
...
Implement 'activate' event for app.
2015-09-15 11:17:41 +08:00
Haojian Wu
9652ed6508
More fixes after code review.
2015-09-14 19:43:21 -07:00
Cheng Zhao
8a8b11cf10
Do not use did-finish-load to detect whether WebContents is ready
...
The WebContents JS object can be created way later after the C++ object
gets created.
2015-09-15 09:21:15 +08:00
Cheng Zhao
e656d8428c
Make getUrl work for devToolsWebContents
2015-09-15 09:20:56 +08:00
Cheng Zhao
c346fcb326
Emit browser-window-created when window is created
2015-09-14 17:02:24 +08:00
Cheng Zhao
7d07f10c25
Assign actions for roles on Windows and Linux
2015-09-02 09:42:17 +08:00
Cheng Zhao
d830badc57
Add role property for MenuItem
2015-09-02 09:42:17 +08:00
Robo
4062ca5f68
implement wrapSession
2015-09-01 16:50:42 +05:30
Robo
aed487ef40
app: add will-download event to defaultSession
2015-08-31 12:57:56 +05:30
Cheng Zhao
9212a1db8e
Merge branch 'master' into chrome44
2015-08-21 19:29:34 +08:00
Cheng Zhao
d931a49e89
Warn about removed protocol APIs
2015-08-21 18:02:58 +08:00
Cheng Zhao
8cc602ff94
Merge pull request #2515 from atom/fix-no-print-background
...
Fix a typing error in option checking: printBackgrounds => printBackground
2015-08-21 09:02:08 +08:00
Haojian Wu
69e1e3c0bd
Fix a typing error in option checking: printBackgrounds => printBackground
2015-08-18 09:28:02 +08:00
Cheng Zhao
96d53d279e
Initial implementation of new protocol API
2015-08-12 13:30:19 +08:00
Cheng Zhao
33eadad139
popContextMenu => popUpContextMenu
2015-08-10 13:00:15 +08:00
Robo
3b05b135a5
tracing: fix api and docs
2015-08-05 02:29:55 +05:30
Robo
239d535cac
render: executejavascript with option to simulate usergesture
2015-07-30 15:38:46 +05:30
Cheng Zhao
c140077d53
Merge pull request #2338 from atom/page_size_option
...
Add 'pageSize' option in printToPDF API.
2015-07-29 11:32:49 +08:00
Haojian Wu
9eeebedf5f
Add pageSize option in printToPDF API.
2015-07-26 11:55:52 +08:00
Cheng Zhao
29c574cf0f
Focus WebContents when we first load url in BrowserWindow
2015-07-24 13:08:19 +08:00
Cheng Zhao
cc2a9f617d
Add noLink option for showMessageBox
2015-07-23 17:25:37 +08:00
Cheng Zhao
1578d2fda9
Allow the C++ JS binding function to accept arbitrary long arguments
2015-07-23 15:00:42 +08:00
Cheng Zhao
da724d65d7
Add |options| for ShowMessageBox
2015-07-23 14:16:43 +08:00
Robo
57244e4718
use request context from session if provided
2015-07-16 20:18:33 +05:30
Cheng Zhao
1e9eccf959
Forward the crashed event to BrowserWindow, fix #2201
2015-07-14 15:13:41 -07:00
Robo
2cd5fb5694
add compatibility will old api
2015-07-09 14:48:58 +05:30
Cheng Zhao
001b4a3179
Final cleanup
2015-07-08 16:24:39 +08:00
Cheng Zhao
aab78db8b8
On Windows "Cancel" button is also forced to be canclId
2015-07-08 16:00:30 +08:00
Cheng Zhao
fdc01b8ba8
Merge pull request #2146 from atom/cancel-id
...
Add "cancelId" option for showMessageBox
2015-07-08 10:08:39 +08:00
Cheng Zhao
e0528655a8
Merge pull request #2133 from atom/app_dir_api
...
Implment app.getAppPath API.
2015-07-08 10:08:22 +08:00
Cheng Zhao
df4b5f4ede
On OS X the "Cancel" is always get selected when dialog is cancelled
2015-07-07 18:45:43 +08:00
Cheng Zhao
fb537d91fc
Set default cancelId in JavaScript
2015-07-07 18:39:08 +08:00
Cheng Zhao
b158427271
Add cancelId option for showMessageBox
2015-07-07 18:39:08 +08:00
Haojian Wu
a2857d2dca
Implment app.getAppPath API.
2015-07-07 17:37:53 +08:00
Cheng Zhao
3e6394a004
gtk: Map dialog type to message box type
2015-07-07 17:21:30 +08:00
Haojian Wu
41c1a34b4f
Fix a type error on window.moveTo API.
2015-07-07 07:25:58 +08:00
Cheng Zhao
e41b0d4d2c
Remove NativeWindow::ActivateContents
2015-06-25 13:18:36 +08:00
Cheng Zhao
2ea2413752
Set sender in EventEmitter.emit
2015-06-25 11:16:42 +08:00
Cheng Zhao
fb5fe7a714
Decouple WebContentsDelegate from NativeWindow
2015-06-25 11:07:23 +08:00
Cheng Zhao
bd4d6dcda2
Merge pull request #2046 from atom/id-weak-map
...
Track native JS objects in C++
2015-06-24 20:01:42 +08:00
Cheng Zhao
9b9108f789
Remove JS override of setMenu
2015-06-24 19:51:11 +08:00
Cheng Zhao
8c83dfe918
Remove usages of JS IDWeakMap in browser-window
2015-06-24 19:01:44 +08:00
Cheng Zhao
f93d50c380
Merge pull request #2025 from atom/power-save-blocker-api
...
Power save blocker API
2015-06-24 18:53:10 +08:00
Cheng Zhao
cc8b22b5ff
Make each class only have one weak map
2015-06-24 17:58:12 +08:00
Cheng Zhao
5e62b5975b
Move "id" and "fromId" to C++
2015-06-24 16:37:48 +08:00
Cheng Zhao
15f350edcb
Don't make IDWeakMap public API
2015-06-24 13:38:55 +08:00
Haojian Wu
13784e6551
More updates: use string instead of integer to identify blocker type.
2015-06-24 13:06:39 +08:00
Cheng Zhao
09a6e37a09
Keep compatibility with app.resolveProxy
2015-06-24 12:01:19 +08:00
Cheng Zhao
6d9ca4f52b
Clean up coffee files
2015-06-23 22:11:59 +08:00
Cheng Zhao
77dbec305f
Emit ATOM_BROWSER_RELEASE_RENDER_VIEW in C++
2015-06-23 21:27:50 +08:00
Cheng Zhao
1f97cee7c9
Fix release render view with wrong ID
2015-06-23 16:43:55 +08:00
Cheng Zhao
015ef3e014
Omit extra transfer of new-window event
2015-06-23 16:34:22 +08:00
Cheng Zhao
52789ab96f
Implement getId in C++
2015-06-23 16:16:10 +08:00
Cheng Zhao
89c7028ed1
Don't include routing ID in WebContents's ID
2015-06-23 16:09:34 +08:00
Patrick Detlefsen
6c4016af46
make sure the query params are stripped from the updateUrl
2015-06-22 15:51:47 +02:00
Patrick Detlefsen
154ca8575c
limit the auto-updater-win api to very few methods
2015-06-22 15:33:08 +02:00
Patrick Detlefsen
ae5411c37b
move squirrel bahaviour into proper place
2015-06-22 15:17:07 +02:00
Haojian Wu
7c5afdd388
Add PowerSaveBlocker APIs.
2015-06-21 21:14:14 +08:00