2009-09-29 Jeffrey Stedfast <fejj@novell.com>
[moon.git] / plugin / browser-bridge.h
blob8533ce728b5d1c377f1fd8f9fcc92f0c5327d77a
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * browser-bridge.h:
5 * Contact:
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2007 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #ifndef BROWSER_BRIDGE
15 #define BROWSER_BRIDGE
17 #include "plugin-class.h"
18 #include "plugin-downloader.h"
20 #define DOWNLOADER_OK 0
21 #define DOWNLOADER_ERR -1
23 G_BEGIN_DECLS
25 BrowserBridge *CreateBrowserBridge ();
27 G_END_DECLS
29 class BrowserBridge {
30 public:
31 // HtmlObject
32 virtual const char *HtmlElementGetText (NPP npp, const char *element_id) = 0;
33 virtual gpointer HtmlObjectAttachEvent (NPP npp, NPObject *npobj, const char *name, callback_dom_event cb, gpointer context) = 0;
34 virtual void HtmlObjectDetachEvent (NPP npp, const char *name, gpointer listener_ptr) = 0;
36 virtual DownloaderRequest* CreateDownloaderRequest (const char *method, const char *uri, bool disable_cache) = 0;
39 #endif /* BROWSER_BRIDGE */