/
input_method_private.cljs
91 lines (60 loc) · 3.48 KB
/
input_method_private.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
(ns chromex.ext.input-method-private (:require-macros [chromex.ext.input-method-private :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get-input-method-config* [config]
(gen-wrap :function ::get-input-method-config config))
(defn get-input-methods* [config]
(gen-wrap :function ::get-input-methods config))
(defn get-current-input-method* [config]
(gen-wrap :function ::get-current-input-method config))
(defn set-current-input-method* [config input-method-id]
(gen-wrap :function ::set-current-input-method config input-method-id))
(defn fetch-all-dictionary-words* [config]
(gen-wrap :function ::fetch-all-dictionary-words config))
(defn add-word-to-dictionary* [config word]
(gen-wrap :function ::add-word-to-dictionary config word))
(defn get-encrypt-sync-enabled* [config]
(gen-wrap :function ::get-encrypt-sync-enabled config))
(defn set-xkb-layout* [config xkb-name]
(gen-wrap :function ::set-xkb-layout config xkb-name))
(defn finish-composing-text* [config parameters]
(gen-wrap :function ::finish-composing-text config parameters))
(defn set-selection-range* [config parameters]
(gen-wrap :function ::set-selection-range config parameters))
(defn notify-ime-menu-item-activated* [config engine-id name]
(gen-wrap :function ::notify-ime-menu-item-activated config engine-id name))
(defn show-input-view* [config]
(gen-wrap :function ::show-input-view config))
(defn open-options-page* [config input-method-id]
(gen-wrap :function ::open-options-page config input-method-id))
(defn get-composition-bounds* [config]
(gen-wrap :function ::get-composition-bounds config))
(defn get-surrounding-text* [config before-length after-length]
(gen-wrap :function ::get-surrounding-text config before-length after-length))
(defn get-setting* [config engine-id key]
(gen-wrap :function ::get-setting config engine-id key))
(defn set-setting* [config engine-id key value]
(gen-wrap :function ::set-setting config engine-id key value))
(defn set-composition-range* [config parameters]
(gen-wrap :function ::set-composition-range config parameters))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-changed* [config channel & args]
(gen-wrap :event ::on-changed config channel args))
(defn on-composition-bounds-changed* [config channel & args]
(gen-wrap :event ::on-composition-bounds-changed config channel args))
(defn on-dictionary-loaded* [config channel & args]
(gen-wrap :event ::on-dictionary-loaded config channel args))
(defn on-dictionary-changed* [config channel & args]
(gen-wrap :event ::on-dictionary-changed config channel args))
(defn on-ime-menu-activation-changed* [config channel & args]
(gen-wrap :event ::on-ime-menu-activation-changed config channel args))
(defn on-ime-menu-list-changed* [config channel & args]
(gen-wrap :event ::on-ime-menu-list-changed config channel args))
(defn on-ime-menu-items-changed* [config channel & args]
(gen-wrap :event ::on-ime-menu-items-changed config channel args))
(defn on-focus* [config channel & args]
(gen-wrap :event ::on-focus config channel args))
(defn on-settings-changed* [config channel & args]
(gen-wrap :event ::on-settings-changed config channel args))
(defn on-screen-projection-changed* [config channel & args]
(gen-wrap :event ::on-screen-projection-changed config channel args))