Skip to content

Commit

Permalink
regenerate APIs from Chromium @ 614c034
Browse files Browse the repository at this point in the history
  • Loading branch information
babot committed May 25, 2016
1 parent 095558b commit 80153ef
Show file tree
Hide file tree
Showing 13 changed files with 247 additions and 21 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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)

This library is auto-generated. Current version was **generated on 2016-05-18** from [**Chromium @ ab22e8b**](https://chromium.googlesource.com/chromium/src.git/+/ab22e8b1a34d2eaacb713fb2e48c68edb4d95466).
This library is auto-generated. Current version was **generated on 2016-05-25** from [**Chromium @ 614c034**](https://chromium.googlesource.com/chromium/src.git/+/614c03410a047c016fb540fd8e6d5481be4bacea).

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.

Expand All @@ -10,10 +10,10 @@ For Chrome Extensions and also for Chrome Apps:

| API family | namespaces | properties | functions | events |
| --- | --- | --- | --- | --- |
| [Public Chrome Extension APIs](src/exts) | 81 | 49 | 361 | 183 |
| [Public Chrome App APIs](src/apps) | 64 | 25 | 367 | 132 |
| [Private Chrome Extension APIs](src/exts_private) | 42 | 1 | 316 | 69 |
| [Private Chrome App APIs](src/apps_private) | 38 | 1 | 271 | 72 |
| [Public Chrome Extension APIs](src/exts) | 81 | 49 | 365 | 183 |
| [Public Chrome App APIs](src/apps) | 64 | 25 | 371 | 132 |
| [Private Chrome Extension APIs](src/exts_private) | 42 | 1 | 318 | 69 |
| [Private Chrome App APIs](src/apps_private) | 38 | 1 | 273 | 72 |
| [Internal Chrome Extension APIs](src/exts_internal) | 16 | 0 | 90 | 17 |
| [Internal Chrome App APIs](src/apps_internal) | 15 | 0 | 88 | 17 |

Expand Down
54 changes: 53 additions & 1 deletion src/apps/chromex/app/system/display.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,42 @@
https://developer.chrome.com/apps/system.display#method-enableUnifiedDesktop."
([enabled] (gen-call :function ::enable-unified-desktop &form enabled)))

(defmacro overscan-calibration-start
"Starts overscan calibration for a display. This will show an overlay on the screen indicating the current overscan insets.
If overscan calibration for display |id| is in progress this will reset calibration.
|id| - The display's unique identifier.
https://developer.chrome.com/apps/system.display#method-overscanCalibrationStart."
([id] (gen-call :function ::overscan-calibration-start &form id)))

(defmacro overscan-calibration-adjust
"Adjusts the current overscan insets for a display. Typically this should etiher move the display along an axis (e.g.
left+right have the same value) or scale it along an axis (e.g. top+bottom have opposite values). Each Adjust call is
cumulative with previous calls since Start.
|id| - The display's unique identifier.
|delta| - The amount to change the overscan insets.
https://developer.chrome.com/apps/system.display#method-overscanCalibrationAdjust."
([id delta] (gen-call :function ::overscan-calibration-adjust &form id delta)))

(defmacro overscan-calibration-reset
"Resets the overscan insets for a display to the last saved value (i.e before Start was called).
|id| - The display's unique identifier.
https://developer.chrome.com/apps/system.display#method-overscanCalibrationReset."
([id] (gen-call :function ::overscan-calibration-reset &form id)))

(defmacro overscan-calibration-complete
"Complete overscan adjustments for a display by saving the current values and hiding the overlay.
|id| - The display's unique identifier.
https://developer.chrome.com/apps/system.display#method-overscanCalibrationComplete."
([id] (gen-call :function ::overscan-calibration-complete &form id)))

; -- events -----------------------------------------------------------------------------------------------------------------
;
; docs: https://github.com/binaryage/chromex/#tapping-events
Expand Down Expand Up @@ -98,7 +134,23 @@
{:id ::enable-unified-desktop,
:name "enableUnifiedDesktop",
:since "46",
:params [{:name "enabled", :type "boolean"}]}],
:params [{:name "enabled", :type "boolean"}]}
{:id ::overscan-calibration-start,
:name "overscanCalibrationStart",
:since "master",
:params [{:name "id", :type "string"}]}
{:id ::overscan-calibration-adjust,
:name "overscanCalibrationAdjust",
:since "master",
:params [{:name "id", :type "string"} {:name "delta", :type "system.display.Insets"}]}
{:id ::overscan-calibration-reset,
:name "overscanCalibrationReset",
:since "master",
:params [{:name "id", :type "string"}]}
{:id ::overscan-calibration-complete,
:name "overscanCalibrationComplete",
:since "master",
:params [{:name "id", :type "string"}]}],
:events [{:id ::on-display-changed, :name "onDisplayChanged"}]})

; -- helpers ----------------------------------------------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions src/apps/chromex/app/system/display.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
(defn enable-unified-desktop* [config enabled]
(gen-wrap :function ::enable-unified-desktop config enabled))

(defn overscan-calibration-start* [config id]
(gen-wrap :function ::overscan-calibration-start config id))

(defn overscan-calibration-adjust* [config id delta]
(gen-wrap :function ::overscan-calibration-adjust config id delta))

(defn overscan-calibration-reset* [config id]
(gen-wrap :function ::overscan-calibration-reset config id))

(defn overscan-calibration-complete* [config id]
(gen-wrap :function ::overscan-calibration-complete config id))

; -- events -----------------------------------------------------------------------------------------------------------------

(defn on-display-changed* [config channel & args]
Expand Down
8 changes: 5 additions & 3 deletions src/apps/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

### API stats

Generated 64 namespaces containing 25 properties, 367 functions and 132 events:
Generated 64 namespaces containing 25 properties, 371 functions and 132 events:


| :namespace | :properties | :functions | :events |
Expand Down Expand Up @@ -130,7 +130,7 @@ Generated 64 namespaces containing 25 properties, 367 functions and 132 events:
| chrome.storage | 3 | 0 | 1 |
| chrome.syncFileSystem | 0 | 7 | 2 |
| chrome.system.cpu | 0 | 1 | 0 |
| chrome.system.display | 0 | 3 | 1 |
| chrome.system.display | 0 | 7 | 1 |
| chrome.system.memory | 0 | 1 | 0 |
| chrome.system.network | 0 | 1 | 0 |
| chrome.system.storage | 0 | 3 | 2 |
Expand Down Expand Up @@ -365,7 +365,9 @@ Generated 64 namespaces containing 25 properties, 367 functions and 132 events:
get-info tap-all-events]]
[chromex.app.system.display refer-macros:[
get-info set-display-properties enable-unified-desktop tap-on-display-changed tap-all-events]]
get-info set-display-properties enable-unified-desktop overscan-calibration-start
overscan-calibration-adjust overscan-calibration-reset overscan-calibration-complete
tap-on-display-changed tap-all-events]]
[chromex.app.system.memory refer-macros:[
get-info tap-all-events]]
Expand Down
40 changes: 40 additions & 0 deletions src/apps_private/chromex/app/autofill_private.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@
chromex.error/get-last-error."
([country-code] (gen-call :function ::get-address-components &form country-code)))

(defmacro get-address-list
"Gets the list of addresses.
This function returns a core.async channel which eventually receives a result value and closes.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of error the channel closes without receiving any result and relevant error object can be obtained via
chromex.error/get-last-error."
([] (gen-call :function ::get-address-list &form)))

(defmacro save-credit-card
"Saves the given credit card. If |card| has an empty string as its ID, it will be assigned a new one and added as a new
entry.
Expand Down Expand Up @@ -63,6 +75,18 @@
chromex.error/get-last-error."
([params] (gen-call :function ::validate-phone-numbers &form params)))

(defmacro get-credit-card-list
"Gets the list of credit cards.
This function returns a core.async channel which eventually receives a result value and closes.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of error the channel closes without receiving any result and relevant error object can be obtained via
chromex.error/get-last-error."
([] (gen-call :function ::get-credit-card-list &form)))

(defmacro mask-credit-card
"Clears the data associated with a wallet card which was saved locally so that the saved copy is masked (e.g., 'Card ending
in 1234').
Expand Down Expand Up @@ -118,6 +142,14 @@
:params
[{:name "country-code", :type "string"}
{:name "callback", :type :callback, :callback {:params [{:name "components", :type "object"}]}}]}
{:id ::get-address-list,
:name "getAddressList",
:since "master",
:callback? true,
:params
[{:name "callback",
:type :callback,
:callback {:params [{:name "entries", :type "[array-of-autofillPrivate.AddressEntrys]"}]}}]}
{:id ::save-credit-card, :name "saveCreditCard", :params [{:name "card", :type "autofillPrivate.CreditCardEntry"}]}
{:id ::remove-entry, :name "removeEntry", :params [{:name "guid", :type "string"}]}
{:id ::validate-phone-numbers,
Expand All @@ -128,6 +160,14 @@
{:name "callback",
:type :callback,
:callback {:params [{:name "validated-phone-numbers", :type "[array-of-strings]"}]}}]}
{:id ::get-credit-card-list,
:name "getCreditCardList",
:since "master",
:callback? true,
:params
[{:name "callback",
:type :callback,
:callback {:params [{:name "entries", :type "[array-of-autofillPrivate.CreditCardEntrys]"}]}}]}
{:id ::mask-credit-card, :name "maskCreditCard", :params [{:name "guid", :type "string"}]}],
:events
[{:id ::on-address-list-changed,
Expand Down
6 changes: 6 additions & 0 deletions src/apps_private/chromex/app/autofill_private.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
(defn get-address-components* [config country-code]
(gen-wrap :function ::get-address-components config country-code))

(defn get-address-list* [config]
(gen-wrap :function ::get-address-list config))

(defn save-credit-card* [config card]
(gen-wrap :function ::save-credit-card config card))

Expand All @@ -18,6 +21,9 @@
(defn validate-phone-numbers* [config params]
(gen-wrap :function ::validate-phone-numbers config params))

(defn get-credit-card-list* [config]
(gen-wrap :function ::get-credit-card-list config))

(defn mask-credit-card* [config guid]
(gen-wrap :function ::mask-credit-card config guid))

Expand Down
9 changes: 5 additions & 4 deletions src/apps_private/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@

### API stats

Generated 38 namespaces containing 1 properties, 271 functions and 72 events:
Generated 38 namespaces containing 1 properties, 273 functions and 72 events:


| :namespace | :properties | :functions | :events |
|--------------------------------+-------------+------------+---------|
| chrome.accessibilityPrivate | 0 | 3 | 2 |
| chrome.activityLogPrivate | 0 | 4 | 1 |
| chrome.autofillPrivate | 0 | 6 | 2 |
| chrome.autofillPrivate | 0 | 8 | 2 |
| chrome.bluetoothPrivate | 0 | 7 | 1 |
| chrome.brailleDisplayPrivate | 0 | 2 | 2 |
| chrome.chromeosInfoPrivate | 0 | 2 | 0 |
Expand Down Expand Up @@ -104,8 +104,9 @@ Generated 38 namespaces containing 1 properties, 271 functions and 72 events:
tap-all-events]]
[chromex.app.autofill-private refer-macros:[
save-address get-address-components save-credit-card remove-entry validate-phone-numbers
mask-credit-card tap-on-address-list-changed tap-on-credit-card-list-changed tap-all-events]]
save-address get-address-components get-address-list save-credit-card remove-entry
validate-phone-numbers get-credit-card-list mask-credit-card tap-on-address-list-changed
tap-on-credit-card-list-changed tap-all-events]]
[chromex.app.bluetooth-private refer-macros:[
set-adapter-state set-pairing-response disconnect-all forget-device set-discovery-filter connect
Expand Down
54 changes: 53 additions & 1 deletion src/exts/chromex/ext/system/display.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,42 @@
https://developer.chrome.com/extensions/system.display#method-enableUnifiedDesktop."
([enabled] (gen-call :function ::enable-unified-desktop &form enabled)))

(defmacro overscan-calibration-start
"Starts overscan calibration for a display. This will show an overlay on the screen indicating the current overscan insets.
If overscan calibration for display |id| is in progress this will reset calibration.
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationStart."
([id] (gen-call :function ::overscan-calibration-start &form id)))

(defmacro overscan-calibration-adjust
"Adjusts the current overscan insets for a display. Typically this should etiher move the display along an axis (e.g.
left+right have the same value) or scale it along an axis (e.g. top+bottom have opposite values). Each Adjust call is
cumulative with previous calls since Start.
|id| - The display's unique identifier.
|delta| - The amount to change the overscan insets.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationAdjust."
([id delta] (gen-call :function ::overscan-calibration-adjust &form id delta)))

(defmacro overscan-calibration-reset
"Resets the overscan insets for a display to the last saved value (i.e before Start was called).
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationReset."
([id] (gen-call :function ::overscan-calibration-reset &form id)))

(defmacro overscan-calibration-complete
"Complete overscan adjustments for a display by saving the current values and hiding the overlay.
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationComplete."
([id] (gen-call :function ::overscan-calibration-complete &form id)))

; -- events -----------------------------------------------------------------------------------------------------------------
;
; docs: https://github.com/binaryage/chromex/#tapping-events
Expand Down Expand Up @@ -98,7 +134,23 @@
{:id ::enable-unified-desktop,
:name "enableUnifiedDesktop",
:since "46",
:params [{:name "enabled", :type "boolean"}]}],
:params [{:name "enabled", :type "boolean"}]}
{:id ::overscan-calibration-start,
:name "overscanCalibrationStart",
:since "master",
:params [{:name "id", :type "string"}]}
{:id ::overscan-calibration-adjust,
:name "overscanCalibrationAdjust",
:since "master",
:params [{:name "id", :type "string"} {:name "delta", :type "system.display.Insets"}]}
{:id ::overscan-calibration-reset,
:name "overscanCalibrationReset",
:since "master",
:params [{:name "id", :type "string"}]}
{:id ::overscan-calibration-complete,
:name "overscanCalibrationComplete",
:since "master",
:params [{:name "id", :type "string"}]}],
:events [{:id ::on-display-changed, :name "onDisplayChanged"}]})

; -- helpers ----------------------------------------------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions src/exts/chromex/ext/system/display.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
(defn enable-unified-desktop* [config enabled]
(gen-wrap :function ::enable-unified-desktop config enabled))

(defn overscan-calibration-start* [config id]
(gen-wrap :function ::overscan-calibration-start config id))

(defn overscan-calibration-adjust* [config id delta]
(gen-wrap :function ::overscan-calibration-adjust config id delta))

(defn overscan-calibration-reset* [config id]
(gen-wrap :function ::overscan-calibration-reset config id))

(defn overscan-calibration-complete* [config id]
(gen-wrap :function ::overscan-calibration-complete config id))

; -- events -----------------------------------------------------------------------------------------------------------------

(defn on-display-changed* [config channel & args]
Expand Down
8 changes: 5 additions & 3 deletions src/exts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

### API stats

Generated 81 namespaces containing 49 properties, 361 functions and 183 events:
Generated 81 namespaces containing 49 properties, 365 functions and 183 events:


| :namespace | :properties | :functions | :events |
Expand Down Expand Up @@ -159,7 +159,7 @@ Generated 81 namespaces containing 49 properties, 361 functions and 183 events:
| chrome.signedInDevices | 0 | 1 | 1 |
| chrome.storage | 3 | 0 | 1 |
| chrome.system.cpu | 0 | 1 | 0 |
| chrome.system.display | 0 | 3 | 1 |
| chrome.system.display | 0 | 7 | 1 |
| chrome.system.memory | 0 | 1 | 0 |
| chrome.system.storage | 0 | 3 | 2 |
| chrome.systemIndicator | 0 | 3 | 1 |
Expand Down Expand Up @@ -431,7 +431,9 @@ Generated 81 namespaces containing 49 properties, 361 functions and 183 events:
get-info tap-all-events]]
[chromex.ext.system.display refer-macros:[
get-info set-display-properties enable-unified-desktop tap-on-display-changed tap-all-events]]
get-info set-display-properties enable-unified-desktop overscan-calibration-start
overscan-calibration-adjust overscan-calibration-reset overscan-calibration-complete
tap-on-display-changed tap-all-events]]
[chromex.ext.system.memory refer-macros:[
get-info tap-all-events]]
Expand Down
Loading

0 comments on commit 80153ef

Please sign in to comment.