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

Side by Side Diff: chrome/common/extensions/api/experimental.discovery.json

Issue 10391034: Scaffolding for an experimental discovery API letting users inject links in the recommended pane of… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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": "experimental.discovery",
8 "functions": [
9 {
10 "name": "suggest",
11 "type": "function",
12 "description": "Suggests a URL for discovery.",
13 "parameters": [
14 {
15 "type": "object",
16 "name": "details",
17 "properties": {
18 "linkUrl": {
19 "type": "string",
20 "description": "The URL to suggest and that will be displayed in the new tab page under the recommended pane."
21 },
22 "linkText": {
23 "type": "string",
24 "description": "The linkified text. It should be relatively shor t."
25 },
26 "score": {
27 "type": "number",
28 "optional": true,
29 "description": "A score indicating how interesting that suggesti on is. A score of 2 is twice as likely to be displayed than a score of 1. Defaul ts to 1."
Aaron Boodman 2012/05/11 21:06:46 What is the range of this number? Are non-integral
beaudoin 2012/05/14 23:28:02 Forced to be within the 0-1 range. Added a check (
30 }
31 }
32 }
33 ]
34 },
35 {
36 "name": "clearSuggestion",
Aaron Boodman 2012/05/11 21:06:46 Should there be a way to get the current suggestio
Aaron Boodman 2012/05/11 21:06:46 Suggest "removeSuggestion". "clear" usually means
beaudoin 2012/05/14 23:28:02 Done.
37 "type": "function",
38 "description": "Clear a URL that was previously suggested for discovery. ",
39 "parameters": [
40 {
41 "type": "string",
42 "name": "linkUrl",
43 "description": "The URL to remove from discovery. Must be exactly th e same as a URL previously used on a call to <a href=\"experimental.discovery.ht ml#method-suggest\"><var>suggest</var></a>."
44 }
45 ]
46 },
47 {
48 "name": "clearAllSuggestions",
49 "type": "function",
50 "description": "Clear all URLs that were previously suggested for discov ery.",
51 "parameters": []
52 }
53 ]
54 }
55 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698