1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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
25
BrowserBridge *CreateBrowserBridge ();
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) = 0;
34
virtual void HtmlObjectDetachEvent (NPP npp, const char *name, gpointer listener_ptr) = 0;
36
virtual DownloaderRequest* CreateDownloaderRequest (const char *method, const char *uri) = 0;
39
#endif /* BROWSER_BRIDGE */