Index: chrome/ext/background.js |
=================================================================== |
--- a/chrome/ext/background.js |
+++ b/chrome/ext/background.js |
@@ -41,16 +41,20 @@ |
var frames = framesOfTabs[this._id]; |
if (frames) |
{ |
var frame = frames[0]; |
if (frame) |
return frame.url; |
} |
}, |
+ equals: function(page) |
+ { |
+ return this._id == page._id; |
+ }, |
activate: function() |
{ |
chrome.tabs.update(this._id, {selected: true}); |
}, |
sendMessage: function(message, responseCallback) |
{ |
chrome.tabs.sendMessage(this._id, message, responseCallback); |
} |