Index: chrome/common/extensions/api/topSites.json |
diff --git a/chrome/common/extensions/api/experimental.topSites.json b/chrome/common/extensions/api/topSites.json |
similarity index 54% |
rename from chrome/common/extensions/api/experimental.topSites.json |
rename to chrome/common/extensions/api/topSites.json |
index 6f247e78859383d1c1ab5c698c9e889c2feabd4c..e22044706006192e9e4118bf012aee571080c9ce 100644 |
--- a/chrome/common/extensions/api/experimental.topSites.json |
+++ b/chrome/common/extensions/api/topSites.json |
@@ -4,9 +4,18 @@ |
[ |
{ |
- "namespace": "experimental.topSites", |
- "nodoc": true, |
- "types": [], |
+ "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"} |
+ } |
+ } |
+ ], |
"functions": [ |
{ |
"name": "get", |
@@ -20,19 +29,7 @@ |
{ |
"type": "array", |
"name": "data", |
- "items": { |
- "type": "object", |
- "properties": { |
- "title": { |
- "type": "string", |
- "description": "Page title" |
- }, |
- "url": { |
- "type": "string", |
- "description": "Page url" |
- } |
- } |
- } |
+ "items": {"$ref": "MostVisitedURL"} |
} |
] |
} |