| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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": "offersPrivate", | 7 "namespace": "echoPrivate", |
| 8 "nodoc": true, | 8 "nodoc": true, |
| 9 "platforms": ["chromeos"], | 9 "platforms": ["chromeos"], |
| 10 "types": [], | 10 "types": [], |
| 11 "functions": [ | 11 "functions": [ |
| 12 { | 12 { |
| 13 "name": "getCouponCode", | 13 "name": "getRegistrationCode", |
| 14 "description": "Get the group or coupon code from underlying storage.", | 14 "description": "Get the group or coupon code from underlying storage.", |
| 15 "type": "function", | 15 "type": "function", |
| 16 "parameters": [ | 16 "parameters": [ |
| 17 { | 17 { |
| 18 "name": "type", | 18 "name": "type", |
| 19 "type": "string", | 19 "type": "string", |
| 20 "description": "Type of coupon code requested to be read (coupon or
group)." | 20 "description": "Type of coupon code requested to be read (coupon or
group)." |
| 21 }, | 21 }, |
| 22 { | 22 { |
| 23 "name": "callback", | 23 "name": "callback", |
| 24 "type": "function", | 24 "type": "function", |
| 25 "parameters": [ | 25 "parameters": [ |
| 26 { | 26 { |
| 27 "name": "result", | 27 "name": "result", |
| 28 "type": "string", | 28 "type": "string", |
| 29 "description" : "The coupon code." | 29 "description" : "The coupon code." |
| 30 } | 30 } |
| 31 ] | 31 ] |
| 32 } | 32 } |
| 33 ] | 33 ] |
| 34 }, | |
| 35 { | |
| 36 "name": "getUserConsent", | |
| 37 "description": "Get user's consent by displaying an InfoBar.", | |
| 38 "type": "function", | |
| 39 "parameters": [ | |
| 40 { | |
| 41 "name": "callback", | |
| 42 "type": "function", | |
| 43 "parameters": [ | |
| 44 { | |
| 45 "name": "result", | |
| 46 "type": "boolean", | |
| 47 "description" : "Consent result." | |
| 48 } | |
| 49 ] | |
| 50 } | |
| 51 ] | |
| 52 } | 34 } |
| 53 ] | 35 ] |
| 54 } | 36 } |
| 55 ] | 37 ] |
| OLD | NEW |