~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to midori/midori-webview.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_WEB_VIEW_H__
 
13
#define __MIDORI_WEB_VIEW_H__
 
14
 
 
15
#include <webkit/webkit.h>
 
16
 
 
17
#include <katze/katze.h>
 
18
#include "midori-websettings.h"
 
19
 
 
20
G_BEGIN_DECLS
 
21
 
 
22
#define MIDORI_TYPE_WEB_VIEW \
 
23
    (midori_web_view_get_type ())
 
24
#define MIDORI_WEB_VIEW(obj) \
 
25
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_WEB_VIEW, MidoriWebView))
 
26
#define MIDORI_WEB_VIEW_CLASS(klass) \
 
27
    (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_WEB_VIEW, MidoriWebViewClass))
 
28
#define MIDORI_IS_WEB_VIEW(obj) \
 
29
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_WEB_VIEW))
 
30
#define MIDORI_IS_WEB_VIEW_CLASS(klass) \
 
31
    (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_WEB_VIEW))
 
32
#define MIDORI_WEB_VIEW_GET_CLASS(obj) \
 
33
    (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_WEB_VIEW, MidoriWebViewClass))
 
34
 
 
35
typedef struct _MidoriWebView                MidoriWebView;
 
36
typedef struct _MidoriWebViewPrivate         MidoriWebViewPrivate;
 
37
typedef struct _MidoriWebViewClass           MidoriWebViewClass;
 
38
 
 
39
struct _MidoriWebView
 
40
{
 
41
    WebKitWebView parent_instance;
 
42
 
 
43
    MidoriWebViewPrivate* priv;
 
44
};
 
45
 
 
46
struct _MidoriWebViewClass
 
47
{
 
48
    WebKitWebViewClass parent_class;
 
49
 
 
50
    /* Signals */
 
51
    void
 
52
    (*progress_started)       (MidoriWebView*        web_view,
 
53
                               guint                 progress);
 
54
    void
 
55
    (*progress_changed)       (MidoriWebView*        web_view,
 
56
                               guint                 progress);
 
57
    void
 
58
    (*progress_done)          (MidoriWebView*        web_view,
 
59
                               guint                 progress);
 
60
    void
 
61
    (*load_done)              (MidoriWebView*        web_view,
 
62
                               WebKitWebFrame*       frame);
 
63
    void
 
64
    (*statusbar_text_changed) (MidoriWebView*        web_view,
 
65
                               const gchar*          text);
 
66
    void
 
67
    (*element_motion)         (MidoriWebView*        web_view,
 
68
                               const gchar*          link_uri);
 
69
    void
 
70
    (*close)                  (MidoriWebView*        web_view);
 
71
    void
 
72
    (*new_tab)                (MidoriWebView*        web_view,
 
73
                               const gchar*          uri);
 
74
    void
 
75
    (*new_window)             (MidoriWebView*        web_view,
 
76
                               const gchar*          uri);
 
77
    void
 
78
    (*create_web_view)        (MidoriWebView*        web_view,
 
79
                               MidoriWebView*        new_web_view);
 
80
};
 
81
 
 
82
GType
 
83
midori_web_view_get_type               (void);
 
84
 
 
85
GtkWidget*
 
86
midori_web_view_new                    (void);
 
87
 
 
88
void
 
89
midori_web_view_set_settings           (MidoriWebView*     web_view,
 
90
                                        MidoriWebSettings* web_settings);
 
91
 
 
92
GtkWidget*
 
93
midori_web_view_get_proxy_menu_item    (MidoriWebView*     web_view);
 
94
 
 
95
GtkWidget*
 
96
midori_web_view_get_proxy_tab_label    (MidoriWebView*     web_view);
 
97
 
 
98
KatzeXbelItem*
 
99
midori_web_view_get_proxy_xbel_item    (MidoriWebView*     web_view);
 
100
 
 
101
gboolean
 
102
midori_web_view_is_loading             (MidoriWebView*     web_view);
 
103
 
 
104
gint
 
105
midori_web_view_get_progress           (MidoriWebView*     web_view);
 
106
 
 
107
const gchar*
 
108
midori_web_view_get_display_uri        (MidoriWebView*     web_view);
 
109
 
 
110
const gchar*
 
111
midori_web_view_get_display_title      (MidoriWebView*     web_view);
 
112
 
 
113
const gchar*
 
114
midori_web_view_get_link_uri           (MidoriWebView*     web_view);
 
115
 
 
116
gfloat
 
117
midori_web_view_get_zoom_level         (MidoriWebView*     web_view);
 
118
 
 
119
G_END_DECLS
 
120
 
 
121
#endif /* __MIDORI_WEB_VIEW_H__ */