| Index: chrome/ext/background.js |
| =================================================================== |
| --- a/chrome/ext/background.js |
| +++ b/chrome/ext/background.js |
| @@ -51,16 +51,21 @@ |
| chrome.tabs.update(this._id, {selected: true}); |
| }, |
| sendMessage: function(message, responseCallback) |
| { |
| chrome.tabs.sendMessage(this._id, message, responseCallback); |
| } |
| }; |
| + ext._getPage = function(id) |
| + { |
| + return new Page({id: parseInt(id, 10)}); |
| + }; |
| + |
| ext.pages = { |
| open: function(url, callback) |
| { |
| if (callback) |
| { |
| chrome.tabs.create({url: url}, function(openedTab) |
| { |
| var onUpdated = function(tabId, changeInfo, tab) |