onSubmitDone_(request) {
      if (request.xhr.status == 200 && request.result['success']) {
        const submitDoneEvent =
            new Event(CloudPrintInterfaceEventType.SUBMIT_DONE);
        submitDoneEvent.jobId = request.result['job']['id'];
        this.dispatchEvent(submitDoneEvent);
      } else {
        const errorEvent = this.createErrorEvent_(
            CloudPrintInterfaceEventType.SUBMIT_FAILED, request);
        this.dispatchEvent(errorEvent);
      }
    }
/**
     * Called when the submit request completes.
     * @param {!cloudprint.CloudPrintRequest} request Request that has been
     *     completed.
     * @private
     */
Called when the submit request completes.
@param {!cloudprint.CloudPrintRequest} request Request that has been
completed.
@private
Called when the submit request completes . @param { !cloudprint . CloudPrintRequest } request Request that has been completed . @private
onSubmitDone_(request) {
      if (request.xhr.status == 200 && request.result['success']) {
        const submitDoneEvent =
            new Event(CloudPrintInterfaceEventType.SUBMIT_DONE);
        submitDoneEvent.jobId = request.result['job']['id'];
        this.dispatchEvent(submitDoneEvent);
      } else {
        const errorEvent = this.createErrorEvent_(
            CloudPrintInterfaceEventType.SUBMIT_FAILED, request);
        this.dispatchEvent(errorEvent);
      }
    }
onSubmitDone_ ( request ) { if ( request . xhr . status == 200 && request . result [ 'success' ] ) { const submitDoneEvent = new Event ( CloudPrintInterfaceEventType . SUBMIT_DONE ) ; submitDoneEvent . jobId = request . result [ 'job' ] [ 'id' ] ; this . dispatchEvent ( submitDoneEvent ) ; } else { const errorEvent = this . createErrorEvent_ ( CloudPrintInterfaceEventType . SUBMIT_FAILED , request ) ; this . dispatchEvent ( errorEvent ) ; } }
Called when the submit request completes.
Called when the submit request completes .