OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [ |
| 6 { |
| 7 "namespace": "topSites", |
| 8 "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 "direction": {"type": "string", "enum": ["rtl", "ltr"], "description":
"The direction of the title, with \"rtl\" being right to left and \"ltr\" being
left to right."} |
| 17 } |
| 18 } |
| 19 ], |
| 20 "functions": [ |
| 21 { |
| 22 "name": "get", |
| 23 "type": "function", |
| 24 "description": "Gets a list of top sites.", |
| 25 "parameters": [ |
| 26 { |
| 27 "type": "function", |
| 28 "name": "callback", |
| 29 "parameters": [ |
| 30 { |
| 31 "type": "array", |
| 32 "name": "data", |
| 33 "items": {"$ref": "MostVisitedURL"} |
| 34 } |
| 35 ] |
| 36 } |
| 37 ] |
| 38 } |
| 39 ] |
| 40 } |
| 41 ] |
OLD | NEW |