~ivaldi/midori/tabby-title-changed

« back to all changes in this revision

Viewing changes to midori/midori-browser.h

  • Committer: Christian Dywan
  • Date: 2008-06-01 21:47:27 UTC
  • Revision ID: git-v1:b511f12b9b4b063610161f2229b94a24a86be0fc
Rename folder 'src' to 'midori'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
 
3
 
 
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.
 
8
 
 
9
 See the file COPYING for the full license text.
 
10
*/
 
11
 
 
12
#ifndef __MIDORI_BROWSER_H__
 
13
#define __MIDORI_BROWSER_H__
 
14
 
 
15
#include <webkit/webkit.h>
 
16
 
 
17
#include <katze/katze.h>
 
18
 
 
19
G_BEGIN_DECLS
 
20
 
 
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))
 
33
 
 
34
typedef struct _MidoriBrowser                MidoriBrowser;
 
35
typedef struct _MidoriBrowserPrivate         MidoriBrowserPrivate;
 
36
typedef struct _MidoriBrowserClass           MidoriBrowserClass;
 
37
 
 
38
struct _MidoriBrowser
 
39
{
 
40
    GtkWindow parent_instance;
 
41
 
 
42
    MidoriBrowserPrivate* priv;
 
43
};
 
44
 
 
45
struct _MidoriBrowserClass
 
46
{
 
47
    GtkWindowClass parent_class;
 
48
 
 
49
    /* Signals */
 
50
    void
 
51
    (*window_object_cleared)   (MidoriBrowser*       browser,
 
52
                                WebKitWebFrame*      web_frame,
 
53
                                JSContextRef*        context,
 
54
                                JSObjectRef*         window_object);
 
55
    void
 
56
    (*statusbar_text_changed)  (MidoriBrowser*       browser,
 
57
                                const gchar*         text);
 
58
    void
 
59
    (*element_motion)          (MidoriBrowser*       browser,
 
60
                                const gchar*         link_uri);
 
61
    void
 
62
    (*new_window)              (MidoriBrowser*       browser,
 
63
                                const gchar*         uri);
 
64
 
 
65
    void
 
66
    (*add_tab)                 (MidoriBrowser*       browser,
 
67
                                GtkWidget*           widget);
 
68
    void
 
69
    (*add_uri)                 (MidoriBrowser*       browser,
 
70
                                const gchar*         uri);
 
71
    void
 
72
    (*activate_action)         (MidoriBrowser*       browser,
 
73
                                const gchar*         name);
 
74
    void
 
75
    (*quit)                    (MidoriBrowser*       browser);
 
76
};
 
77
 
 
78
GType
 
79
midori_browser_get_type               (void);
 
80
 
 
81
MidoriBrowser*
 
82
midori_browser_new                    (void);
 
83
 
 
84
gint
 
85
midori_browser_add_tab                (MidoriBrowser*     browser,
 
86
                                       GtkWidget*         widget);
 
87
 
 
88
void
 
89
midori_browser_remove_tab             (MidoriBrowser*     browser,
 
90
                                       GtkWidget*         widget);
 
91
 
 
92
gint
 
93
midori_browser_add_xbel_item          (MidoriBrowser*     browser,
 
94
                                       KatzeXbelItem*     xbel_item);
 
95
 
 
96
gint
 
97
midori_browser_add_uri                (MidoriBrowser*     browser,
 
98
                                       const gchar*       uri);
 
99
 
 
100
void
 
101
midori_browser_activate_action        (MidoriBrowser*     browser,
 
102
                                       const gchar*       name);
 
103
 
 
104
void
 
105
midori_browser_set_current_page       (MidoriBrowser*     browser,
 
106
                                       gint               n);
 
107
 
 
108
gint
 
109
midori_browser_get_current_page       (MidoriBrowser*     browser);
 
110
 
 
111
void
 
112
midori_browser_set_current_tab        (MidoriBrowser*     browser,
 
113
                                       GtkWidget*         widget);
 
114
 
 
115
GtkWidget*
 
116
midori_browser_get_current_tab        (MidoriBrowser*     browser);
 
117
 
 
118
GtkWidget*
 
119
midori_browser_get_current_web_view   (MidoriBrowser*     browser);
 
120
 
 
121
KatzeXbelItem*
 
122
midori_browser_get_proxy_xbel_folder  (MidoriBrowser*     browser);
 
123
 
 
124
void
 
125
midori_browser_quit                   (MidoriBrowser*     browser);
 
126
 
 
127
G_END_DECLS
 
128
 
 
129
#endif /* __MIDORI_BROWSER_H__ */