| 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": "metricsPrivate", | 7 "namespace": "metricsPrivate", |
| 8 "description": "none", | 8 "description": "none", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 "name": "callback", | 50 "name": "callback", |
| 51 "type": "function", | 51 "type": "function", |
| 52 "optional": "false", | 52 "optional": "false", |
| 53 "parameters": [ | 53 "parameters": [ |
| 54 { "name": "group", "type": "string" } | 54 { "name": "group", "type": "string" } |
| 55 ] | 55 ] |
| 56 } | 56 } |
| 57 ] | 57 ] |
| 58 }, | 58 }, |
| 59 { | 59 { |
| 60 "name": "getVariationParams", |
| 61 "description": "Returns variation parameters for the named trial if avai
lable, or undefined otherwise.", |
| 62 "type": "function", |
| 63 "parameters": [ |
| 64 {"name": "name", "type": "string"}, |
| 65 { |
| 66 "name": "callback", |
| 67 "type": "function", |
| 68 "optional": "false", |
| 69 "parameters": [ |
| 70 { |
| 71 "name": "params", |
| 72 "type": "object", |
| 73 "additionalProperties": { "type": "any" } |
| 74 } |
| 75 ] |
| 76 } |
| 77 ] |
| 78 }, |
| 79 { |
| 60 "name": "recordUserAction", | 80 "name": "recordUserAction", |
| 61 "type": "function", | 81 "type": "function", |
| 62 "description": "Records an action performed by the user.", | 82 "description": "Records an action performed by the user.", |
| 63 "parameters": [ | 83 "parameters": [ |
| 64 {"name": "name", "type": "string"} | 84 {"name": "name", "type": "string"} |
| 65 ] | 85 ] |
| 66 }, | 86 }, |
| 67 { | 87 { |
| 68 "name": "recordPercentage", | 88 "name": "recordPercentage", |
| 69 "type": "function", | 89 "type": "function", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 "description": "Adds a value to the given metric.", | 153 "description": "Adds a value to the given metric.", |
| 134 "parameters": [ | 154 "parameters": [ |
| 135 {"name": "metric", "$ref": "MetricType"}, | 155 {"name": "metric", "$ref": "MetricType"}, |
| 136 {"name": "value", "type": "integer"} | 156 {"name": "value", "type": "integer"} |
| 137 ] | 157 ] |
| 138 } | 158 } |
| 139 ], | 159 ], |
| 140 "events": [] | 160 "events": [] |
| 141 } | 161 } |
| 142 ] | 162 ] |
| OLD | NEW |