Skip to content

Instantly share code, notes, and snippets.

@milani
Created March 27, 2012 01:41
Show Gist options
  • Save milani/2211572 to your computer and use it in GitHub Desktop.
Save milani/2211572 to your computer and use it in GitHub Desktop.
buggy Webkit widget for node-gui
#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 */
#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