Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 ] |
| OLD | NEW |