Skip to content

Commit a3a13eb

Browse files
committed
initial commit for integration with CEF3
1 parent 957c12c commit a3a13eb

14 files changed

+178
-8361
lines changed

README.md

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Introduction
22
============
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:
44

55
<html><head>
66
<title>testfs</title>
@@ -36,38 +36,26 @@ From NodeJS code, you can manipulate DOM or run Javascript in DOM context as wel
3636
Dependencies
3737
============
3838

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.
4040

41-
deb http://libwebkitnode.s3.amazonaws.com/ dist/
41+
The source of Chromium is at https://github.com/rogerwang/chromium
4242

43-
where "dist" can be "unstable" for Debian sid, or "natty", "oneiric" for Ubuntu.
43+
Other hacks on the dependencies are:
4444

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
4647

47-
The source of libwebkitnode is at https://github.com/rogerwang/webkit-node
4848

49+
Build from source
50+
=================
4951

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
6452

6553
How it works
6654
============
6755

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.
6957

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.
7159

7260
Community
7361
=========
@@ -78,7 +66,7 @@ node-webkit@googlegroups.com
7866

7967
http://groups.google.com/group/node-webkit
8068

81-
subscribe via mailto:node-webkit+subscribe@googlegroups.com
69+
subscribe via node-webkit+subscribe@googlegroups.com
8270

8371
Our vision
8472
==========

lib/index.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

nwebkit.gyp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
'targets': [
3+
{
4+
'target_name': 'nwebkit',
5+
'type': 'shared_library',
6+
'dependencies': [
7+
'../../cef/cef.gyp:libcef',
8+
'../../v8/tools/gyp/v8.gyp:v8',
9+
'../node/node.gyp:node',
10+
'../libuv/uv.gyp:uv',
11+
],
12+
'defines': [
13+
'USING_CEF_SHARED',
14+
],
15+
'include_dirs': [
16+
'.',
17+
'src',
18+
],
19+
'cflags!': ['-fvisibility=hidden'],
20+
'cflags_cc!': ['-fvisibility-inlines-hidden'],
21+
'sources': [
22+
'src/cef.cc',
23+
],
24+
}
25+
],
26+
}

package.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)