| Index: chrome/background.js |
| =================================================================== |
| --- a/chrome/background.js |
| +++ b/chrome/background.js |
| @@ -350,4 +350,20 @@ |
| onBeforeRequest: new BeforeRequestEventTarget(), |
| handlerBehaviorChanged: chrome.webRequest.handlerBehaviorChanged |
| }; |
| + |
| + ext.contextMenus = { |
| + create: function(title, contexts, onclick) { |
|
Felix Dahlke
2013/12/04 15:24:02
{ should go on a new line, likewise below.
Thomas Greiner
2013/12/09 16:33:48
Done.
|
| + chrome.contextMenus.create({ |
| + title: title, |
| + contexts: contexts, |
| + onclick: function(info, tab) |
| + { |
| + onclick(info, new Tab(tab)); |
|
Sebastian Noack
2013/11/28 23:17:41
The OnClickData is a rich data structue with some
Thomas Greiner
2013/12/09 16:33:48
Done.
|
| + } |
| + }); |
| + }, |
| + removeAll: function(callback) { |
| + chrome.contextMenus.removeAll(callback); |
| + } |
| + }; |
| })(); |