2
Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
9
See the file COPYING for the full license text.
12
#ifndef __MIDORI_BROWSER_H__
13
#define __MIDORI_BROWSER_H__
15
#include <webkit/webkit.h>
17
#include <katze/katze.h>
21
#define MIDORI_TYPE_BROWSER \
22
(midori_browser_get_type ())
23
#define MIDORI_BROWSER(obj) \
24
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_BROWSER, MidoriBrowser))
25
#define MIDORI_BROWSER_CLASS(klass) \
26
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_BROWSER, MidoriBrowserClass))
27
#define MIDORI_IS_BROWSER(obj) \
28
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_BROWSER))
29
#define MIDORI_IS_BROWSER_CLASS(klass) \
30
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_BROWSER))
31
#define MIDORI_BROWSER_GET_CLASS(obj) \
32
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_BROWSER, MidoriBrowserClass))
34
typedef struct _MidoriBrowser MidoriBrowser;
35
typedef struct _MidoriBrowserPrivate MidoriBrowserPrivate;
36
typedef struct _MidoriBrowserClass MidoriBrowserClass;
40
GtkWindow parent_instance;
42
MidoriBrowserPrivate* priv;
45
struct _MidoriBrowserClass
47
GtkWindowClass parent_class;
51
(*window_object_cleared) (MidoriBrowser* browser,
52
WebKitWebFrame* web_frame,
53
JSContextRef* context,
54
JSObjectRef* window_object);
56
(*statusbar_text_changed) (MidoriBrowser* browser,
59
(*element_motion) (MidoriBrowser* browser,
60
const gchar* link_uri);
62
(*new_window) (MidoriBrowser* browser,
66
(*add_tab) (MidoriBrowser* browser,
69
(*add_uri) (MidoriBrowser* browser,
72
(*activate_action) (MidoriBrowser* browser,
75
(*quit) (MidoriBrowser* browser);
79
midori_browser_get_type (void);
82
midori_browser_new (void);
85
midori_browser_add_tab (MidoriBrowser* browser,
89
midori_browser_remove_tab (MidoriBrowser* browser,
93
midori_browser_add_xbel_item (MidoriBrowser* browser,
94
KatzeXbelItem* xbel_item);
97
midori_browser_add_uri (MidoriBrowser* browser,
101
midori_browser_activate_action (MidoriBrowser* browser,
105
midori_browser_set_current_page (MidoriBrowser* browser,
109
midori_browser_get_current_page (MidoriBrowser* browser);
112
midori_browser_set_current_tab (MidoriBrowser* browser,
116
midori_browser_get_current_tab (MidoriBrowser* browser);
119
midori_browser_get_current_web_view (MidoriBrowser* browser);
122
midori_browser_get_proxy_xbel_folder (MidoriBrowser* browser);
125
midori_browser_quit (MidoriBrowser* browser);
129
#endif /* __MIDORI_BROWSER_H__ */