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 |
Thomas Greiner
2015/11/24 12:15:42
Detail: Parameter type names are inconsistently ca
Wladimir Palant
2015/11/25 19:06:38
Done.
|
+ */ |
+ 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*/ |