Omri Litov
f22837523f
Use WPARAM as uint64_t and LPARAM as int64_t
2015-10-28 21:54:50 +02:00
Cheng Zhao
569e87035a
Also emit "login" on WebContents
2015-10-28 21:00:39 +08:00
Cheng Zhao
4eac6b31b1
Also pass "webContents" in "login" event
2015-10-28 20:23:18 +08:00
Cheng Zhao
131531219e
Pass auth_info and request in "login" event
2015-10-28 20:13:06 +08:00
Cheng Zhao
d05255179a
Add login event for "app" module
2015-10-28 19:54:59 +08:00
Cheng Zhao
b86267aa3b
Use uint64_t instead of LPARAM
...
LPARAM is defined to differnt types on differnt machines with different
SDKs, so there is no way to represent it on all platforms safely, using
uint64_t seems to be the only safe choice.
2015-10-28 19:51:24 +08:00
Cheng Zhao
5fd310c75f
Add converter for LPARAM
2015-10-28 19:43:05 +08:00
Cheng Zhao
142f380376
Merge pull request #3231 from omrilitov/master
...
Hooking windows messages
2015-10-27 20:48:19 +08:00
Omri Litov
e355532d27
Change windows messages api to hook instead of emitter
2015-10-27 14:00:08 +02:00
Omri Litov
edbebf84b9
Added browser-window event 'message'
2015-10-27 03:12:01 +02:00
Gohy Leandre
b29a8c94b9
Add extra headers option to webContents.loadUrl
2015-10-26 22:18:16 +01:00
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
aeafc46ded
Keep compatibility with old API style
2015-10-23 15:50:55 +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
95fe4beda8
Pass real Error object in error event
2015-10-23 14:37:35 +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
Cheng Zhao
e36d455d51
Add setBackgroundColor method
2015-10-23 11:35:33 +08:00
Cheng Zhao
6182e4ce81
Merge pull request #3179 from deepak1556/session_api_patch
...
session: allow setproxy to use external pac script
2015-10-23 10:36:37 +08:00
Robo
e9a5d05b27
session: allow setproxy to use external pac script
2015-10-22 23:03:47 +05:30
Cheng Zhao
6bfe06ec4e
Pass original argv in callback
2015-10-22 19:02:21 +08:00
Cheng Zhao
afc1fff792
Remove the need for ProcessSingletonStartupLock
2015-10-22 17:12:09 +08:00
Cheng Zhao
70e74d05e0
Revert "app.makeSingleInstance is not available on OS X"
...
This reverts commit bcb78ebc00
.
2015-10-22 17:03:18 +08:00
Cheng Zhao
f9d797d1ea
win: Fix compiler warning
2015-10-22 16:55:54 +08:00
Cheng Zhao
e14fd62f46
Correctly handle notification callback when shutting down
...
When returning false in the notification callback the ProcessSingleton
will assume current process is quitting, we should met its expectation.
2015-10-22 16:24:35 +08:00
Cheng Zhao
bcb78ebc00
app.makeSingleInstance is not available on OS X
2015-10-22 15:02:32 +08:00
Cheng Zhao
310954713f
Simplify the usage of singleton
2015-10-22 14:59:12 +08:00
Paul Betts
de66888051
Remove atom_process_singleton, just use the Chrome classes directly
2015-10-21 13:38:39 -07:00
Paul Betts
d020a7dc86
cpplinting
2015-10-21 13:17:56 -07:00
Paul Betts
938d68eb36
Move all the browser.cc code over to atom_api_app.cc
2015-10-21 13:04:50 -07:00
Paul Betts
a160891a27
If a user calls makeSingleInstance more than once, just ignore it
2015-10-21 12:29:00 -07:00
Paul Betts
4a7a09aae1
Infinite Linting
2015-10-20 15:00:10 -07:00
Paul Betts
f759471e01
Update to use Chromium sources
2015-10-20 14:36:01 -07:00
Paul Betts
b6f1729acd
Move initialization of Single Instance into MakeSingleInstance call
2015-10-20 13:38:57 -07:00
Paul Betts
5d4c29a1e3
Ditch double-callback, just use mate directly
2015-10-20 13:27:34 -07:00
Paul Betts
a2eedcc027
Wire up the final callback to JS
2015-10-20 13:17:26 -07:00
Paul Betts
63417bc975
I am not good at C++ at all
2015-10-20 13:17:25 -07:00
Paul Betts
4a4b829cfc
Fix callback handle usage
2015-10-20 13:17:25 -07:00
Paul Betts
b02f89e63b
Typo
2015-10-20 13:16:49 -07:00
Paul Betts
cdd51fa96d
Wire everything up
2015-10-20 13:16:48 -07:00
Paul Betts
717aba9631
Create a dummy method in app that we'll twerk
2015-10-20 13:15:11 -07:00
Patrick Detlefsen
db3bc28937
PR feedback adressed
2015-10-20 19:25:03 +02:00
Cheng Zhao
370cb5b5e1
Merge pull request #3120 from atom/ntlm-part-two
...
Optionally allow NTLM authentication for all domains
2015-10-20 13:48:12 +08:00
Haojian Wu
49d25d0069
Fix: savePage API saves external resources in a wrong directory.
2015-10-18 11:28:05 +08:00
Paul Betts
a3fc25110e
Linter fixes
2015-10-16 16:55:28 -07:00
Paul Betts
5ae6bd2ef4
Wire it up
2015-10-16 16:46:05 -07:00
Paul Betts
7ac643d5f8
Create a new method on App to override URL Security Manager's decisions wrt NTLM
2015-10-16 16:45:54 -07:00
Haojian Wu
facd0fbc08
Implement webContents.savePage API.
2015-10-16 09:23:08 +08:00
Robo
fb5260eb30
browser: get accept-language header from system locale
2015-10-09 13:18:37 +05:30
Robo
d9c6cf7b75
webcontents: dont modify response header value
2015-10-08 11:31:41 +05:30
Cheng Zhao
e1318ffb34
Merge pull request #3010 from deepak1556/guest_zoom_level_patch
...
webcontents: notify guests of embedders' zoom level change
2015-10-08 13:52:22 +08:00
Robo
7756bb6762
webcontents: notify guests of embedders' zoom level change
2015-10-08 10:38:22 +05:30
Cheng Zhao
fe4d86925b
Merge pull request #3020 from atom/fix-switch-path
...
Fix a wrong usage of switch commandline.
2015-10-08 10:37:09 +08:00
Haojian Wu
821005e6b4
Fix a wrong usage of switch commandline.
...
We should not always save switch path as ascii string, which will not be
handled well on Windows.
2015-10-07 12:17:49 +08:00
Cheng Zhao
ca40ea8e2f
Inherit owner window in devtools
2015-10-01 14:41:01 +08:00
Cheng Zhao
f2c7943d42
Add WebContents.getOwnerBrowserWindow
2015-10-01 13:45:59 +08: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
Robo
fc7f4ae24b
session: api to emulate network conditions
2015-09-27 18:55:26 +05:30
Haojian Wu
4a64d1d946
📝 fix a typo
...
interrputed => interrupted
2015-09-25 13:13:11 +08:00
Cheng Zhao
ecefd3540b
Merge pull request #2840 from atom/download-item
...
Add more download supports in Electron
2015-09-24 21:04:25 +08:00
Haojian Wu
06cc133959
Some cleanup.
2015-09-24 19:31:09 +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
Cheng Zhao
de41890196
Inherit parent window's options in window.open
2015-09-22 22:32:10 +08:00
Gohy Leandre
477103191f
Add http_response_code, method, referrer, response_headers to did-get-redirect-request event.
2015-09-21 09:51:58 +02:00
Haojian Wu
57bf0cb615
Refractor in completed
event in DownloadItem.
...
* Rename `completed` to `done`, making it align with Chromium's style.
* Add 'state' in `done` event's result. It can check the download item final
status: cancelled, completed, interrupted.
2015-09-21 14:00:38 +08:00
Haojian Wu
997ac91fe0
Add donwloadItem.getContentDisposition()
API.
2015-09-21 09:38:38 +08:00
Haojian Wu
4391e81dfe
Keep compatibility with old APIs.
2015-09-21 09:38:06 +08:00
Haojian Wu
d0ee30101d
Fix cpplint warnings.
2015-09-21 09:34:49 +08:00
Haojian Wu
5ec74451ef
Introduce DownloadItem for supporting more downloading features.
2015-09-20 18:56:10 +08:00
Haojian Wu
87b9b0bc31
Implement session.setOpenDownloadDialog() API.
2015-09-20 18:45:34 +08:00
Cheng Zhao
7b2980434c
Fix wrong return values in a few converters
2015-09-18 18:21:51 +08:00
Cheng Zhao
86f523d3c1
Move BeginFrameSubscription to WebContents
2015-09-18 15:57:43 +08:00
Cheng Zhao
42863e4700
Move SendInputEvent to WebContents
2015-09-18 14:20:31 +08:00
Cheng Zhao
9e7de78231
Fix cpplint warnings
2015-09-18 14:12:48 +08:00
Cheng Zhao
c550546ff1
Do not manually convert Object to WebInputEvent
2015-09-18 14:09:31 +08:00
Cheng Zhao
ec90d03d74
Fix compilation error
2015-09-18 12:10:00 +08:00
Cheng Zhao
ee0d48dc5a
Merge branch 'master' of https://github.com/MaxWhere/electron into MaxWhere-master
2015-09-18 12:01:33 +08:00
Cheng Zhao
7dc7ee1c41
Move the converters for blink structures to another file
...
It makes the api::WebContents smaller.
2015-09-18 11:06:38 +08:00
Gohy Leandre
6b875110ed
Add device emulation API
2015-09-17 13:50:36 +02:00
Cheng Zhao
a386bb4edf
Merge pull request #2815 from atom/release-resources
...
Release the resources of native window immediately when it is closed
2015-09-17 14:56:21 +08:00
Cheng Zhao
e73c655d65
No need to delete window in Destory
...
The native window is now automatically deleted after it gets closed.
2015-09-17 11:32:19 +08:00
Cheng Zhao
e3c64d7971
Release the native window after window gets closed
...
Previously we delete the window after the JS object gets garbage
collected, which is too late for releasing some resources.
2015-09-17 11:30:17 +08:00
Ryohei Ikegami
b9c274929b
Add app.getLocale()
2015-09-16 17:16:21 +09:00
Heilig Benedek
ceef06b344
Renamed setOffscreenRender to begin/endFrameSubscription because the name was a bit misleading, and replaced the ArrayBuffer creation with a node::Buffer::New call.
2015-09-16 02:59:16 +02: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
b72a5884f2
Add BrowserWindow.isDevToolsFocused
2015-09-15 11:43:45 +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
Haojian Wu
377e7ee3a7
Implement 'activiate' event instead of 'activate-with-open-windows'.
2015-09-14 18:34:27 -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
238d4add99
devtools-opened should be emitted after devtools is opened
2015-09-15 09:18:22 +08:00
Cheng Zhao
3bf73bc455
Expose native implementation of WebContent::GetURL
2015-09-15 09:18:14 +08:00
Haojian Wu
3ad5d17612
[OS X] Implement 'activate-with-open-windows' event for app.
2015-09-14 20:32:50 +08:00
Cheng Zhao
c346fcb326
Emit browser-window-created when window is created
2015-09-14 17:02:24 +08:00
Heilig Benedek
b2af370249
Changed StringArray options to regular js objects with boolean values for better readability from the js side
2015-09-10 02:10:47 +02:00
Gohy Leandre
590be75fa9
add ValidatedUrl to did-fail-load event
2015-09-09 15:56:16 +02:00