Created
March 27, 2012 01:41
-
-
Save milani/2211572 to your computer and use it in GitHub Desktop.
buggy Webkit widget for node-gui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <webkit/webkit.h> | |
#include "node_gui_webkit_view.h" | |
namespace clip { | |
Persistent<FunctionTemplate> WebkitView::constructor_template; | |
void WebkitView::Init (Handle<v8::Object> target) { | |
ATTACH_CONSTRUCTOR("WebkitView", WebkitView, (Constructor<WebkitView, webkit_web_view_get_type>)); | |
ATTACH_INHERITANCE(Container); | |
NODE_SET_PROTOTYPE_METHOD (constructor_template, "loadUri", (SetterMethod<gchar*, WebKitWebView, webkit_web_view_load_uri>)); | |
END_CONSTRUCTOR (); | |
} | |
} /* clip */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NODE_GUI_WEBKIT_VIEW_H | |
#define NODE_GUI_WEBKIT_VIEW_H | |
#include "node_gui_container.h" | |
namespace clip { | |
class WebkitView: public Container { | |
DECLARE_NODE_OBJECT (WebkitView); | |
}; | |
} /* clip */ | |
#endif /* end of NODE_GUI_WEBKIT_VIEW_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment