/
input_method_private.cljs
70 lines (46 loc) · 2.69 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
(ns chromex.app.input-method-private (:require-macros [chromex.app.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 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))
; -- 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))