Cheng Zhao
3f1d540077
Implement the confirm().
2014-03-01 20:03:49 +08:00
Cheng Zhao
ff9027fa95
Use the dialog API to implement alert().
2014-03-01 20:01:04 +08:00
Cheng Zhao
753a1e7aff
Separate overrides from init script.
2014-03-01 20:00:39 +08:00
Cheng Zhao
7d93b4a48f
Fix polluting devtools in some cases.
2014-02-24 13:14:01 +08:00
Cheng Zhao
ed34aa6fb3
Disable node integration in devtools.
2014-02-21 22:42:33 +08:00
Cheng Zhao
984d60f935
Override default window.close, fixes #70 .
2014-02-17 18:19:55 +08:00
Cheng Zhao
a85075103f
Move resources file under resources/
2014-01-31 19:34:31 +08:00
Cheng Zhao
192014cc3f
Do not use plain string iterals.
2014-01-31 10:41:20 +08:00
Cheng Zhao
ec00da416f
Rename iframe-security to node-integration.
2014-01-30 23:20:12 +08:00
Cheng Zhao
d4929de33c
Add iframe-security support.
2014-01-30 22:47:21 +08:00
Cheng Zhao
76098255f0
Should decode when setting __filename from location.
2014-01-24 21:20:30 +08:00
Cheng Zhao
249366c90a
Restart renderer process for all navigations and reloads, fixes #157 .
2014-01-14 16:03:01 +08:00
Cheng Zhao
b0c23294fe
Also use uv loop fixes in browser process.
2014-01-13 13:57:08 +08:00
Cheng Zhao
290dd36bb0
Activate uv loop when calling childProcess.fork.
...
Fixes #156 .
2014-01-13 11:52:24 +08:00
Cheng Zhao
3747048218
💄 get_uv_env() => uv_env().
2014-01-10 16:29:38 +08:00
Cheng Zhao
e536d0e7a8
Leak the node environment when unloading.
2014-01-10 11:04:54 +08:00
Cheng Zhao
fff743053a
Store all created environments in renderer.
2014-01-09 22:13:06 +08:00
Cheng Zhao
e7b7efeb0a
Wrap uv loop with web page context in renderer.
2014-01-09 21:35:29 +08:00
Cheng Zhao
fe4841a1cd
Set module's filename to path of html.
...
The relative require relies on module.filename to work as expected.
2014-01-07 14:30:18 +08:00
Cheng Zhao
0de40febab
Add basic support for window.open's features.
2013-12-27 14:57:53 +08:00
Cheng Zhao
15a9be6b93
Implement a simple window.open with pure js.
2013-12-27 14:39:23 +08:00
Cheng Zhao
031426d54e
Use our fork of V8ValueConverter for all cases.
2013-12-23 22:42:21 +08:00
Cheng Zhao
980e8ca4dc
Free the node environment when releasing context.
2013-12-23 22:19:51 +08:00
Cheng Zhao
df0094b6cb
Move node integration from RenderViewObserver to RendererClient.
2013-12-23 22:08:45 +08:00
Cheng Zhao
c04a9933cc
Fix __filename on Windows.
2013-12-17 22:16:15 +08:00
Cheng Zhao
998e9792fb
Make setImmediate have the same side effect with upstream node.
2013-12-15 19:09:00 +08:00
Cheng Zhao
0a84c30d3b
Redirect window.onerror to uncaughtException.
2013-12-15 16:32:41 +08:00
Cheng Zhao
7ba03ce23d
Add setImmediate function in renderer.
2013-12-15 16:21:23 +08:00
Cheng Zhao
aa3e8385df
Set __filename to the html file in renderer.
2013-12-15 16:11:00 +08:00
Cheng Zhao
886ebdb002
Use node's Environment feature to add "require" in renderer.
2013-12-15 14:20:28 +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
623e0f3ae4
Release render view's remote objects when it's deleted.
...
Privously we release them when the window is unloaded, which is not
correct since a render view can have multiple windows (or js contexts)
and when the unload event is emitted the render view could already have
gone.
This PR does the cleaning work purely in browser, so here is no need to
worry about renderer's life time.
2013-12-06 14:44:25 +08:00
Cheng Zhao
4a1ee39156
Get rid of manually converting to base::Value when possible.
2013-12-05 23:47:07 +08:00
Cheng Zhao
e5afa72b4d
Fail quietly when getting null renderer view.
...
It happens when the window is closing.
2013-12-05 23:34:43 +08:00
Cheng Zhao
4625f051c8
Simplify V8 operations in renderer ipc code.
2013-12-05 22:12:27 +08:00
Cheng Zhao
11ca836afc
Use the convient V8 wrapper in all files.
2013-09-24 09:41:54 +08:00
Cheng Zhao
a824c88352
Use same name convention in string16_conversions.
2013-09-23 23:00:58 +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
07b5039c64
Make sure all sync messages get a return value.
2013-09-20 21:39:07 +08:00
Cheng Zhao
b225a59a15
Prefer event.returnValue to event.result for sync messages.
2013-09-20 21:37:00 +08:00
Cheng Zhao
4223867dbc
Send and receive the AtomViewHostMsg_UpdateDraggableRegions message.
2013-09-05 20:06:54 +08:00
Cheng Zhao
db890feb51
Don't pollute console with error stack.
2013-08-30 13:04:21 +08:00
Cheng Zhao
9e16e41bb3
Enable creating object from remote object's member.
2013-08-25 20:44:52 +08:00
Cheng Zhao
c86acc4cd7
Add remote.createFunctionWithReturnValue API.
2013-08-25 17:22:36 +08:00
Cheng Zhao
2fd91e8c96
Enable passing objects and arrays when calling remote function.
2013-08-14 21:51:51 +08:00
Cheng Zhao
cd19666307
Remove the useless remote.getObject API.
2013-07-29 16:35:25 +08:00
Cheng Zhao
51a632d7d9
Don't make use of the 'id' property when sending objects.
...
Fixes #43 .
2013-07-26 16:40:29 +08:00