Cheng Zhao
d63de1ae15
Wrap callbacks with v8::Locker.
...
In browser process, because of the use of v8::Locker in ProxyResolverV8,
creating HandleScope requires entering locker first, so in browser
process we should just use v8::Locker whenever we need to use V8 in a
callback called from non-V8 places (like dialog's callback, work pushed
to MessageLoop).
But also notice that the renderer process doesn't use v8::Locker, so we
have to be careful not to use it, otherwise blink would crash when
creating HandleScope.
2014-01-27 15:14:11 +08:00
Cheng Zhao
5250871e69
Remove unneeded HandleScopes.
...
It's not necessary to create HandleScope in v8 native binding functions,
because it's guarrenteed that the there is a upper HandleScope when the
native function is called. So unless we are urgent to free the handles,
not using HandleScope in native binding functions is a cleaner and safer
choice.
2014-01-27 15:01:06 +08:00
Cheng Zhao
426bc97194
Use node_isolate instead of Isolate::GetCurrent().
2014-01-27 14:04:34 +08:00
Cheng Zhao
8655dec00e
Crash when there is fatal error in V8.
2014-01-23 20:30:44 +08:00
Cheng Zhao
5eb1f52421
Make sure nextTick is called when activating uv loop.
2014-01-10 16:47:33 +08:00
Cheng Zhao
d0494024a9
Add process.scheduleCallback.
...
It will schedule a callback to be executed by pure uv loop.
2014-01-09 20:33:07 +08:00
Cheng Zhao
4ae2738ce5
Add screen.getPrimaryDisplay() API.
2014-01-07 20:15:55 +08:00
Cheng Zhao
7253a35455
Add initial screen module.
2014-01-07 20:00:25 +08:00
Cheng Zhao
cf4616de7f
api::EventEmitter could also be used by renderer.
2014-01-07 19:32:40 +08:00
Cheng Zhao
61c63a6af9
Fix crashes about persistent v8 functions.
2013-12-12 00:10:09 +08:00
Cheng Zhao
409a431892
Huge commit to use new V8 and Content APIs.
...
Still got a lots of linking errors!
2013-12-11 15:48:19 +08:00
Cheng Zhao
d82cfc023f
💄 There should be no space between & and type name.
2013-12-10 14:27:25 +08:00
Cheng Zhao
4ec4b01218
base/string16.h was moved to base/strings/string16.h.
2013-12-10 14:14:05 +08:00
Cheng Zhao
844fccc177
Use random number as id in CallbacksRegistry.
...
It's very possible that the callbacks got GCed before the render view is
closed (like page getting refreshed), so we should not let browser call
the wrong callback, instead we should throw error whenever a callback is
not found.
2013-12-06 15:04:51 +08:00
Cheng Zhao
fdfff63119
💄 Wrong IP for default crash reporter server.
2013-11-28 12:38:33 +08:00
Cheng Zhao
151b2b5ad5
Also upload product name, company name and version in crash report.
2013-11-26 10:19:50 +08:00
Cheng Zhao
717b664802
win: Make out-of-process crash dump work.
2013-11-24 22:22:08 +08:00
Cheng Zhao
75e1fb63c8
Start the crash service process on non-Mac.
2013-11-24 20:45:12 +08:00
Cheng Zhao
2228184066
Cause a real crash instead of debugger break in process.crash().
...
On Windows the debugger break would not be treated as crash.
2013-11-19 21:36:18 +08:00
Cheng Zhao
7735d8fbfd
Update default crash report submission URL.
2013-11-19 12:27:20 +08:00
Cheng Zhao
d181ff4e7f
Enable customing upload parameters for sending crash report.
2013-11-18 18:27:50 +08:00
Cheng Zhao
67dd596386
Enable starting crash-reporter without parameters.
2013-11-15 11:00:48 +08:00
Cheng Zhao
9007a45051
Refactor crash reporter to be more cross-platform friendly.
2013-11-14 13:33:09 +08:00
Cheng Zhao
a6989847ea
Add API to set product name for crash reporter.
2013-11-13 19:12:13 +08:00
Cheng Zhao
374cf948e4
Make the crash reporter available for both browser and renderer.
2013-11-13 17:29:35 +08:00
Cheng Zhao
2b9a533d1d
Add process.getCurrentStackTrace(), returning V8::getCurrentStackTrace().
2013-09-26 13:31:17 +08:00
Cheng Zhao
ef4b36d621
Use string16 instead of std::string when sending IPC messages.
...
The underlying V8::String is represented in UTF18, by using string16 in
IPC messages we can avoid the overhead of encode conversion.
2013-09-20 22:55:42 +08:00
Cheng Zhao
ef5a4b5fe0
Pass synchronous messages by JSON string.
...
We are going to use IPC_MESSAGE_HANDLER_DELAY_REPLY to handle
synchronous messages but DictionaryValue is not copyable, so we pass the
JSON string instead.
2013-09-20 22:32:59 +08:00
Cheng Zhao
40273cf37d
Add IPC messages and structs for passing draggable regions.
2013-09-05 19:46:12 +08:00
Cheng Zhao
3b7dd85d3f
Merge pull request #65 from atom/custom-protocol
...
Support custom protocols
2013-09-04 03:33:09 -07:00
Cheng Zhao
018a48770a
Add spec for heap snapshot crash ( #66 ).
2013-08-27 17:47:44 +08:00
Cheng Zhao
b9cbfb8103
Skelecton for the protocol module.
2013-08-24 15:26:10 +08:00
Cheng Zhao
341f1be07f
Revert "Use named property handler for createObjectWithName."
...
This reverts commit 0c31494ffa
.
2013-08-14 21:17:15 +08:00
Cheng Zhao
0c31494ffa
Use named property handler for createObjectWithName.
2013-08-14 13:14:28 +08:00
Cheng Zhao
dd05759c01
Add process.versions["atom-shell"].
2013-08-08 17:26:20 +08:00
Cheng Zhao
55034be104
Add power-monitor module, fixes #45 .
2013-08-03 16:03:56 +08:00
Cheng Zhao
4acbbd1ad7
Discard the idle gc module.
2013-07-29 20:34:07 +08:00
Cheng Zhao
e995383401
Guard against double erasing an object, fixes #44 .
2013-07-29 19:14:35 +08:00
Cheng Zhao
2f2cbce9b9
[Win] Override node's console and output stream with chromium's logging.
...
On Window node doesn't outputing as GUI program, so we have to switch to
chromium's implementation. Hacking into node (like what we did before
this commit) would sometimes make the outputing blocked.
2013-07-25 20:06:23 +08:00
Cheng Zhao
25d9c1a14d
Add process.activateUvLoop() API.
2013-07-09 20:38:44 +08:00
Cheng Zhao
b5bc347cd4
cpplint 💄
2013-07-07 16:26:59 +08:00
Cheng Zhao
3176e03866
Ranged for is not supported by VS 2010.
2013-07-01 21:54:18 +08:00
Cheng Zhao
230173da1a
snprintf is not supported by VS.
2013-07-01 21:47:21 +08:00
Cheng Zhao
ca389edc38
Implement process.crash() on Windows.
2013-07-01 21:35:00 +08:00
Cheng Zhao
1f8fd40195
Add auto-updater module.
2013-06-03 17:59:34 +08:00
Cheng Zhao
cbb467032d
Add process.crash() for both browser and renderer.
2013-06-01 16:06:29 +08:00
Cheng Zhao
cd42fcceb9
Add crash reporter module (based on Quincy).
2013-06-01 15:57:37 +08:00
Cheng Zhao
bb69d99423
Use - as filename seperator for coffee script files. Fixes #15 .
...
Also clean unused files and wrong file names.
2013-05-30 20:21:07 +08:00
Cheng Zhao
7cc04035c4
Add Menu API. (WIP)
2013-05-06 20:27:09 +08:00
Cheng Zhao
67f998357c
Make the CallbacksRegistry a separate module, though rather small.
2013-05-05 20:30:38 +08:00