onPreviewGenerationDone(previewResponseId, previewUid) {
      if (this.inFlightRequestId_ != previewResponseId) {
        return;  // Ignore old response.
      }
      if (!this.documentInfo_.isModifiable) {
        // Dispatch a PREVIEW_START event since not generating a PDF, which
        // includes print preview for non-modifiable documents, does not
        // trigger PAGE_READY events.
        this.dispatchPreviewStartEvent_(previewUid, 0);
      }
      cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.DOCUMENT_READY);
    }
/**
     * Called when the preview generation is complete. Dispatches a
     * DOCUMENT_READY event.
     * @param {number} previewResponseId
     * @param {number} previewUid
     */
Called when the preview generation is complete. Dispatches a
DOCUMENT_READY event.
@param {number} previewResponseId
@param {number} previewUid
Called when the preview generation is complete . Dispatches a DOCUMENT_READY event . @param { number } previewResponseId @param { number } previewUid
onPreviewGenerationDone(previewResponseId, previewUid) {
      if (this.inFlightRequestId_ != previewResponseId) {
        return;  
      }
      if (!this.documentInfo_.isModifiable) {
        this.dispatchPreviewStartEvent_(previewUid, 0);
      }
      cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.DOCUMENT_READY);
    }
onPreviewGenerationDone ( previewResponseId , previewUid ) { if ( this . inFlightRequestId_ != previewResponseId ) { return ; } if ( ! this . documentInfo_ . isModifiable ) { this . dispatchPreviewStartEvent_ ( previewUid , 0 ) ; } cr . dispatchSimpleEvent ( this , PreviewGenerator . EventType . DOCUMENT_READY ) ; }
Called when the preview generation is complete.
Called when the preview generation is complete .
// Ignore old response. // Dispatch a PREVIEW_START event since not generating a PDF, which // includes print preview for non-modifiable documents, does not // trigger PAGE_READY events.