|
171 | 171 | https://developer.chrome.com/extensions/system.display#method-clearTouchCalibration." |
172 | 172 | ([id] (gen-call :function ::clear-touch-calibration &form id))) |
173 | 173 |
|
| 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 | + |
174 | 190 | ; -- events ----------------------------------------------------------------------------------------------------------------- |
175 | 191 | ; |
176 | 192 | ; docs: https://github.com/binaryage/chromex/#tapping-events |
|
263 | 279 | :name "completeCustomTouchCalibration", |
264 | 280 | :since "57", |
265 | 281 | :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}]}], |
270 | 288 | :events [{:id ::on-display-changed, :name "onDisplayChanged"}]}) |
271 | 289 |
|
272 | 290 | ; -- helpers ---------------------------------------------------------------------------------------------------------------- |
|
0 commit comments