function requestSetup(destId) {
      const origin = cr.isChromeOS ? print_preview.DestinationOrigin.CROS :
                                     print_preview.DestinationOrigin.LOCAL;

      const dest = new print_preview.Destination(
          destId, print_preview.DestinationType.LOCAL, origin, 'displayName',
          print_preview.DestinationConnectionStatus.ONLINE);

      // Add the destination to the list.
      dialog.updateDestinations_([dest]);
      simulateDestinationSelect(dest);
    }
/**
     * Adds a destination to the dialog and simulates selection of the
     * destination.
     * @param {string} destId The ID for the destination.
     */
Adds a destination to the dialog and simulates selection of the
destination.
@param {string} destId The ID for the destination.
Adds a destination to the dialog and simulates selection of the destination . @param { string } destId The ID for the destination .
function requestSetup(destId) {
      const origin = cr.isChromeOS ? print_preview.DestinationOrigin.CROS :
                                     print_preview.DestinationOrigin.LOCAL;
      const dest = new print_preview.Destination(
          destId, print_preview.DestinationType.LOCAL, origin, 'displayName',
          print_preview.DestinationConnectionStatus.ONLINE);
      dialog.updateDestinations_([dest]);
      simulateDestinationSelect(dest);
    }
function requestSetup ( destId ) { const origin = cr . isChromeOS ? print_preview . DestinationOrigin . CROS : print_preview . DestinationOrigin . LOCAL ; const dest = new print_preview . Destination ( destId , print_preview . DestinationType . LOCAL , origin , 'displayName' , print_preview . DestinationConnectionStatus . ONLINE ) ; dialog . updateDestinations_ ( [ dest ] ) ; simulateDestinationSelect ( dest ) ; }
Adds a destination to the dialog and simulates selection of the
 destination.
Adds a destination to the dialog and simulates selection of the destination .
// Add the destination to the list.