/
accessibility_private.cljs
85 lines (56 loc) · 3.67 KB
/
accessibility_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
(ns chromex.ext.accessibility-private (:require-macros [chromex.ext.accessibility-private :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get-display-name-for-locale* [config locale-code-to-translate display-locale-code]
(gen-wrap :function ::get-display-name-for-locale config locale-code-to-translate display-locale-code))
(defn get-battery-description* [config]
(gen-wrap :function ::get-battery-description config))
(defn set-native-accessibility-enabled* [config enabled]
(gen-wrap :function ::set-native-accessibility-enabled config enabled))
(defn set-focus-rings* [config focus-rings]
(gen-wrap :function ::set-focus-rings config focus-rings))
(defn set-highlights* [config rects color]
(gen-wrap :function ::set-highlights config rects color))
(defn set-keyboard-listener* [config enabled capture]
(gen-wrap :function ::set-keyboard-listener config enabled capture))
(defn darken-screen* [config enabled]
(gen-wrap :function ::darken-screen config enabled))
(defn set-switch-access-menu-state* [config show element-bounds item-count]
(gen-wrap :function ::set-switch-access-menu-state config show element-bounds item-count))
(defn forward-key-events-to-switch-access* [config should-forward]
(gen-wrap :function ::forward-key-events-to-switch-access config should-forward))
(defn set-native-chrome-vox-arc-support-for-current-app* [config enabled]
(gen-wrap :function ::set-native-chrome-vox-arc-support-for-current-app config enabled))
(defn send-synthetic-key-event* [config key-event]
(gen-wrap :function ::send-synthetic-key-event config key-event))
(defn enable-chrome-vox-mouse-events* [config enabled]
(gen-wrap :function ::enable-chrome-vox-mouse-events config enabled))
(defn send-synthetic-mouse-event* [config mouse-event]
(gen-wrap :function ::send-synthetic-mouse-event config mouse-event))
(defn on-select-to-speak-state-changed* [config state]
(gen-wrap :function ::on-select-to-speak-state-changed config state))
(defn on-scrollable-bounds-for-point-found* [config rect]
(gen-wrap :function ::on-scrollable-bounds-for-point-found config rect))
(defn toggle-dictation* [config]
(gen-wrap :function ::toggle-dictation config))
(defn set-virtual-keyboard-visible* [config is-visible]
(gen-wrap :function ::set-virtual-keyboard-visible config is-visible))
(defn open-settings-subpage* [config subpage]
(gen-wrap :function ::open-settings-subpage config subpage))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-introduce-chrome-vox* [config channel & args]
(gen-wrap :event ::on-introduce-chrome-vox config channel args))
(defn on-accessibility-gesture* [config channel & args]
(gen-wrap :event ::on-accessibility-gesture config channel args))
(defn on-two-finger-touch-start* [config channel & args]
(gen-wrap :event ::on-two-finger-touch-start config channel args))
(defn on-two-finger-touch-stop* [config channel & args]
(gen-wrap :event ::on-two-finger-touch-stop config channel args))
(defn on-select-to-speak-state-change-requested* [config channel & args]
(gen-wrap :event ::on-select-to-speak-state-change-requested config channel args))
(defn on-switch-access-command* [config channel & args]
(gen-wrap :event ::on-switch-access-command config channel args))
(defn on-announce-for-accessibility* [config channel & args]
(gen-wrap :event ::on-announce-for-accessibility config channel args))
(defn find-scrollable-bounds-for-point* [config channel & args]
(gen-wrap :event ::find-scrollable-bounds-for-point config channel args))