submit(destination, printTicket, documentInfo, data) {
      const result = VERSION_REGEXP_.exec(navigator.userAgent);
      let chromeVersion = 'unknown';
      if (result && result.length == 2) {
        chromeVersion = result[1];
      }
      const params = [
        new HttpParam('printerid', destination.id),
        new HttpParam('contentType', 'dataUrl'),
        new HttpParam('title', documentInfo.title),
        new HttpParam('ticket', printTicket),
        new HttpParam('content', 'data:application/pdf;base64,' + data),
        new HttpParam('tag', '__google__chrome_version=' + chromeVersion),
        new HttpParam('tag', '__google__os=' + navigator.platform)
      ];
      const cpRequest = this.buildRequest_(
          'POST', 'submit', params, destination.origin, destination.account,
          this.onSubmitDone_.bind(this));
      this.sendOrQueueRequest_(cpRequest);
    }
/**
     * Sends a Google Cloud Print submit API request.
     * @param {!print_preview.Destination} destination Cloud destination to
     *     print to.
     * @param {string} printTicket The print ticket to print.
     * @param {!print_preview.DocumentInfo} documentInfo Document data model.
     * @param {string} data Base64 encoded data of the document.
     */
Sends a Google Cloud Print submit API request.
@param {!print_preview.Destination} destination Cloud destination to
print to.
@param {string} printTicket The print ticket to print.
Sends a Google Cloud Print submit API request . @param { !print_preview . Destination } destination Cloud destination to print to . @param { string } printTicket The print ticket to print .
submit(destination, printTicket, documentInfo, data) {
      const result = VERSION_REGEXP_.exec(navigator.userAgent);
      let chromeVersion = 'unknown';
      if (result && result.length == 2) {
        chromeVersion = result[1];
      }
      const params = [
        new HttpParam('printerid', destination.id),
        new HttpParam('contentType', 'dataUrl'),
        new HttpParam('title', documentInfo.title),
        new HttpParam('ticket', printTicket),
        new HttpParam('content', 'data:application/pdf;base64,' + data),
        new HttpParam('tag', '__google__chrome_version=' + chromeVersion),
        new HttpParam('tag', '__google__os=' + navigator.platform)
      ];
      const cpRequest = this.buildRequest_(
          'POST', 'submit', params, destination.origin, destination.account,
          this.onSubmitDone_.bind(this));
      this.sendOrQueueRequest_(cpRequest);
    }
submit ( destination , printTicket , documentInfo , data ) { const result = VERSION_REGEXP_ . exec ( navigator . userAgent ) ; let chromeVersion = 'unknown' ; if ( result && result . length == 2 ) { chromeVersion = result [ 1 ] ; } const params = [ new HttpParam ( 'printerid' , destination . id ) , new HttpParam ( 'contentType' , 'dataUrl' ) , new HttpParam ( 'title' , documentInfo . title ) , new HttpParam ( 'ticket' , printTicket ) , new HttpParam ( 'content' , 'data:application/pdf;base64,' + data ) , new HttpParam ( 'tag' , '__google__chrome_version=' + chromeVersion ) , new HttpParam ( 'tag' , '__google__os=' + navigator . platform ) ] ; const cpRequest = this . buildRequest_ ( 'POST' , 'submit' , params , destination . origin , destination . account , this . onSubmitDone_ . bind ( this ) ) ; this . sendOrQueueRequest_ ( cpRequest ) ; }
Sends a Google Cloud Print submit API request.
Sends a Google Cloud Print submit API request .