Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/python/hulahop.defs
blob: d07bf169a9e19d9d9262840b707c0921767fb1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
(define-object WebView
  (in-module "Hulahop")
  (parent "GtkBin")
  (c-name "HulahopWebView")
  (gtype-id "HULAHOP_TYPE_WEB_VIEW")
)

(define-virtual setup
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_setup")
  (return-type "none")
)

(define-method grab_focus
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_grab_focus")
  (return-type "none")
)

(define-method get_browser
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_get_browser")
  (return-type "none")
)

(define-method get_window_root
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_get_window_root")
  (return-type "none")
)

(define-function startup
  (c-name "hulahop_startup")
  (return-type "gboolean")
)

(define-function shutdown
  (c-name "hulahop_shutdown")
  (return-type "none")
)

(define-function set_profile_path
  (c-name "hulahop_set_profile_path")
  (parameters
    '("gchar*" "path")
  )
  (return-type "none")
)

(define-function add_components_path
  (c-name "hulahop_add_components_path")
  (parameters
    '("gchar*" "path")
  )
  (return-type "none")
)

(define-method push_js_context
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_push_js_context")
  (return-type "none")
)

(define-method pop_js_context
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_pop_js_context")
  (return-type "none")
)

(define-method evaluate_script
  (of-object "HulahopWebView")
  (c-name "hulahop_web_view_evaluate_script")
  (parameters
    '("gchar*" "script")
  )
  (return-type "none")
)

(define-function get_view_for_window
  (c-name "hulahop_get_view_for_window")
  (return-type "HulahopWebView*")
  (parameters
    '("PyObject*" "dom_window")
  )
)