/* Copyright (C) 2009-2012 Alexander Butenko Copyright (C) 2009-2012 Christian Dywan This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. */ #ifndef __FORMHISTORY_FRONTEND_H__ #define __FORMHISTORY_FRONTEND_H__ #include #include #include "config.h" #if HAVE_UNISTD_H #include #endif #define MAXPASSSIZE 64 typedef struct { MidoriDatabase* database; sqlite3* db; WebKitDOMElement* element; int completion_timeout; GtkTreeModel* completion_model; GtkWidget* treeview; GtkWidget* popup; gchar* oldkeyword; glong selection_index; gchar* master_password; int master_password_canceled; } FormHistoryPriv; typedef struct { gchar* domain; gchar* form_data; FormHistoryPriv* priv; } FormhistoryPasswordEntry; FormHistoryPriv* formhistory_private_new (); void formhistory_private_destroy (FormHistoryPriv *priv); gboolean formhistory_construct_popup_gui (FormHistoryPriv* priv); void formhistory_setup_suggestions (WebKitWebView* web_view, JSContextRef js_context, MidoriExtension* extension); void formhistory_suggestions_hide_cb (WebKitDOMElement* element, WebKitDOMEvent* dom_event, FormHistoryPriv* priv); #endif