X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=uzbl.h;h=91421bd980f2ddc8a692304c2750c13539e83c31;hb=0683d83a8058b36a4f351022afa8faddbae506ad;hp=81513a136f2fe35780c77e7637f66d9d0da22c6f;hpb=c7a26e5ad25b49dfb5532c9f33321ad815272cd1;p=uzbl-mobile diff --git a/uzbl.h b/uzbl.h index 81513a1..91421bd 100644 --- a/uzbl.h +++ b/uzbl.h @@ -71,10 +71,10 @@ typedef struct { GtkWidget* vbox; GtkWidget* mainbar; GtkWidget* mainbar_label; - GtkScrollbar* scbar_v; // Horizontal and Vertical Scrollbar - GtkScrollbar* scbar_h; // (These are still hidden) - GtkAdjustment* bar_v; // Information about document length - GtkAdjustment* bar_h; // and scrolling position + GtkScrollbar* scbar_v; /* Horizontal and Vertical Scrollbar */ + GtkScrollbar* scbar_h; /* (These are still hidden) */ + GtkAdjustment* bar_v; /* Information about document length */ + GtkAdjustment* bar_h; /* and scrolling position */ WebKitWebView* web_view; gchar* main_title; @@ -155,6 +155,7 @@ typedef struct { guint font_size; guint monospace_size; guint minimum_font_size; + gfloat zoom_level; guint disable_plugins; guint disable_scripts; guint autoload_img; @@ -172,6 +173,7 @@ typedef struct { gchar* base_url; gchar* html_endmarker; GString* html_buffer; + guint html_timeout; /* command list: name -> Command */ GHashTable* commands; @@ -243,6 +245,9 @@ static sigfunc * setup_signal(int signe, sigfunc *shandler); static gboolean +set_var_value(gchar *name, gchar *val); + +static gboolean new_window_cb (WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNetworkRequest *request, WebKitWebNavigationAction *navigation_action, WebKitWebPolicyDecision *policy_decision, gpointer user_data); WebKitWebView* @@ -412,6 +417,12 @@ save_cookies (SoupMessage *msg, static void set_var(WebKitWebView *page, GArray *argv); +static void +render_html(); + +static void +set_timeout(int seconds); + /* Command callbacks */ static void @@ -441,10 +452,15 @@ cmd_max_conns(); static void cmd_max_conns_host(); +/* exported WebKitWebSettings properties */ + static void cmd_font_size(); static void +cmd_zoom_level(); + +static void cmd_disable_plugins(); static void @@ -498,7 +514,4 @@ cmd_inject_html(); static void cmd_caret_browsing(); -static void -cmd_set_mode(); - /* vi: set et ts=4: */