/
file_manager_private.cljs
211 lines (140 loc) · 7.8 KB
/
file_manager_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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
(ns chromex.ext.file-manager-private (:require-macros [chromex.ext.file-manager-private :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn logout-user-for-reauthentication* [config]
(gen-wrap :function ::logout-user-for-reauthentication config))
(defn cancel-dialog* [config]
(gen-wrap :function ::cancel-dialog config))
(defn execute-task* [config task-id entries]
(gen-wrap :function ::execute-task config task-id entries))
(defn set-default-task* [config task-id entries mime-types]
(gen-wrap :function ::set-default-task config task-id entries mime-types))
(defn get-file-tasks* [config entries]
(gen-wrap :function ::get-file-tasks config entries))
(defn get-mime-type* [config entry]
(gen-wrap :function ::get-mime-type config entry))
(defn get-strings* [config]
(gen-wrap :function ::get-strings config))
(defn add-file-watch* [config entry]
(gen-wrap :function ::add-file-watch config entry))
(defn remove-file-watch* [config entry]
(gen-wrap :function ::remove-file-watch config entry))
(defn enable-external-file-scheme* [config]
(gen-wrap :function ::enable-external-file-scheme config))
(defn grant-access* [config entry-urls]
(gen-wrap :function ::grant-access config entry-urls))
(defn select-files* [config selected-paths should-return-local-path]
(gen-wrap :function ::select-files config selected-paths should-return-local-path))
(defn select-file* [config selected-path index for-opening should-return-local-path]
(gen-wrap :function ::select-file config selected-path index for-opening should-return-local-path))
(defn get-entry-properties* [config entries names]
(gen-wrap :function ::get-entry-properties config entries names))
(defn pin-drive-file* [config entry pin]
(gen-wrap :function ::pin-drive-file config entry pin))
(defn resolve-isolated-entries* [config entries]
(gen-wrap :function ::resolve-isolated-entries config entries))
(defn add-mount* [config source]
(gen-wrap :function ::add-mount config source))
(defn remove-mount* [config volume-id]
(gen-wrap :function ::remove-mount config volume-id))
(defn get-volume-metadata-list* [config]
(gen-wrap :function ::get-volume-metadata-list config))
(defn start-copy* [config entry parent-entry new-name]
(gen-wrap :function ::start-copy config entry parent-entry new-name))
(defn cancel-copy* [config copy-id]
(gen-wrap :function ::cancel-copy config copy-id))
(defn get-size-stats* [config volume-id]
(gen-wrap :function ::get-size-stats config volume-id))
(defn format-volume* [config volume-id filesystem volume-label]
(gen-wrap :function ::format-volume config volume-id filesystem volume-label))
(defn rename-volume* [config volume-id new-name]
(gen-wrap :function ::rename-volume config volume-id new-name))
(defn get-preferences* [config]
(gen-wrap :function ::get-preferences config))
(defn set-preferences* [config change-info]
(gen-wrap :function ::set-preferences config change-info))
(defn search-drive* [config search-params]
(gen-wrap :function ::search-drive config search-params))
(defn search-drive-metadata* [config search-params]
(gen-wrap :function ::search-drive-metadata config search-params))
(defn search-files-by-hashes* [config volume-id hash-list]
(gen-wrap :function ::search-files-by-hashes config volume-id hash-list))
(defn search-files* [config search-params]
(gen-wrap :function ::search-files config search-params))
(defn zip-selection* [config entries parent-entry dest-name]
(gen-wrap :function ::zip-selection config entries parent-entry dest-name))
(defn get-drive-connection-state* [config]
(gen-wrap :function ::get-drive-connection-state config))
(defn validate-path-name-length* [config parent-entry name]
(gen-wrap :function ::validate-path-name-length config parent-entry name))
(defn zoom* [config operation]
(gen-wrap :function ::zoom config operation))
(defn request-web-store-access-token* [config]
(gen-wrap :function ::request-web-store-access-token config))
(defn get-download-url* [config entry]
(gen-wrap :function ::get-download-url config entry))
(defn get-profiles* [config]
(gen-wrap :function ::get-profiles config))
(defn open-inspector* [config type]
(gen-wrap :function ::open-inspector config type))
(defn open-settings-subpage* [config sub-page]
(gen-wrap :function ::open-settings-subpage config sub-page))
(defn compute-checksum* [config entry]
(gen-wrap :function ::compute-checksum config entry))
(defn get-providers* [config]
(gen-wrap :function ::get-providers config))
(defn add-provided-file-system* [config provider-id]
(gen-wrap :function ::add-provided-file-system config provider-id))
(defn configure-volume* [config volume-id]
(gen-wrap :function ::configure-volume config volume-id))
(defn get-custom-actions* [config entries]
(gen-wrap :function ::get-custom-actions config entries))
(defn execute-custom-action* [config entries action-id]
(gen-wrap :function ::execute-custom-action config entries action-id))
(defn get-directory-size* [config entry]
(gen-wrap :function ::get-directory-size config entry))
(defn get-recent-files* [config restriction]
(gen-wrap :function ::get-recent-files config restriction))
(defn mount-crostini* [config]
(gen-wrap :function ::mount-crostini config))
(defn share-paths-with-crostini* [config vm-name entries persist]
(gen-wrap :function ::share-paths-with-crostini config vm-name entries persist))
(defn unshare-path-with-crostini* [config vm-name entry]
(gen-wrap :function ::unshare-path-with-crostini config vm-name entry))
(defn get-crostini-shared-paths* [config observe-first-for-session vm-name]
(gen-wrap :function ::get-crostini-shared-paths config observe-first-for-session vm-name))
(defn get-linux-package-info* [config entry]
(gen-wrap :function ::get-linux-package-info config entry))
(defn install-linux-package* [config entry]
(gen-wrap :function ::install-linux-package config entry))
(defn import-crostini-image* [config entry]
(gen-wrap :function ::import-crostini-image config entry))
(defn get-thumbnail* [config entry crop-to-square]
(gen-wrap :function ::get-thumbnail config entry crop-to-square))
(defn detect-character-encoding* [config bytes]
(gen-wrap :function ::detect-character-encoding config bytes))
(defn get-android-picker-apps* [config extensions]
(gen-wrap :function ::get-android-picker-apps config extensions))
(defn select-android-picker-app* [config android-app]
(gen-wrap :function ::select-android-picker-app config android-app))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-mount-completed* [config channel & args]
(gen-wrap :event ::on-mount-completed config channel args))
(defn on-file-transfers-updated* [config channel & args]
(gen-wrap :event ::on-file-transfers-updated config channel args))
(defn on-copy-progress* [config channel & args]
(gen-wrap :event ::on-copy-progress config channel args))
(defn on-directory-changed* [config channel & args]
(gen-wrap :event ::on-directory-changed config channel args))
(defn on-preferences-changed* [config channel & args]
(gen-wrap :event ::on-preferences-changed config channel args))
(defn on-drive-connection-status-changed* [config channel & args]
(gen-wrap :event ::on-drive-connection-status-changed config channel args))
(defn on-device-changed* [config channel & args]
(gen-wrap :event ::on-device-changed config channel args))
(defn on-drive-sync-error* [config channel & args]
(gen-wrap :event ::on-drive-sync-error config channel args))
(defn on-apps-updated* [config channel & args]
(gen-wrap :event ::on-apps-updated config channel args))
(defn on-crostini-changed* [config channel & args]
(gen-wrap :event ::on-crostini-changed config channel args))