blob: 1119a065c974fae901d8bbb0d5b3602477ab78fe [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "topSites",
"description": "Use the <code>chrome.topSites</code> API to access the top sites (i.e. most visited sites) that are displayed on the new tab page. These do not include shortcuts customized by the user.",
"types": [
{
"id": "MostVisitedURL",
"type": "object",
"description": "An object encapsulating a most visited URL, such as the default shortcuts on the new tab page.",
"properties": {
"url": {"type": "string", "description": "The most visited URL."},
"title": {"type": "string", "description": "The title of the page"}
}
}
],
"functions": [
{
"name": "get",
"type": "function",
"description": "Gets a list of top sites.",
"parameters": [
{
"type": "function",
"name": "callback",
"parameters": [
{
"type": "array",
"name": "data",
"items": {"$ref": "MostVisitedURL"}
}
]
}
]
}
]
}
]