search(opt_account, opt_origin) {
      const account = opt_account || '';
      let origins = opt_origin && [opt_origin] || CLOUD_ORIGINS_;
      if (this.isInAppKioskMode_) {
        origins = origins.filter(function(origin) {
          return origin != print_preview.DestinationOrigin.COOKIES;
        });
      }
      this.abortSearchRequests_(origins);
      this.search_(true, account, origins);
      this.search_(false, account, origins);
    }
/**
     * Sends Google Cloud Print search API request.
     * @param {?string=} opt_account Account the search is sent for. When
     *      null or omitted, the search is done on behalf of the primary user.
     * @param {print_preview.DestinationOrigin=} opt_origin When specified,
     *     searches destinations for {@code opt_origin} only, otherwise starts
     *     searches for all origins.
     */
Sends Google Cloud Print search API request.
@param {?string=} opt_account Account the search is sent for. When
null or omitted, the search is done on behalf of the primary user.
@param {print_preview.DestinationOrigin=} opt_origin When specified,
searches destinations for  opt_origin only, otherwise starts
searches for all origins.
Sends Google Cloud Print search API request . @param { ?string = } opt_account Account the search is sent for . When null or omitted the search is done on behalf of the primary user . @param { print_preview . DestinationOrigin = } opt_origin When specified searches destinations for opt_origin only otherwise starts searches for all origins .
search(opt_account, opt_origin) {
      const account = opt_account || '';
      let origins = opt_origin && [opt_origin] || CLOUD_ORIGINS_;
      if (this.isInAppKioskMode_) {
        origins = origins.filter(function(origin) {
          return origin != print_preview.DestinationOrigin.COOKIES;
        });
      }
      this.abortSearchRequests_(origins);
      this.search_(true, account, origins);
      this.search_(false, account, origins);
    }
search ( opt_account , opt_origin ) { const account = opt_account || '' ; let origins = opt_origin && [ opt_origin ] || CLOUD_ORIGINS_ ; if ( this . isInAppKioskMode_ ) { origins = origins . filter ( function ( origin ) { return origin != print_preview . DestinationOrigin . COOKIES ; } ) ; } this . abortSearchRequests_ ( origins ) ; this . search_ ( true , account , origins ) ; this . search_ ( false , account , origins ) ; }
Sends Google Cloud Print search API request.
Sends Google Cloud Print search API request .