function DirectoryTreeNamingController(
    directoryModel, directoryTree, alertDialog) {
  /**
   * @private {!DirectoryModel}
   * @const
   */
  this.directoryModel_ = directoryModel;

  /**
   * @private {!DirectoryTree}
   * @const
   */
  this.directoryTree_ = directoryTree;

  /**
   * @private {!cr.ui.dialogs.AlertDialog}
   * @const
   */
  this.alertDialog_ = alertDialog;

  /**
   * @private {DirectoryItem}
   */
  this.currentDirectoryItem_ = null;

  /**
   * @private {boolean}
   */
  this.editting_ = false;

  /**
   * @private {boolean}
   */
  this.isRemovableRoot_ = false;

  /**
   * @private {VolumeInfo}
   */
  this.volumeInfo_ = null;

  /**
   * @private {!HTMLInputElement}
   * @const
   */
  this.inputElement_ = /** @type {!HTMLInputElement} */
      (document.createElement('input'));
  this.inputElement_.type = 'text';
  this.inputElement_.spellcheck = false;
  this.inputElement_.addEventListener('keydown', this.onKeyDown_.bind(this));
  this.inputElement_.addEventListener('blur', this.commitRename_.bind(this));
  this.inputElement_.addEventListener('click', function(event) {
    // Stop propagation of click event to prevent it being captured by directory
    // item and current directory is changed to editing item.
    event.stopPropagation();
  });
}
/**
 * Naming controller for directory tree.
 * @param {!DirectoryModel} directoryModel
 * @param {!DirectoryTree} directoryTree
 * @param {!cr.ui.dialogs.AlertDialog} alertDialog
 * @constructor
 * @struct
 */
Naming controller for directory tree.
Naming controller for directory tree .
function DirectoryTreeNamingController(
    directoryModel, directoryTree, alertDialog) {
  this.directoryModel_ = directoryModel;
  this.directoryTree_ = directoryTree;
  this.alertDialog_ = alertDialog;
  this.currentDirectoryItem_ = null;
  this.editting_ = false;
  this.isRemovableRoot_ = false;
  this.volumeInfo_ = null;
  this.inputElement_ = 
      (document.createElement('input'));
  this.inputElement_.type = 'text';
  this.inputElement_.spellcheck = false;
  this.inputElement_.addEventListener('keydown', this.onKeyDown_.bind(this));
  this.inputElement_.addEventListener('blur', this.commitRename_.bind(this));
  this.inputElement_.addEventListener('click', function(event) {
    event.stopPropagation();
  });
}
function DirectoryTreeNamingController ( directoryModel , directoryTree , alertDialog ) { this . directoryModel_ = directoryModel ; this . directoryTree_ = directoryTree ; this . alertDialog_ = alertDialog ; this . currentDirectoryItem_ = null ; this . editting_ = false ; this . isRemovableRoot_ = false ; this . volumeInfo_ = null ; this . inputElement_ = ( document . createElement ( 'input' ) ) ; this . inputElement_ . type = 'text' ; this . inputElement_ . spellcheck = false ; this . inputElement_ . addEventListener ( 'keydown' , this . onKeyDown_ . bind ( this ) ) ; this . inputElement_ . addEventListener ( 'blur' , this . commitRename_ . bind ( this ) ) ; this . inputElement_ . addEventListener ( 'click' , function ( event ) { event . stopPropagation ( ) ; } ) ; }
Naming controller for directory tree.
Naming controller for directory tree .
/**
   * @private {!DirectoryModel}
   * @const
   */ /**
   * @private {!DirectoryTree}
   * @const
   */ /**
   * @private {!cr.ui.dialogs.AlertDialog}
   * @const
   */ /**
   * @private {DirectoryItem}
   */ /**
   * @private {boolean}
   */ /**
   * @private {boolean}
   */ /**
   * @private {VolumeInfo}
   */ /**
   * @private {!HTMLInputElement}
   * @const
   */ /** @type {!HTMLInputElement} */ // Stop propagation of click event to prevent it being captured by directory // item and current directory is changed to editing item.