379aaa9f695bcd78378f3227cb8af55e303030c1
[uzbl-mobile] / uzbl.h
1 typedef struct {
2     char* name;
3     char* param;
4 } Action;
5
6
7 static gboolean
8 new_window_cb (WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequest *request, WebKitWebNavigationAction *navigation_action, WebKitWebPolicyDecision *policy_decision, gpointer user_data);
9
10 WebKitWebView*
11 create_web_view_cb (WebKitWebView  *web_view, WebKitWebFrame *frame, gpointer user_data);
12
13 static gboolean
14 download_cb (WebKitWebView *web_view, GObject *download, gpointer user_data);
15
16 static void
17 toggle_status_cb (WebKitWebView* page, const char *param);
18
19 static void
20 link_hover_cb (WebKitWebView* page, const gchar* title, const gchar* link, gpointer data);
21
22 static void
23 title_change_cb (WebKitWebView* web_view, WebKitWebFrame* web_frame, const gchar* title, gpointer data);
24
25 static void
26 progress_change_cb (WebKitWebView* page, gint progress, gpointer data);
27
28 static void
29 load_commit_cb (WebKitWebView* page, WebKitWebFrame* frame, gpointer data);
30
31 static void
32 destroy_cb (GtkWidget* widget, gpointer data);
33
34 static void
35 log_history_cb ();
36
37 static void
38 commands_hash(void);
39
40 void
41 free_action(gpointer act);
42
43 Action*
44 new_action(const gchar *name, const gchar *param);
45
46 static bool
47 file_exists (const char * filename);
48
49 void
50 set_insert_mode(WebKitWebView *page, const gchar *param);
51
52 static void
53 load_uri (WebKitWebView * web_view, const gchar *param);
54
55 static void
56 new_window_load_uri (const gchar * uri);
57
58 static void
59 close_uzbl (WebKitWebView *page, const char *param);
60
61 static gboolean
62 run_command_async(const char *command, const char *args);
63
64 static gboolean
65 run_command_sync(const char *command, const char *args, char **stdout);
66
67 static void
68 spawn(WebKitWebView *web_view, const char *param);
69
70 static void
71 parse_command(const char *cmd, const char *param);
72
73 static void
74 parse_line(char *line);
75
76 static void
77 control_fifo(GIOChannel *fd);
78
79 static void
80 create_fifo();
81
82 static void
83 *control_socket();
84  
85 static void
86 setup_threading ();
87
88 static void
89 update_title (void);
90  
91 static gboolean
92 key_press_cb (WebKitWebView* page, GdkEventKey* event);
93
94 static GtkWidget*
95 create_browser ();
96
97 static GtkWidget*
98 create_mainbar ();
99
100 static
101 GtkWidget* create_window ();
102
103 static void
104 add_binding (const gchar *key, const gchar *act);
105
106 static void
107 settings_init ();
108
109 /* static void */
110 /* cookie_recieved_action (SoupCookieJar *jar, */
111                                    /* SoupCookie    *old_cookie, */
112                                    /* SoupCookie    *new_cookie, */
113                                    /* gpointer       user_data); */
114 static void
115 catch_cookies (SoupSession *session,
116                            SoupMessage *msg,
117                            gpointer     user_data);
118                                 /* SoupSocket  *socket, */
119                                 /* gpointer     user_data); */
120 /* vi: set et ts=4: */