~midori/midori/trunk

« back to all changes in this revision

Viewing changes to extensions/formhistory/formhistory-frontend.h

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-06-19 21:00:46 UTC
  • mfrom: (6216.1.10 midori.butcher)
  • Revision ID: tarmac-20130619210046-i3yv8cnkyjuafubb
Bump WebKit requirement to 1.8.3 and drop support for earlier versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    #include <unistd.h>
19
19
#endif
20
20
 
21
 
#if WEBKIT_CHECK_VERSION (1, 3, 1)
22
 
    #define FORMHISTORY_USE_GDOM 1
23
 
#else
24
 
    #define FORMHISTORY_USE_JS 1
25
 
#endif
26
21
#define MAXPASSSIZE 64
27
22
 
28
23
typedef struct
29
24
{
30
25
    sqlite3* db;
31
 
    #ifdef FORMHISTORY_USE_GDOM
32
26
    WebKitDOMElement* element;
33
27
    int completion_timeout;
34
28
    GtkTreeModel* completion_model;
36
30
    GtkWidget* popup;
37
31
    gchar* oldkeyword;
38
32
    glong selection_index;
39
 
    #else
40
 
    gchar* jsforms;
41
 
    #endif
42
33
    gchar* master_password;
43
34
    int master_password_canceled;
44
35
} FormHistoryPriv;
64
55
                               JSContextRef     js_context,
65
56
                               MidoriExtension* extension);
66
57
 
67
 
#ifdef FORMHISTORY_USE_GDOM
68
58
void
69
59
formhistory_suggestions_hide_cb (WebKitDOMElement* element,
70
60
                                 WebKitDOMEvent*   dom_event,
71
61
                                 FormHistoryPriv*  priv);
72
 
#endif
73
62
 
74
63
#endif