10 #include "DocLoader.h"
11 #include "DOMImplementation.h"
12 //#include "HTMLDocument.h"
15 #include "EventNames.h"
16 //#include "htmlnames.h"
20 #include "XLinkNames.h"
21 #include "SVGDocumentExtensions.h"
25 #include "RenderObject.h"
26 #include "GraphicsContext.h"
29 using namespace WebCore;
30 //using namespace HTMLNames;
32 static FrameGdk *frame;
33 static GdkWindow *win;
35 static void handle_event(GdkEvent *event)
37 frame->handleGdkEvent(event);
41 main(int argc, char *argv[])
45 gdk_init(&argc,&argv);
46 gdk_event_handler_set ((GdkEventFunc)handle_event, NULL, NULL);
47 loop = g_main_loop_new (NULL, TRUE);
51 attr.window_type = GDK_WINDOW_TOPLEVEL;
52 attr.wclass = GDK_INPUT_OUTPUT;
53 //see how where we handle motion here need to do the hint stuff
54 attr.event_mask = ((GDK_ALL_EVENTS_MASK^GDK_POINTER_MOTION_HINT_MASK));
55 win = gdk_window_new(NULL,&attr,0);
56 frame = new FrameGdk(win);
58 char *pg = " <html><head><title>Google</title> <body bgcolor=#ffffff text=#000000> <p><font size=-2/>2006 Google Hello bigworld from mike</p></body></html> ";
60 printf("OPENING URL == %s \n", argv[1]);
61 frame->openURL(argv[1]);
64 frame->createEmptyDocument();
65 frame->document()->open();
66 frame->write(pg,strlen(pg));
67 frame->document()->close();
69 frame->openURL("http://www.google.com");
73 g_main_loop_run (loop);