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

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: Sync 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": "getAttention",
57 "type": "function",
58
59 "description": "Brings the script badge to the attention of the user, im ploring her to click. You should call this when you detect that you can do some thing to a particular tab. Do not call this for every tab. That's tacky. If th e user clicks on the badge, the activeTab APIs become available. If the extensio n has already run on this tab, this call does nothing.",
60
61 "parameters": [
62 {
63 "name": "details",
64 "type": "object",
65 "properties": {
66 "tabId": {
67 "type": "integer",
68 "description": "Specify the tab to request to act on."
69 }
70 }
71 }
72 ]
54 } 73 }
55 ], 74 ],
56 "events": [ 75 "events": [
57 { 76 {
58 "name": "onClicked", 77 "name": "onClicked",
59 "type": "function", 78 "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.", 79 "description": "Fired when a script badge icon is clicked. This event w ill not fire if the script badge has a popup.",
61 "parameters": [ 80 "parameters": [
62 { 81 {
63 "name": "tab", 82 "name": "tab",
64 "$ref": "tabs.Tab" 83 "$ref": "tabs.Tab"
65 } 84 }
66 ] 85 ]
67 } 86 }
68 ] 87 ]
69 } 88 }
70 ] 89 ]
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/docs/extensions/scriptBadge.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698