package webextension_polyfill.urlbar; /** Typically, a provider includes a url property in its results' payloads. When the user picks a result with a URL, Firefox automatically loads the URL. URLs don't make sense for every result type, however. When the user picks a result without a URL, this event is fired. The provider should take an appropriate action in response. Currently the only applicable ResultTypes are dynamic and tip. **/ typedef OnResultPickedEvent = { /** Registers an event listener callback to an event. **/ function addListener(callback:(payload:OnResultPickedPayloadType, elementName:String) -> Void, providerName:String):Void; /** Deregisters an event listener callback from an event. **/ function removeListener(callback:(payload:OnResultPickedPayloadType, elementName:String) -> Void):Void; function hasListener(callback:(payload:OnResultPickedPayloadType, elementName:String) -> Void):Bool; function hasListeners():Bool; };