Index: lib/requestNotifier.js |
=================================================================== |
--- a/lib/requestNotifier.js |
+++ b/lib/requestNotifier.js |
@@ -117,16 +117,34 @@ RequestNotifier.prototype = |
{ |
this.listener.call(this.listenerObj, entry, this.scanComplete); |
}, |
onComplete: function() |
{ |
this.scanComplete = true; |
this.notifyListener(null); |
+ }, |
+ |
+ /** |
+ * Makes the nodes associated with the given requests blink. |
+ * @param {number[]} requests list of request IDs that were previously |
+ * reported by this notifier. |
+ * @param {Boolean} scrollToItem if true, scroll to first node |
+ */ |
+ flashNodes: function(requests, scrollToItem) |
+ { |
+ if (!requests) |
+ requests = []; |
+ |
+ messageManager.broadcastAsyncMessage("AdblockPlus:FlashNodes", { |
+ notifierID: this.id, |
+ requests, |
+ scrollToItem |
+ }); |
} |
}; |
RequestNotifier.storeSelection = function(/**Window*/ wnd, /**String*/ selection) |
{ |
windowSelection.set(wnd.document, selection); |
}; |
RequestNotifier.getSelection = function(/**Window*/ wnd) /**String*/ |