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

Unified Diff: chrome/browser/resources/options2/profiles_icon_grid.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
« no previous file with comments | « chrome/browser/resources/options2/preferences.js ('k') | chrome/browser/resources/options2/search_box.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/profiles_icon_grid.js
diff --git a/chrome/browser/resources/options2/profiles_icon_grid.js b/chrome/browser/resources/options2/profiles_icon_grid.js
deleted file mode 100644
index 287231c88368c9f63072e16a6c26f6feca3ec932..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/options2/profiles_icon_grid.js
+++ /dev/null
@@ -1,68 +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 ListItem = cr.ui.ListItem;
- /** @const */ var Grid = cr.ui.Grid;
- /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
-
- /**
- * Creates a new profile icon grid item.
- * @param {Object} iconURL The profile icon URL.
- * @constructor
- * @extends {cr.ui.GridItem}
- */
- function ProfilesIconGridItem(iconURL) {
- var el = cr.doc.createElement('span');
- el.iconURL_ = iconURL;
- ProfilesIconGridItem.decorate(el);
- return el;
- }
-
- /**
- * Decorates an element as a profile grid item.
- * @param {!HTMLElement} el The element to decorate.
- */
- ProfilesIconGridItem.decorate = function(el) {
- el.__proto__ = ProfilesIconGridItem.prototype;
- el.decorate();
- };
-
- ProfilesIconGridItem.prototype = {
- __proto__: ListItem.prototype,
-
- /** @inheritDoc */
- decorate: function() {
- ListItem.prototype.decorate.call(this);
- var imageEl = cr.doc.createElement('img');
- imageEl.className = 'profile-icon';
- imageEl.src = this.iconURL_;
- this.appendChild(imageEl);
-
- this.className = 'profile-icon-grid-item';
- },
- };
-
- var ProfilesIconGrid = cr.ui.define('grid');
-
- ProfilesIconGrid.prototype = {
- __proto__: Grid.prototype,
-
- /** @inheritDoc */
- decorate: function() {
- Grid.prototype.decorate.call(this);
- this.selectionModel = new ListSingleSelectionModel();
- },
-
- /** @inheritDoc */
- createItem: function(iconURL) {
- return new ProfilesIconGridItem(iconURL);
- },
- };
-
- return {
- ProfilesIconGrid: ProfilesIconGrid
- };
-});
-
« no previous file with comments | « chrome/browser/resources/options2/preferences.js ('k') | chrome/browser/resources/options2/search_box.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698