~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to plugin/browser-bridge.h

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/*
 
3
 * browser-bridge.h: 
 
4
 *
 
5
 * Contact:
 
6
 *   Moonlight List (moonlight-list@lists.ximian.com)
 
7
 *
 
8
 * Copyright 2007 Novell, Inc. (http://www.novell.com)
 
9
 *
 
10
 * See the LICENSE file included with the distribution for details.
 
11
 *
 
12
 */
 
13
 
 
14
#ifndef BROWSER_BRIDGE
 
15
#define BROWSER_BRIDGE
 
16
 
 
17
#include "plugin-class.h"
 
18
#include "plugin-downloader.h"
 
19
 
 
20
#define DOWNLOADER_OK 0
 
21
#define DOWNLOADER_ERR -1
 
22
 
 
23
G_BEGIN_DECLS
 
24
 
 
25
BrowserBridge *CreateBrowserBridge ();
 
26
 
 
27
G_END_DECLS
 
28
 
 
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) = 0;
 
34
        virtual void     HtmlObjectDetachEvent (NPP npp, const char *name, gpointer listener_ptr) = 0;
 
35
 
 
36
        virtual DownloaderRequest* CreateDownloaderRequest (const char *method, const char *uri) = 0;
 
37
};
 
38
 
 
39
#endif /* BROWSER_BRIDGE */