Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: chrome/browser/resources/options2/media_galleries_list.js

Issue 10809005: Options: Rename chrome/browser/resources/options2 -> chrome/browser/resources/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
- };
-});

Powered by Google App Engine
This is Rietveld 408576698