Skip to content

Commit ea3da39

Browse files
committed
1 parent 3b33503 commit ea3da39

16 files changed

Lines changed: 127 additions & 36 deletions

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# chromex [![GitHub license](https://img.shields.io/github/license/binaryage/chromex.svg)](license.txt) [![Clojars Project](https://img.shields.io/clojars/v/binaryage/chromex.svg)](https://clojars.org/binaryage/chromex) [![Travis](https://img.shields.io/travis/binaryage/chromex.svg)](https://travis-ci.org/binaryage/chromex) [![Sample Project](https://img.shields.io/badge/project-example-ff69b4.svg)](https://github.com/binaryage/chromex-sample)
22

3-
This library is auto-generated. Current version was **generated on 2017-09-27** from [**Chromium @ 22f01ec**](https://chromium.googlesource.com/chromium/src.git/+/22f01ec43ff54d83a8681a8276294317b5d27f83).
3+
This library is auto-generated. Current version was **generated on 2017-10-06** from [**Chromium @ c74acf2**](https://chromium.googlesource.com/chromium/src.git/+/c74acf2507bf54f87a72e4140e4e8e994dda84cd).
44

55
Looking for a nightly version? Check out [**nightly branch**](https://github.com/binaryage/chromex/tree/nightly) which gets updated nightly if there were any new API changes.
66

@@ -12,8 +12,8 @@ For Chrome Extensions and also for Chrome Apps:
1212
| --- | --- | --- | --- | --- |
1313
| [Public Chrome Extension APIs](src/exts) | 77 | 50 | 360 | 176 |
1414
| [Public Chrome App APIs](src/apps) | 69 | 30 | 444 | 153 |
15-
| [Private Chrome Extension APIs](src/exts_private) | 41 | 1 | 326 | 75 |
16-
| [Private Chrome App APIs](src/apps_private) | 39 | 1 | 300 | 81 |
15+
| [Private Chrome Extension APIs](src/exts_private) | 41 | 1 | 328 | 76 |
16+
| [Private Chrome App APIs](src/apps_private) | 39 | 1 | 302 | 82 |
1717

1818
Note: Chromex generator uses the same data source as [developer.chrome.com/extensions/api_index](https://developer.chrome.com/extensions/api_index) and
1919
[developer.chrome.com/apps/api_index](https://developer.chrome.com/apps/api_index) docs.

src/apps/chromex/app/virtual_keyboard.clj

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
(defmacro restrict-features
1818
"Sets restrictions on features provided by the virtual keyboard.
1919
20-
|restrictions| - Defines the set of enabled/disabled virtual keyboard features.
20+
|restrictions| - the preferences to enabled/disabled virtual keyboard features.
2121
2222
This function returns a core.async channel which eventually receives a result value and closes.
23-
Signature of the result value put on the channel is [].
23+
Signature of the result value put on the channel is [update] where:
24+
25+
|update| - https://developer.chrome.com/apps/virtualKeyboard#property-callback-update.
2426
2527
In case of error the channel closes without receiving any result and relevant error object can be obtained via
2628
chromex.error/get-last-error.
@@ -46,7 +48,12 @@
4648
[{:id ::restrict-features,
4749
:name "restrictFeatures",
4850
:callback? true,
49-
:params [{:name "restrictions", :type "object"} {:name "callback", :optional? true, :type :callback}]}]})
51+
:params
52+
[{:name "restrictions", :type "virtualKeyboard.FeatureRestrictions"}
53+
{:name "callback",
54+
:optional? true,
55+
:type :callback,
56+
:callback {:params [{:name "update", :type "virtualKeyboard.FeatureRestrictions"}]}}]}]})
5057

5158
; -- helpers ----------------------------------------------------------------------------------------------------------------
5259

src/apps_private/chromex/app/accessibility_private.clj

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
|key-codes| - The key codes for the keys that will be captured."
4848
([key-codes] (gen-call :function ::set-switch-access-keys &form key-codes)))
4949

50+
(defmacro set-native-chrome-vox-arc-support-for-current-app
51+
"Sets current ARC app to use native ARC support.
52+
53+
|enabled| - True for ChromeVox (native), false for TalkBack."
54+
([enabled] (gen-call :function ::set-native-chrome-vox-arc-support-for-current-app &form enabled)))
55+
5056
; -- events -----------------------------------------------------------------------------------------------------------------
5157
;
5258
; docs: https://github.com/binaryage/chromex/#tapping-events
@@ -118,7 +124,11 @@
118124
{:id ::set-switch-access-keys,
119125
:name "setSwitchAccessKeys",
120126
:since "61",
121-
:params [{:name "key-codes", :type "[array-of-integers]"}]}],
127+
:params [{:name "key-codes", :type "[array-of-integers]"}]}
128+
{:id ::set-native-chrome-vox-arc-support-for-current-app,
129+
:name "setNativeChromeVoxArcSupportForCurrentApp",
130+
:since "master",
131+
:params [{:name "enabled", :type "boolean"}]}],
122132
:events
123133
[{:id ::on-introduce-chrome-vox, :name "onIntroduceChromeVox", :since "42"}
124134
{:id ::on-accessibility-gesture,

src/apps_private/chromex/app/accessibility_private.cljs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
(defn set-switch-access-keys* [config key-codes]
1919
(gen-wrap :function ::set-switch-access-keys config key-codes))
2020

21+
(defn set-native-chrome-vox-arc-support-for-current-app* [config enabled]
22+
(gen-wrap :function ::set-native-chrome-vox-arc-support-for-current-app config enabled))
23+
2124
; -- events -----------------------------------------------------------------------------------------------------------------
2225

2326
(defn on-introduce-chrome-vox* [config channel & args]

src/apps_private/chromex/app/passwords_private.clj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
|index| - The index for the exception url entry being removed."
2828
([index] (gen-call :function ::remove-password-exception &form index)))
2929

30+
(defmacro undo-remove-saved-password-or-exception
31+
"Undoes the last removal of a saved password or exception."
32+
([] (gen-call :function ::undo-remove-saved-password-or-exception &form)))
33+
3034
(defmacro request-plaintext-password
3135
"Returns the plaintext password corresponding to |index|. Note that on some operating systems, this call may result in an
3236
OS-level reauthentication. Once the password has been fetched, it will be returned via the onPlaintextPasswordRetrieved
@@ -119,6 +123,7 @@
119123
:functions
120124
[{:id ::remove-saved-password, :name "removeSavedPassword", :params [{:name "index", :type "integer"}]}
121125
{:id ::remove-password-exception, :name "removePasswordException", :params [{:name "index", :type "integer"}]}
126+
{:id ::undo-remove-saved-password-or-exception, :name "undoRemoveSavedPasswordOrException", :since "63"}
122127
{:id ::request-plaintext-password, :name "requestPlaintextPassword", :params [{:name "index", :type "integer"}]}
123128
{:id ::get-saved-password-list,
124129
:name "getSavedPasswordList",
@@ -134,8 +139,8 @@
134139
[{:name "callback",
135140
:type :callback,
136141
:callback {:params [{:name "exceptions", :type "[array-of-passwordsPrivate.ExceptionEntrys]"}]}}]}
137-
{:id ::import-passwords, :name "importPasswords", :since "master"}
138-
{:id ::export-passwords, :name "exportPasswords", :since "master"}],
142+
{:id ::import-passwords, :name "importPasswords", :since "63"}
143+
{:id ::export-passwords, :name "exportPasswords", :since "63"}],
139144
:events
140145
[{:id ::on-saved-passwords-list-changed,
141146
:name "onSavedPasswordsListChanged",

src/apps_private/chromex/app/passwords_private.cljs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
(defn remove-password-exception* [config index]
1010
(gen-wrap :function ::remove-password-exception config index))
1111

12+
(defn undo-remove-saved-password-or-exception* [config]
13+
(gen-wrap :function ::undo-remove-saved-password-or-exception config))
14+
1215
(defn request-plaintext-password* [config index]
1316
(gen-wrap :function ::request-plaintext-password config index))
1417

src/apps_private/chromex/app/virtual_keyboard_private.clj

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@
117117
Note: |args| will be passed as additional parameters into Chrome event's .addListener call."
118118
([channel & args] (apply gen-call :event ::on-keyboard-closed &form channel args)))
119119

120+
(defmacro tap-on-keyboard-config-changed-events
121+
"Fired when a configuration for virtual keyboard IME has changed, e.g. auto complete disabled.
122+
123+
Events will be put on the |channel| with signature [::on-keyboard-config-changed [config]] where:
124+
125+
|config| - The virtual keyboard config
126+
127+
Note: |args| will be passed as additional parameters into Chrome event's .addListener call."
128+
([channel & args] (apply gen-call :event ::on-keyboard-config-changed &form channel args)))
129+
120130
; -- convenience ------------------------------------------------------------------------------------------------------------
121131

122132
(defmacro tap-all-events
@@ -158,7 +168,9 @@
158168
:since "34",
159169
:callback? true,
160170
:params
161-
[{:name "callback", :optional? true, :type :callback, :callback {:params [{:name "config", :type "object"}]}}]}
171+
[{:name "callback",
172+
:type :callback,
173+
:callback {:params [{:name "config", :type "virtualKeyboardPrivate.KeyboardConfig"}]}}]}
162174
{:id ::open-settings, :name "openSettings", :since "37"}
163175
{:id ::set-mode,
164176
:name "setMode",
@@ -173,7 +185,11 @@
173185
:name "onBoundsChanged",
174186
:since "44",
175187
:params [{:name "bounds", :type "virtualKeyboardPrivate.Bounds"}]}
176-
{:id ::on-keyboard-closed, :name "onKeyboardClosed", :since "55"}]})
188+
{:id ::on-keyboard-closed, :name "onKeyboardClosed", :since "55"}
189+
{:id ::on-keyboard-config-changed,
190+
:name "onKeyboardConfigChanged",
191+
:since "63",
192+
:params [{:name "config", :type "virtualKeyboardPrivate.KeyboardConfig"}]}]})
177193

178194
; -- helpers ----------------------------------------------------------------------------------------------------------------
179195

src/apps_private/chromex/app/virtual_keyboard_private.cljs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@
4141
(defn on-keyboard-closed* [config channel & args]
4242
(gen-wrap :event ::on-keyboard-closed config channel args))
4343

44+
(defn on-keyboard-config-changed* [config channel & args]
45+
(gen-wrap :event ::on-keyboard-config-changed config channel args))
46+

src/apps_private/readme.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747

4848
### API stats
4949

50-
Generated 39 namespaces containing 1 properties, 300 functions and 81 events:
50+
Generated 39 namespaces containing 1 properties, 302 functions and 82 events:
5151

5252

5353
| :namespace | :properties | :functions | :events |
5454
|--------------------------------+-------------+------------+---------|
55-
| chrome.accessibilityPrivate | 0 | 5 | 4 |
55+
| chrome.accessibilityPrivate | 0 | 6 | 4 |
5656
| chrome.activityLogPrivate | 0 | 4 | 1 |
5757
| chrome.autofillPrivate | 0 | 9 | 2 |
5858
| chrome.bluetoothPrivate | 0 | 7 | 1 |
@@ -78,7 +78,7 @@ Generated 39 namespaces containing 1 properties, 300 functions and 81 events:
7878
| chrome.mojoPrivate | 0 | 2 | 0 |
7979
| chrome.musicManagerPrivate | 0 | 1 | 0 |
8080
| chrome.networkingPrivate | 0 | 22 | 5 |
81-
| chrome.passwordsPrivate | 0 | 7 | 3 |
81+
| chrome.passwordsPrivate | 0 | 8 | 3 |
8282
| chrome.preferencesPrivate | 1 | 0 | 0 |
8383
| chrome.quickUnlockPrivate | 0 | 5 | 1 |
8484
| chrome.resourcesPrivate | 0 | 1 | 0 |
@@ -87,7 +87,7 @@ Generated 39 namespaces containing 1 properties, 300 functions and 81 events:
8787
| chrome.systemPrivate | 0 | 3 | 4 |
8888
| chrome.terminalPrivate | 0 | 5 | 1 |
8989
| chrome.usersPrivate | 0 | 5 | 0 |
90-
| chrome.virtualKeyboardPrivate | 0 | 10 | 2 |
90+
| chrome.virtualKeyboardPrivate | 0 | 10 | 3 |
9191
| chrome.wallpaperPrivate | 0 | 0 | 1 |
9292
| chrome.webcamPrivate | 0 | 5 | 0 |
9393
| chrome.webstoreWidgetPrivate | 0 | 2 | 1 |
@@ -99,8 +99,9 @@ Generated 39 namespaces containing 1 properties, 300 functions and 81 events:
9999
(:require
100100
[chromex.app.accessibility-private refer-macros:[
101101
set-native-accessibility-enabled set-focus-ring set-keyboard-listener darken-screen
102-
set-switch-access-keys tap-on-introduce-chrome-vox tap-on-accessibility-gesture
103-
tap-on-two-finger-touch-start tap-on-two-finger-touch-stop tap-all-events]]
102+
set-switch-access-keys set-native-chrome-vox-arc-support-for-current-app
103+
tap-on-introduce-chrome-vox tap-on-accessibility-gesture tap-on-two-finger-touch-start
104+
tap-on-two-finger-touch-stop tap-all-events]]
104105
105106
[chromex.app.activity-log-private refer-macros:[
106107
get-extension-activities delete-activities delete-database delete-urls tap-on-extension-activity
@@ -238,9 +239,10 @@ Generated 39 namespaces containing 1 properties, 300 functions and 81 events:
238239
tap-all-events]]
239240
240241
[chromex.app.passwords-private refer-macros:[
241-
remove-saved-password remove-password-exception request-plaintext-password get-saved-password-list
242-
get-password-exception-list import-passwords export-passwords tap-on-saved-passwords-list-changed
243-
tap-on-password-exceptions-list-changed tap-on-plaintext-password-retrieved tap-all-events]]
242+
remove-saved-password remove-password-exception undo-remove-saved-password-or-exception
243+
request-plaintext-password get-saved-password-list get-password-exception-list import-passwords
244+
export-passwords tap-on-saved-passwords-list-changed tap-on-password-exceptions-list-changed
245+
tap-on-plaintext-password-retrieved tap-all-events]]
244246
245247
[chromex.app.preferences-private refer-macros:[
246248
get-easy-unlock-proximity-required tap-all-events]]
@@ -274,7 +276,7 @@ Generated 39 namespaces containing 1 properties, 300 functions and 81 events:
274276
[chromex.app.virtual-keyboard-private refer-macros:[
275277
insert-text send-key-event hide-keyboard set-hotrod-keyboard lock-keyboard keyboard-loaded
276278
get-keyboard-config open-settings set-mode set-keyboard-state tap-on-bounds-changed
277-
tap-on-keyboard-closed tap-all-events]]
279+
tap-on-keyboard-closed tap-on-keyboard-config-changed tap-all-events]]
278280
279281
[chromex.app.wallpaper-private refer-macros:[
280282
tap-on-wallpaper-changed-by3rd-party tap-all-events]]

src/exts_private/chromex/ext/accessibility_private.clj

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
|key-codes| - The key codes for the keys that will be captured."
4848
([key-codes] (gen-call :function ::set-switch-access-keys &form key-codes)))
4949

50+
(defmacro set-native-chrome-vox-arc-support-for-current-app
51+
"Sets current ARC app to use native ARC support.
52+
53+
|enabled| - True for ChromeVox (native), false for TalkBack."
54+
([enabled] (gen-call :function ::set-native-chrome-vox-arc-support-for-current-app &form enabled)))
55+
5056
; -- events -----------------------------------------------------------------------------------------------------------------
5157
;
5258
; docs: https://github.com/binaryage/chromex/#tapping-events
@@ -118,7 +124,11 @@
118124
{:id ::set-switch-access-keys,
119125
:name "setSwitchAccessKeys",
120126
:since "61",
121-
:params [{:name "key-codes", :type "[array-of-integers]"}]}],
127+
:params [{:name "key-codes", :type "[array-of-integers]"}]}
128+
{:id ::set-native-chrome-vox-arc-support-for-current-app,
129+
:name "setNativeChromeVoxArcSupportForCurrentApp",
130+
:since "master",
131+
:params [{:name "enabled", :type "boolean"}]}],
122132
:events
123133
[{:id ::on-introduce-chrome-vox, :name "onIntroduceChromeVox", :since "42"}
124134
{:id ::on-accessibility-gesture,

0 commit comments

Comments
 (0)