function FakeItem(rootType, modelItem, tree) {
  var item = new cr.ui.TreeItem();
  // Get the original label id defined by TreeItem, before overwriting
  // prototype.
  var labelId = item.labelElement.id;
  item.__proto__ = FakeItem.prototype;

  item.rootType_ = rootType;
  item.parentTree_ = tree;
  item.modelItem_ = modelItem;
  item.dirEntry_ = modelItem.entry;
  item.innerHTML = TREE_ITEM_INNER_HTML;
  item.labelElement.id = labelId;
  item.label = modelItem.label;

  var icon = queryRequiredElement('.icon', item);
  icon.classList.add('item-icon');
  icon.setAttribute('root-type-icon', rootType);

  return item;
}
/**
 * FakeItem is used by Recent and Linux Files.
 * @param {!VolumeManagerCommon.RootType} rootType root type.
 * @param {!NavigationModelFakeItem} modelItem
 * @param {!DirectoryTree} tree Current tree, which contains this item.
 * @extends {cr.ui.TreeItem}
 * @constructor
 */
FakeItem is used by Recent and Linux Files.
FakeItem is used by Recent and Linux Files .
function FakeItem(rootType, modelItem, tree) {
  var item = new cr.ui.TreeItem();
  var labelId = item.labelElement.id;
  item.__proto__ = FakeItem.prototype;
  item.rootType_ = rootType;
  item.parentTree_ = tree;
  item.modelItem_ = modelItem;
  item.dirEntry_ = modelItem.entry;
  item.innerHTML = TREE_ITEM_INNER_HTML;
  item.labelElement.id = labelId;
  item.label = modelItem.label;
  var icon = queryRequiredElement('.icon', item);
  icon.classList.add('item-icon');
  icon.setAttribute('root-type-icon', rootType);
  return item;
}
function FakeItem ( rootType , modelItem , tree ) { var item = new cr . ui . TreeItem ( ) ; var labelId = item . labelElement . id ; item . __proto__ = FakeItem . prototype ; item . rootType_ = rootType ; item . parentTree_ = tree ; item . modelItem_ = modelItem ; item . dirEntry_ = modelItem . entry ; item . innerHTML = TREE_ITEM_INNER_HTML ; item . labelElement . id = labelId ; item . label = modelItem . label ; var icon = queryRequiredElement ( '.icon' , item ) ; icon . classList . add ( 'item-icon' ) ; icon . setAttribute ( 'root-type-icon' , rootType ) ; return item ; }
FakeItem is used by Recent and Linux Files.
FakeItem is used by Recent and Linux Files .
// Get the original label id defined by TreeItem, before overwriting // prototype.