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

Side by Side Diff: chrome/common/extensions/api/script_badge.json

Issue 10695070: Implement scriptBadge.requestToAct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "scriptBadge", 7 "namespace": "scriptBadge",
8 "dependencies": [ "tabs" ], 8 "dependencies": [ "tabs" ],
9 "functions": [ 9 "functions": [
10 { 10 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 "type": "function", 44 "type": "function",
45 "name": "callback", 45 "name": "callback",
46 "parameters": [ 46 "parameters": [
47 { 47 {
48 "name": "result", 48 "name": "result",
49 "type": "string" 49 "type": "string"
50 } 50 }
51 ] 51 ]
52 } 52 }
53 ] 53 ]
54 },
55 {
56 "name": "requestToAct",
Aaron Boodman 2012/07/03 01:29:31 Despite my previous statements, I think we should
Jeffrey Yasskin 2012/07/10 21:52:33 Done.
57 "type": "function",
58 "description": "Shows a greyed-out script badge in order to ask permissi on to run on this tab. If the user clicks on the badge, the activeTab APIs beco me available. If the extension already has permission to run on this tab, or th e tab is privileged so that the extension could never run on it, this call does nothing.",
Aaron Boodman 2012/07/03 01:29:31 Don't think we should commit to exact presentation
Aaron Boodman 2012/07/03 01:29:31 I don't think we should do anything special if the
Jeffrey Yasskin 2012/07/10 21:52:33 Done.
Jeffrey Yasskin 2012/07/10 21:52:33 If the extension has already run script, we'd have
Aaron Boodman 2012/07/10 22:50:46 If the script badge is already showing, I think th
Jeffrey Yasskin 2012/07/16 21:33:37 I've removed the "for now" about this.
59 "parameters": [
60 {
61 "name": "details",
62 "type": "object",
63 "properties": {
64 "tabId": {
65 "type": "integer",
66 "description": "Specify the tab to request to act on."
67 }
68 }
69 }
70 ]
54 } 71 }
55 ], 72 ],
56 "events": [ 73 "events": [
57 { 74 {
58 "name": "onClicked", 75 "name": "onClicked",
59 "type": "function", 76 "type": "function",
60 "description": "Fired when a script badge icon is clicked. This event w ill not fire if the script badge has a popup.", 77 "description": "Fired when a script badge icon is clicked. This event w ill not fire if the script badge has a popup.",
61 "parameters": [ 78 "parameters": [
62 { 79 {
63 "name": "tab", 80 "name": "tab",
64 "$ref": "tabs.Tab" 81 "$ref": "tabs.Tab"
65 } 82 }
66 ] 83 ]
67 } 84 }
68 ] 85 ]
69 } 86 }
70 ] 87 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698