/
tabs.cljs
129 lines (85 loc) · 4.36 KB
/
tabs.cljs
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
(ns chromex.app.tabs (:require-macros [chromex.app.tabs :refer [gen-wrap]])
(:require [chromex.core]))
; -- properties -------------------------------------------------------------------------------------------------------------
(defn tab-id-none* [config]
(gen-wrap :property ::tab-id-none config))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get* [config tab-id]
(gen-wrap :function ::get config tab-id))
(defn get-current* [config]
(gen-wrap :function ::get-current config))
(defn connect* [config tab-id connect-info]
(gen-wrap :function ::connect config tab-id connect-info))
(defn send-request* [config tab-id request]
(gen-wrap :function ::send-request config tab-id request))
(defn send-message* [config tab-id message options]
(gen-wrap :function ::send-message config tab-id message options))
(defn get-selected* [config window-id]
(gen-wrap :function ::get-selected config window-id))
(defn get-all-in-window* [config window-id]
(gen-wrap :function ::get-all-in-window config window-id))
(defn create* [config create-properties]
(gen-wrap :function ::create config create-properties))
(defn duplicate* [config tab-id]
(gen-wrap :function ::duplicate config tab-id))
(defn query* [config query-info]
(gen-wrap :function ::query config query-info))
(defn highlight* [config highlight-info]
(gen-wrap :function ::highlight config highlight-info))
(defn update* [config tab-id update-properties]
(gen-wrap :function ::update config tab-id update-properties))
(defn move* [config tab-ids move-properties]
(gen-wrap :function ::move config tab-ids move-properties))
(defn reload* [config tab-id reload-properties]
(gen-wrap :function ::reload config tab-id reload-properties))
(defn remove* [config tab-ids]
(gen-wrap :function ::remove config tab-ids))
(defn detect-language* [config tab-id]
(gen-wrap :function ::detect-language config tab-id))
(defn capture-visible-tab* [config window-id options]
(gen-wrap :function ::capture-visible-tab config window-id options))
(defn execute-script* [config tab-id details]
(gen-wrap :function ::execute-script config tab-id details))
(defn insert-css* [config tab-id details]
(gen-wrap :function ::insert-css config tab-id details))
(defn set-zoom* [config tab-id zoom-factor]
(gen-wrap :function ::set-zoom config tab-id zoom-factor))
(defn get-zoom* [config tab-id]
(gen-wrap :function ::get-zoom config tab-id))
(defn set-zoom-settings* [config tab-id zoom-settings]
(gen-wrap :function ::set-zoom-settings config tab-id zoom-settings))
(defn get-zoom-settings* [config tab-id]
(gen-wrap :function ::get-zoom-settings config tab-id))
(defn discard* [config tab-id]
(gen-wrap :function ::discard config tab-id))
(defn go-forward* [config tab-id]
(gen-wrap :function ::go-forward config tab-id))
(defn go-back* [config tab-id]
(gen-wrap :function ::go-back config tab-id))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-created* [config channel & args]
(gen-wrap :event ::on-created config channel args))
(defn on-updated* [config channel & args]
(gen-wrap :event ::on-updated config channel args))
(defn on-moved* [config channel & args]
(gen-wrap :event ::on-moved config channel args))
(defn on-selection-changed* [config channel & args]
(gen-wrap :event ::on-selection-changed config channel args))
(defn on-active-changed* [config channel & args]
(gen-wrap :event ::on-active-changed config channel args))
(defn on-activated* [config channel & args]
(gen-wrap :event ::on-activated config channel args))
(defn on-highlight-changed* [config channel & args]
(gen-wrap :event ::on-highlight-changed config channel args))
(defn on-highlighted* [config channel & args]
(gen-wrap :event ::on-highlighted config channel args))
(defn on-detached* [config channel & args]
(gen-wrap :event ::on-detached config channel args))
(defn on-attached* [config channel & args]
(gen-wrap :event ::on-attached config channel args))
(defn on-removed* [config channel & args]
(gen-wrap :event ::on-removed config channel args))
(defn on-replaced* [config channel & args]
(gen-wrap :event ::on-replaced config channel args))
(defn on-zoom-change* [config channel & args]
(gen-wrap :event ::on-zoom-change config channel args))