/
extension.cljs
45 lines (29 loc) · 1.65 KB
/
extension.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
(ns chromex.ext.extension (:require-macros [chromex.ext.extension :refer [gen-wrap]])
(:require [chromex.core]))
; -- properties -------------------------------------------------------------------------------------------------------------
(defn last-error* [config]
(gen-wrap :property ::last-error config))
(defn in-incognito-context* [config]
(gen-wrap :property ::in-incognito-context config))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn send-request* [config extension-id request]
(gen-wrap :function ::send-request config extension-id request))
(defn get-url* [config path]
(gen-wrap :function ::get-url config path))
(defn get-views* [config fetch-properties]
(gen-wrap :function ::get-views config fetch-properties))
(defn get-background-page* [config]
(gen-wrap :function ::get-background-page config))
(defn get-extension-tabs* [config window-id]
(gen-wrap :function ::get-extension-tabs config window-id))
(defn is-allowed-incognito-access* [config]
(gen-wrap :function ::is-allowed-incognito-access config))
(defn is-allowed-file-scheme-access* [config]
(gen-wrap :function ::is-allowed-file-scheme-access config))
(defn set-update-url-data* [config data]
(gen-wrap :function ::set-update-url-data config data))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-request* [config channel & args]
(gen-wrap :event ::on-request config channel args))
(defn on-request-external* [config channel & args]
(gen-wrap :event ::on-request-external config channel args))