Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4633)

Unified Diff: chrome/common/extensions/api/topSites.json

Issue 9721013: Move topSites API out of experimental (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/docs/api_index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"}
}
]
}
« no previous file with comments | « chrome/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/docs/api_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698