Skip to content

Commit ddeff18

Browse files
babotdarwin
authored andcommitted
1 parent 9fa0413 commit ddeff18

7 files changed

Lines changed: 61 additions & 17 deletions

File tree

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 2018-01-11** from [**Chromium @ 1e81939**](https://chromium.googlesource.com/chromium/src.git/+/1e81939a79f550e30d0b7522a7f76f8dbf3e95a5).
3+
This library is auto-generated. Current version was **generated on 2018-01-13** from [**Chromium @ 7a7c695**](https://chromium.googlesource.com/chromium/src.git/+/7a7c695b9e11047c95c371446f0939ece09c8ac3).
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

@@ -10,8 +10,8 @@ For Chrome Extensions and also for Chrome Apps:
1010

1111
| API family | namespaces | properties | functions | events |
1212
| --- | --- | --- | --- | --- |
13-
| [Public Chrome Extension APIs](src/exts) | 77 | 50 | 370 | 177 |
14-
| [Public Chrome App APIs](src/apps) | 69 | 30 | 444 | 153 |
13+
| [Public Chrome Extension APIs](src/exts) | 77 | 50 | 371 | 177 |
14+
| [Public Chrome App APIs](src/apps) | 69 | 30 | 445 | 153 |
1515
| [Private Chrome Extension APIs](src/exts_private) | 40 | 1 | 322 | 67 |
1616
| [Private Chrome App APIs](src/apps_private) | 39 | 1 | 308 | 73 |
1717

src/apps/chromex/app/system/display.clj

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,22 @@
171171
https://developer.chrome.com/apps/system.display#method-clearTouchCalibration."
172172
([id] (gen-call :function ::clear-touch-calibration &form id)))
173173

174+
(defmacro set-mirror-mode
175+
"Sets the display mode to the specified mirror mode. Each call resets the state from previous calls. Calling
176+
setDisplayProperties() will fail for the mirroring destination displays. NOTE: This is only available to Chrome OS Kiosk
177+
apps and Web UI.
178+
179+
|info| - The information of the mirror mode that should be applied to the display mode.
180+
181+
This function returns a core.async channel which eventually receives a result value and closes.
182+
Signature of the result value put on the channel is [].
183+
184+
In case of error the channel closes without receiving any result and relevant error object can be obtained via
185+
chromex.error/get-last-error.
186+
187+
https://developer.chrome.com/apps/system.display#method-setMirrorMode."
188+
([info] (gen-call :function ::set-mirror-mode &form info)))
189+
174190
; -- events -----------------------------------------------------------------------------------------------------------------
175191
;
176192
; docs: https://github.com/binaryage/chromex/#tapping-events
@@ -263,10 +279,12 @@
263279
:name "completeCustomTouchCalibration",
264280
:since "57",
265281
:params [{:name "pairs", :type "object"} {:name "bounds", :type "system.display.Bounds"}]}
266-
{:id ::clear-touch-calibration,
267-
:name "clearTouchCalibration",
268-
:since "57",
269-
:params [{:name "id", :type "string"}]}],
282+
{:id ::clear-touch-calibration, :name "clearTouchCalibration", :since "57", :params [{:name "id", :type "string"}]}
283+
{:id ::set-mirror-mode,
284+
:name "setMirrorMode",
285+
:since "master",
286+
:callback? true,
287+
:params [{:name "info", :type "object"} {:name "callback", :optional? true, :type :callback}]}],
270288
:events [{:id ::on-display-changed, :name "onDisplayChanged"}]})
271289

272290
; -- helpers ----------------------------------------------------------------------------------------------------------------

src/apps/chromex/app/system/display.cljs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
(defn clear-touch-calibration* [config id]
4343
(gen-wrap :function ::clear-touch-calibration config id))
4444

45+
(defn set-mirror-mode* [config info]
46+
(gen-wrap :function ::set-mirror-mode config info))
47+
4548
; -- events -----------------------------------------------------------------------------------------------------------------
4649

4750
(defn on-display-changed* [config channel & args]

src/apps/readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
### API stats
7979

80-
Generated 69 namespaces containing 30 properties, 444 functions and 153 events:
80+
Generated 69 namespaces containing 30 properties, 445 functions and 153 events:
8181

8282

8383
| :namespace | :properties | :functions | :events |
@@ -137,7 +137,7 @@ Generated 69 namespaces containing 30 properties, 444 functions and 153 events:
137137
| chrome.storage | 3 | 0 | 1 |
138138
| chrome.syncFileSystem | 0 | 7 | 2 |
139139
| chrome.system.cpu | 0 | 1 | 0 |
140-
| chrome.system.display | 0 | 13 | 1 |
140+
| chrome.system.display | 0 | 14 | 1 |
141141
| chrome.system.memory | 0 | 1 | 0 |
142142
| chrome.system.network | 0 | 1 | 0 |
143143
| chrome.system.storage | 0 | 3 | 2 |
@@ -392,7 +392,8 @@ Generated 69 namespaces containing 30 properties, 444 functions and 153 events:
392392
get-info get-display-layout set-display-properties set-display-layout enable-unified-desktop
393393
overscan-calibration-start overscan-calibration-adjust overscan-calibration-reset
394394
overscan-calibration-complete show-native-touch-calibration start-custom-touch-calibration
395-
complete-custom-touch-calibration clear-touch-calibration tap-on-display-changed tap-all-events]]
395+
complete-custom-touch-calibration clear-touch-calibration set-mirror-mode tap-on-display-changed
396+
tap-all-events]]
396397
397398
[chromex.app.system.memory refer-macros:[
398399
get-info tap-all-events]]

src/exts/chromex/ext/system/display.clj

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,22 @@
171171
https://developer.chrome.com/extensions/system.display#method-clearTouchCalibration."
172172
([id] (gen-call :function ::clear-touch-calibration &form id)))
173173

174+
(defmacro set-mirror-mode
175+
"Sets the display mode to the specified mirror mode. Each call resets the state from previous calls. Calling
176+
setDisplayProperties() will fail for the mirroring destination displays. NOTE: This is only available to Chrome OS Kiosk
177+
apps and Web UI.
178+
179+
|info| - The information of the mirror mode that should be applied to the display mode.
180+
181+
This function returns a core.async channel which eventually receives a result value and closes.
182+
Signature of the result value put on the channel is [].
183+
184+
In case of error the channel closes without receiving any result and relevant error object can be obtained via
185+
chromex.error/get-last-error.
186+
187+
https://developer.chrome.com/extensions/system.display#method-setMirrorMode."
188+
([info] (gen-call :function ::set-mirror-mode &form info)))
189+
174190
; -- events -----------------------------------------------------------------------------------------------------------------
175191
;
176192
; docs: https://github.com/binaryage/chromex/#tapping-events
@@ -263,10 +279,12 @@
263279
:name "completeCustomTouchCalibration",
264280
:since "57",
265281
:params [{:name "pairs", :type "object"} {:name "bounds", :type "system.display.Bounds"}]}
266-
{:id ::clear-touch-calibration,
267-
:name "clearTouchCalibration",
268-
:since "57",
269-
:params [{:name "id", :type "string"}]}],
282+
{:id ::clear-touch-calibration, :name "clearTouchCalibration", :since "57", :params [{:name "id", :type "string"}]}
283+
{:id ::set-mirror-mode,
284+
:name "setMirrorMode",
285+
:since "master",
286+
:callback? true,
287+
:params [{:name "info", :type "object"} {:name "callback", :optional? true, :type :callback}]}],
270288
:events [{:id ::on-display-changed, :name "onDisplayChanged"}]})
271289

272290
; -- helpers ----------------------------------------------------------------------------------------------------------------

src/exts/chromex/ext/system/display.cljs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
(defn clear-touch-calibration* [config id]
4343
(gen-wrap :function ::clear-touch-calibration config id))
4444

45+
(defn set-mirror-mode* [config info]
46+
(gen-wrap :function ::set-mirror-mode config info))
47+
4548
; -- events -----------------------------------------------------------------------------------------------------------------
4649

4750
(defn on-display-changed* [config channel & args]

src/exts/readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
### API stats
8787

88-
Generated 77 namespaces containing 50 properties, 370 functions and 177 events:
88+
Generated 77 namespaces containing 50 properties, 371 functions and 177 events:
8989

9090

9191
| :namespace | :properties | :functions | :events |
@@ -151,7 +151,7 @@ Generated 77 namespaces containing 50 properties, 370 functions and 177 events:
151151
| chrome.signedInDevices | 0 | 1 | 1 |
152152
| chrome.storage | 3 | 0 | 1 |
153153
| chrome.system.cpu | 0 | 1 | 0 |
154-
| chrome.system.display | 0 | 13 | 1 |
154+
| chrome.system.display | 0 | 14 | 1 |
155155
| chrome.system.memory | 0 | 1 | 0 |
156156
| chrome.system.storage | 0 | 3 | 2 |
157157
| chrome.systemIndicator | 0 | 3 | 1 |
@@ -415,7 +415,8 @@ Generated 77 namespaces containing 50 properties, 370 functions and 177 events:
415415
get-info get-display-layout set-display-properties set-display-layout enable-unified-desktop
416416
overscan-calibration-start overscan-calibration-adjust overscan-calibration-reset
417417
overscan-calibration-complete show-native-touch-calibration start-custom-touch-calibration
418-
complete-custom-touch-calibration clear-touch-calibration tap-on-display-changed tap-all-events]]
418+
complete-custom-touch-calibration clear-touch-calibration set-mirror-mode tap-on-display-changed
419+
tap-all-events]]
419420
420421
[chromex.ext.system.memory refer-macros:[
421422
get-info tap-all-events]]

0 commit comments

Comments
 (0)