| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "instanceID", | 7 "namespace": "instanceID", |
| 8 "description": "Use <code>chrome.instanceID</code> to access the Instance ID
service.", | 8 "description": "Use <code>chrome.instanceID</code> to access the Instance ID
service.", |
| 9 "compiler_options": {"use_movable_types": true}, | |
| 10 "functions": [ | 9 "functions": [ |
| 11 { | 10 { |
| 12 "name": "getID", | 11 "name": "getID", |
| 13 "type": "function", | 12 "type": "function", |
| 14 "description": "Retrieves an identifier for the app instance. The instan
ce ID will be returned by the <code>callback</code>. The same ID will be returne
d as long as the application identity has not been revoked or expired.", | 13 "description": "Retrieves an identifier for the app instance. The instan
ce ID will be returned by the <code>callback</code>. The same ID will be returne
d as long as the application identity has not been revoked or expired.", |
| 15 "parameters": [ | 14 "parameters": [ |
| 16 { | 15 { |
| 17 "name": "callback", | 16 "name": "callback", |
| 18 "type": "function", | 17 "type": "function", |
| 19 "description": "Function called when the retrieval completes. It sho
uld check $(ref:runtime.lastError) for error when instanceID is empty.", | 18 "description": "Function called when the retrieval completes. It sho
uld check $(ref:runtime.lastError) for error when instanceID is empty.", |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ], | 137 ], |
| 139 "events": [ | 138 "events": [ |
| 140 { | 139 { |
| 141 "name": "onTokenRefresh", | 140 "name": "onTokenRefresh", |
| 142 "type": "function", | 141 "type": "function", |
| 143 "description": "Fired when all the granted tokens need to be refreshed." | 142 "description": "Fired when all the granted tokens need to be refreshed." |
| 144 } | 143 } |
| 145 ] | 144 ] |
| 146 } | 145 } |
| 147 ] | 146 ] |
| OLD | NEW |