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 "description": "Use the <code>chrome.topSites</code> API to access the top sites that are displayed on the new tab page.", 9 "types": [ 10 { 11 "id": "MostVisitedURL", 12 "type": "object", 13 "description": "An object encapsulating a most visited URL, such as the URLs on the new tab page.", 14 "properties": { 15 "url": {"type": "string", "description": "The most visited URL."}, 16 "title": {"type": "string", "description": "The title of the page"} 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 ] 42