| Index: chrome/common/extensions/api/topSites.json
|
| diff --git a/chrome/common/extensions/api/topSites.json b/chrome/common/extensions/api/topSites.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cddfb197a38b65cbc991d5cbc938d1e84e85693c
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/topSites.json
|
| @@ -0,0 +1,41 @@
|
| +// 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",
|
| + "types": [
|
| + {
|
| + "id": "MostVisitedURL",
|
| + "type": "object",
|
| + "description": "An object encapsulating a most visited URL, such as the URLs on the new tab page.",
|
| + "properties": {
|
| + "url": {"type": "string", "description": "The most visited URL."},
|
| + "title": {"type": "string", "description": "The title of the page"},
|
| + "direction": {"type": "string", "enum": ["rtl", "ltr"], "description": "The direction of the title, with \"rtl\" being right to left and \"ltr\" being left to right."}
|
| + }
|
| + }
|
| + ],
|
| + "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"}
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| +]
|
|
|