| Index: chrome/browser/resources/options2/media_galleries_list.js
|
| diff --git a/chrome/browser/resources/options2/media_galleries_list.js b/chrome/browser/resources/options2/media_galleries_list.js
|
| deleted file mode 100644
|
| index 417084be8c71c25b78fa05b5e512db32fd27c37c..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/resources/options2/media_galleries_list.js
|
| +++ /dev/null
|
| @@ -1,59 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -cr.define('options', function() {
|
| - /** @const */ var DeletableItem = options.DeletableItem;
|
| - /** @const */ var DeletableItemList = options.DeletableItemList;
|
| -
|
| - /**
|
| - * @constructor
|
| - * @extends {DeletableItem}
|
| - */
|
| - function MediaGalleriesListItem(galleryInfo) {
|
| - var el = cr.doc.createElement('div');
|
| - el.galleryInfo_ = galleryInfo;
|
| - el.__proto__ = MediaGalleriesListItem.prototype;
|
| - el.decorate();
|
| - return el;
|
| - }
|
| -
|
| - MediaGalleriesListItem.prototype = {
|
| - __proto__: DeletableItem.prototype,
|
| -
|
| - decorate: function() {
|
| - DeletableItem.prototype.decorate.call(this);
|
| -
|
| - var span = this.ownerDocument.createElement('span');
|
| - span.textContent = this.galleryInfo_.displayName;
|
| - this.contentElement.appendChild(span);
|
| - this.contentElement.title = this.galleryInfo_.path;
|
| - },
|
| - };
|
| -
|
| - var MediaGalleriesList = cr.ui.define('list');
|
| -
|
| - MediaGalleriesList.prototype = {
|
| - __proto__: DeletableItemList.prototype,
|
| -
|
| - /** @inheritDoc */
|
| - decorate: function() {
|
| - DeletableItemList.prototype.decorate.call(this);
|
| - this.autoExpands_ = true;
|
| - },
|
| -
|
| - /** @inheritDoc */
|
| - createItem: function(galleryInfo) {
|
| - return new MediaGalleriesListItem(galleryInfo);
|
| - },
|
| -
|
| - /** @inheritDoc */
|
| - deleteItemAtIndex: function(index) {
|
| - chrome.send('forgetGallery', [this.dataModel.item(index).id]);
|
| - },
|
| - };
|
| -
|
| - return {
|
| - MediaGalleriesList: MediaGalleriesList
|
| - };
|
| -});
|
|
|