search() {
      const searchDoneEvent =
          new Event(cloudprint.CloudPrintInterfaceEventType.SEARCH_DONE);
      searchDoneEvent.origin = print_preview.DestinationOrigin.COOKIES;
      searchDoneEvent.printers = [];
      this.cloudPrintersMap_.forEach((value) => {
        searchDoneEvent.printers.push(value);
      });
      searchDoneEvent.isRecent = true;
      searchDoneEvent.user = 'foo@chromium.org';
      searchDoneEvent.searchDone = true;
      this.dispatchEvent(searchDoneEvent);
    }
/**
     * Dispatches a CloudPrintInterfaceEventType.SEARCH_DONE event with the
     * printers that have been set so far using setPrinter().
     */
Dispatches a CloudPrintInterfaceEventType.SEARCH_DONE event with the
printers that have been set so far using setPrinter().
Dispatches a CloudPrintInterfaceEventType . SEARCH_DONE event with the printers that have been set so far using setPrinter () .
search() {
      const searchDoneEvent =
          new Event(cloudprint.CloudPrintInterfaceEventType.SEARCH_DONE);
      searchDoneEvent.origin = print_preview.DestinationOrigin.COOKIES;
      searchDoneEvent.printers = [];
      this.cloudPrintersMap_.forEach((value) => {
        searchDoneEvent.printers.push(value);
      });
      searchDoneEvent.isRecent = true;
      searchDoneEvent.user = 'foo@chromium.org';
      searchDoneEvent.searchDone = true;
      this.dispatchEvent(searchDoneEvent);
    }
search ( ) { const searchDoneEvent = new Event ( cloudprint . CloudPrintInterfaceEventType . SEARCH_DONE ) ; searchDoneEvent . origin = print_preview . DestinationOrigin . COOKIES ; searchDoneEvent . printers = [ ] ; this . cloudPrintersMap_ . forEach ( ( value ) => { searchDoneEvent . printers . push ( value ) ; } ) ; searchDoneEvent . isRecent = true ; searchDoneEvent . user = 'foo@chromium.org' ; searchDoneEvent . searchDone = true ; this . dispatchEvent ( searchDoneEvent ) ; }
Dispatches a CloudPrintInterfaceEventType.SEARCH_DONE event with the
 printers that have been set so far using setPrinter().
Dispatches a CloudPrintInterfaceEventType . SEARCH_DONE event with the printers that have been set so far using setPrinter () .