function MultiProfileShareDialog(parentNode) {
  FileManagerDialogBase.call(this, parentNode);

  this.mailLabel_ = parentNode.ownerDocument.createElement('label');
  this.mailLabel_.className = 'mail-label';

  var canEdit = parentNode.ownerDocument.createElement('option');
  canEdit.textContent = str('DRIVE_SHARE_TYPE_CAN_EDIT');
  canEdit.value = MultiProfileShareDialog.Result.CAN_EDIT;

  var canComment = parentNode.ownerDocument.createElement('option');
  canComment.textContent = str('DRIVE_SHARE_TYPE_CAN_COMMENT');
  canComment.value = MultiProfileShareDialog.Result.CAN_COMMET;

  var canView = parentNode.ownerDocument.createElement('option');
  canView.textContent = str('DRIVE_SHARE_TYPE_CAN_VIEW');
  canView.value = MultiProfileShareDialog.Result.CAN_VIEW;

  this.shareTypeSelect_ = parentNode.ownerDocument.createElement('select');
  this.shareTypeSelect_.setAttribute('size', 1);
  this.shareTypeSelect_.appendChild(canEdit);
  this.shareTypeSelect_.appendChild(canComment);
  this.shareTypeSelect_.appendChild(canView);

  var shareLine = parentNode.ownerDocument.createElement('div');
  shareLine.className = 'share-line';
  shareLine.appendChild(this.mailLabel_);
  shareLine.appendChild(this.shareTypeSelect_);

  this.frame_.insertBefore(shareLine, this.buttons);
  this.frame_.id = 'multi-profile-share-dialog';

  this.currentProfileId_ = new Promise(function(callback) {
    chrome.fileManagerPrivate.getProfiles(
        function(profiles, currentId, displayedId) {
          callback(currentId);
        });
  });
}
/**
 * Dialog to confirm the share between profiles.
 *
 * @param {HTMLElement} parentNode Node to be parent for this dialog.
 * @constructor
 * @extends {FileManagerDialogBase}
 */
Dialog to confirm the share between profiles.
@param {HTMLElement} parentNode Node to be parent for this dialog.
Dialog to confirm the share between profiles . @param { HTMLElement } parentNode Node to be parent for this dialog .
function MultiProfileShareDialog(parentNode) {
  FileManagerDialogBase.call(this, parentNode);
  this.mailLabel_ = parentNode.ownerDocument.createElement('label');
  this.mailLabel_.className = 'mail-label';
  var canEdit = parentNode.ownerDocument.createElement('option');
  canEdit.textContent = str('DRIVE_SHARE_TYPE_CAN_EDIT');
  canEdit.value = MultiProfileShareDialog.Result.CAN_EDIT;
  var canComment = parentNode.ownerDocument.createElement('option');
  canComment.textContent = str('DRIVE_SHARE_TYPE_CAN_COMMENT');
  canComment.value = MultiProfileShareDialog.Result.CAN_COMMET;
  var canView = parentNode.ownerDocument.createElement('option');
  canView.textContent = str('DRIVE_SHARE_TYPE_CAN_VIEW');
  canView.value = MultiProfileShareDialog.Result.CAN_VIEW;
  this.shareTypeSelect_ = parentNode.ownerDocument.createElement('select');
  this.shareTypeSelect_.setAttribute('size', 1);
  this.shareTypeSelect_.appendChild(canEdit);
  this.shareTypeSelect_.appendChild(canComment);
  this.shareTypeSelect_.appendChild(canView);
  var shareLine = parentNode.ownerDocument.createElement('div');
  shareLine.className = 'share-line';
  shareLine.appendChild(this.mailLabel_);
  shareLine.appendChild(this.shareTypeSelect_);
  this.frame_.insertBefore(shareLine, this.buttons);
  this.frame_.id = 'multi-profile-share-dialog';
  this.currentProfileId_ = new Promise(function(callback) {
    chrome.fileManagerPrivate.getProfiles(
        function(profiles, currentId, displayedId) {
          callback(currentId);
        });
  });
}
function MultiProfileShareDialog ( parentNode ) { FileManagerDialogBase . call ( this , parentNode ) ; this . mailLabel_ = parentNode . ownerDocument . createElement ( 'label' ) ; this . mailLabel_ . className = 'mail-label' ; var canEdit = parentNode . ownerDocument . createElement ( 'option' ) ; canEdit . textContent = str ( 'DRIVE_SHARE_TYPE_CAN_EDIT' ) ; canEdit . value = MultiProfileShareDialog . Result . CAN_EDIT ; var canComment = parentNode . ownerDocument . createElement ( 'option' ) ; canComment . textContent = str ( 'DRIVE_SHARE_TYPE_CAN_COMMENT' ) ; canComment . value = MultiProfileShareDialog . Result . CAN_COMMET ; var canView = parentNode . ownerDocument . createElement ( 'option' ) ; canView . textContent = str ( 'DRIVE_SHARE_TYPE_CAN_VIEW' ) ; canView . value = MultiProfileShareDialog . Result . CAN_VIEW ; this . shareTypeSelect_ = parentNode . ownerDocument . createElement ( 'select' ) ; this . shareTypeSelect_ . setAttribute ( 'size' , 1 ) ; this . shareTypeSelect_ . appendChild ( canEdit ) ; this . shareTypeSelect_ . appendChild ( canComment ) ; this . shareTypeSelect_ . appendChild ( canView ) ; var shareLine = parentNode . ownerDocument . createElement ( 'div' ) ; shareLine . className = 'share-line' ; shareLine . appendChild ( this . mailLabel_ ) ; shareLine . appendChild ( this . shareTypeSelect_ ) ; this . frame_ . insertBefore ( shareLine , this . buttons ) ; this . frame_ . id = 'multi-profile-share-dialog' ; this . currentProfileId_ = new Promise ( function ( callback ) { chrome . fileManagerPrivate . getProfiles ( function ( profiles , currentId , displayedId ) { callback ( currentId ) ; } ) ; } ) ; }
Dialog to confirm the share between profiles.
Dialog to confirm the share between profiles .