| 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": "experimental.topSites", | 7 "namespace": "topSites", |
| 8 "nodoc": true, | 8 "types": [ |
| 9 "types": [], | 9 { |
| 10 "id": "MostVisitedURL", |
| 11 "type": "object", |
| 12 "description": "An object encapsulating a most visited URL, such as the
URLs on the new tab page.", |
| 13 "properties": { |
| 14 "url": {"type": "string", "description": "The most visited URL."}, |
| 15 "title": {"type": "string", "description": "The title of the page"} |
| 16 } |
| 17 } |
| 18 ], |
| 10 "functions": [ | 19 "functions": [ |
| 11 { | 20 { |
| 12 "name": "get", | 21 "name": "get", |
| 13 "type": "function", | 22 "type": "function", |
| 14 "description": "Gets a list of top sites.", | 23 "description": "Gets a list of top sites.", |
| 15 "parameters": [ | 24 "parameters": [ |
| 16 { | 25 { |
| 17 "type": "function", | 26 "type": "function", |
| 18 "name": "callback", | 27 "name": "callback", |
| 19 "parameters": [ | 28 "parameters": [ |
| 20 { | 29 { |
| 21 "type": "array", | 30 "type": "array", |
| 22 "name": "data", | 31 "name": "data", |
| 23 "items": { | 32 "items": {"$ref": "MostVisitedURL"} |
| 24 "type": "object", | |
| 25 "properties": { | |
| 26 "title": { | |
| 27 "type": "string", | |
| 28 "description": "Page title" | |
| 29 }, | |
| 30 "url": { | |
| 31 "type": "string", | |
| 32 "description": "Page url" | |
| 33 } | |
| 34 } | |
| 35 } | |
| 36 } | 33 } |
| 37 ] | 34 ] |
| 38 } | 35 } |
| 39 ] | 36 ] |
| 40 } | 37 } |
| 41 ] | 38 ] |
| 42 } | 39 } |
| 43 ] | 40 ] |
| OLD | NEW |