ui/gtk/webview.h

changeset 469
3f6142271f58
parent 468
1f251c462f74
child 472
9ec14d31158a
equal deleted inserted replaced
468:1f251c462f74 469:3f6142271f58
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 #ifndef WEBVIEW_H 28 #ifndef WEBVIEW_H
29 #define WEBVIEW_H 29 #define WEBVIEW_H
30 30
31 #include "../ui/webview.h"
32 #include <webkit/webkit.h>
33
31 #ifdef __cplusplus 34 #ifdef __cplusplus
32 extern "C" { 35 extern "C" {
33 #endif 36 #endif
34 37
35 enum WebViewDataType { 38 enum WebViewDataType {
36 WEBVIEW_CONTENT_URL, 39 WEBVIEW_CONTENT_URL,
37 WEBVIEW_CONTENT_CONTENT 40 WEBVIEW_CONTENT_CONTENT
38 }; 41 };
39 42
40 typedef struct WebViewData { 43 typedef struct WebViewData {
41 GtkWidget *widget; 44 WebKitWebView *webview;
42 char *uri; 45 char *uri;
43 char *mimetype; 46 char *mimetype;
44 char *encoding; 47 char *encoding;
45 char *content; 48 char *content;
46 size_t contentlength; 49 size_t contentlength;
47 enum WebViewDataType type; 50 enum WebViewDataType type;
51
52 double zoom;
53 UiBool javascript;
48 } WebViewData; 54 } WebViewData;
49 55
50 void* ui_webview_get(UiGeneric *g); 56 void* ui_webview_get(UiGeneric *g);
51 const char* ui_webview_get_type(UiGeneric *g); 57 const char* ui_webview_get_type(UiGeneric *g);
52 int ui_webview_set(UiGeneric *g, void *value, const char *type); 58 int ui_webview_set(UiGeneric *g, void *value, const char *type);

mercurial