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

    this.frame_.id = 'default-task-dialog';

    this.list_ = new cr.ui.List();
    this.list_.id = 'default-tasks-list';
    this.frame_.insertBefore(this.list_, this.text_.nextSibling);

    this.selectionModel_ = this.list_.selectionModel =
        new cr.ui.ListSingleSelectionModel();
    this.dataModel_ = this.list_.dataModel = new cr.ui.ArrayDataModel([]);

    // List has max-height defined at css, so that list grows automatically,
    // but doesn't exceed predefined size.
    this.list_.autoExpands = true;
    this.list_.activateItemAtIndex = this.activateItemAtIndex_.bind(this);
    // Use 'click' instead of 'change' for keyboard users.
    this.list_.addEventListener('click', this.onSelected_.bind(this));
    this.list_.addEventListener('change', this.onListChange_.bind(this));

    this.initialFocusElement_ = this.list_;

    var self = this;

    // Binding stuff doesn't work with constructors, so we have to create
    // closure here.
    this.list_.itemConstructor = function(item) {
      return self.renderItem(item);
    };
  }
/**
   * Creates dialog in DOM tree.
   *
   * @param {HTMLElement} parentNode Node to be parent for this dialog.
   * @constructor
   * @extends {FileManagerDialogBase}
   */
Creates dialog in DOM tree.
@param {HTMLElement} parentNode Node to be parent for this dialog.
Creates dialog in DOM tree . @param { HTMLElement } parentNode Node to be parent for this dialog .
function DefaultTaskDialog(parentNode) {
    FileManagerDialogBase.call(this, parentNode);
    this.frame_.id = 'default-task-dialog';
    this.list_ = new cr.ui.List();
    this.list_.id = 'default-tasks-list';
    this.frame_.insertBefore(this.list_, this.text_.nextSibling);
    this.selectionModel_ = this.list_.selectionModel =
        new cr.ui.ListSingleSelectionModel();
    this.dataModel_ = this.list_.dataModel = new cr.ui.ArrayDataModel([]);
    this.list_.autoExpands = true;
    this.list_.activateItemAtIndex = this.activateItemAtIndex_.bind(this);
    this.list_.addEventListener('click', this.onSelected_.bind(this));
    this.list_.addEventListener('change', this.onListChange_.bind(this));
    this.initialFocusElement_ = this.list_;
    var self = this;
    this.list_.itemConstructor = function(item) {
      return self.renderItem(item);
    };
  }
function DefaultTaskDialog ( parentNode ) { FileManagerDialogBase . call ( this , parentNode ) ; this . frame_ . id = 'default-task-dialog' ; this . list_ = new cr . ui . List ( ) ; this . list_ . id = 'default-tasks-list' ; this . frame_ . insertBefore ( this . list_ , this . text_ . nextSibling ) ; this . selectionModel_ = this . list_ . selectionModel = new cr . ui . ListSingleSelectionModel ( ) ; this . dataModel_ = this . list_ . dataModel = new cr . ui . ArrayDataModel ( [ ] ) ; this . list_ . autoExpands = true ; this . list_ . activateItemAtIndex = this . activateItemAtIndex_ . bind ( this ) ; this . list_ . addEventListener ( 'click' , this . onSelected_ . bind ( this ) ) ; this . list_ . addEventListener ( 'change' , this . onListChange_ . bind ( this ) ) ; this . initialFocusElement_ = this . list_ ; var self = this ; this . list_ . itemConstructor = function ( item ) { return self . renderItem ( item ) ; } ; }
Creates dialog in DOM tree.
Creates dialog in DOM tree .
// List has max-height defined at css, so that list grows automatically, // but doesn't exceed predefined size. // Use 'click' instead of 'change' for keyboard users. // Binding stuff doesn't work with constructors, so we have to create // closure here.