You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-23Lines changed: 11 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Introduction
2
2
============
3
-
This is a NodeJS module for WebKit. With this module, your Javascript code in HTML can call NodeJS functions directly:
3
+
This is a NodeJS module for WebKit. With this module, your Javascript code in HTML can call NodeJS functions directly. The following demo lists the current directory in the page:
4
4
5
5
<html><head>
6
6
<title>testfs</title>
@@ -36,38 +36,26 @@ From NodeJS code, you can manipulate DOM or run Javascript in DOM context as wel
36
36
Dependencies
37
37
============
38
38
39
-
A patched version of WebKit (libwebkitnode) is need to make this possible. Prebuilt binaries for Debian and Ubuntu can be downloaded from:
39
+
A patched version of CEF(Chromium Embedded Framework) is need to make this possible. Prebuilt binaries are available for Linux (Debian and Ubuntu), Windows and OSX.
40
40
41
-
deb http://libwebkitnode.s3.amazonaws.com/ dist/
41
+
The source of Chromium is at https://github.com/rogerwang/chromium
42
42
43
-
where "dist" can be "unstable" for Debian sid, or "natty", "oneiric" for Ubuntu.
43
+
Other hacks on the dependencies are:
44
44
45
-
NOTE: currently 64bit binaries are available for Ubuntu oneiric only. And we're working on Windows and OSX ports.
45
+
https://github.com/rogerwang/node
46
+
https://github.com/rogerwang/libuv
46
47
47
-
The source of libwebkitnode is at https://github.com/rogerwang/webkit-node
48
48
49
+
Build from source
50
+
=================
49
51
50
-
Installation
51
-
============
52
-
53
-
* The following package is needed to build this:
54
-
55
-
nodejs-dev libwebkitnode-dev libev-dev
56
-
57
-
* Build:
58
-
59
-
node-waf configure build
60
-
61
-
* Run sample:
62
-
63
-
node tests/helloworld.js tests/testfs.html
64
52
65
53
How it works
66
54
============
67
55
68
-
*WebKitGtk's (glib based) main loop is merged with libev's main loop in NodeJS (Thanks to the code from node-gtk and EV::Glib project), so they can run in the same process.
56
+
*Chromium's (render process) main loop is merged with libev's main loop in NodeJS, so they can run in the same process.
69
57
70
-
* WebKit is patched so we can switch the Javascript engine from jsc to V8, and then the V8 context is merged (actually bridged) with the context from NodeJS. This makes NodeJS functions accessiable in web page. (Thanks to Nayan Kumar for the webkit-v8 work)
58
+
* WebKit is patched so the V8 context is merged (actually bridged) with the context from NodeJS. This makes NodeJS functions accessiable in web page.
71
59
72
60
Community
73
61
=========
@@ -78,7 +66,7 @@ node-webkit@googlegroups.com
78
66
79
67
http://groups.google.com/group/node-webkit
80
68
81
-
subscribe via mailto:node-webkit+subscribe@googlegroups.com
69
+
subscribe via node-webkit+subscribe@googlegroups.com
0 commit comments