| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * Scrollable thumbnail ribbon at the bottom of the Gallery in the Slide mode. | 6 * Scrollable thumbnail ribbon at the bottom of the Gallery in the Slide mode. |
| 9 * | 7 * |
| 10 * @param {Document} document Document. | 8 * @param {Document} document Document. |
| 11 * @param {cr.ui.ArrayDataModel} dataModel Data model. | 9 * @param {cr.ui.ArrayDataModel} dataModel Data model. |
| 12 * @param {cr.ui.ListSelectionModel} selectionModel Selection model. | 10 * @param {cr.ui.ListSelectionModel} selectionModel Selection model. |
| 13 * @return {Element} Ribbon element. | 11 * @return {Element} Ribbon element. |
| 14 * @constructor | 12 * @constructor |
| 15 */ | 13 */ |
| 16 function Ribbon(document, dataModel, selectionModel) { | 14 function Ribbon(document, dataModel, selectionModel) { |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 * @param {string} oldUrl Old url. | 372 * @param {string} oldUrl Old url. |
| 375 * @param {string} newUrl New url. | 373 * @param {string} newUrl New url. |
| 376 * @private | 374 * @private |
| 377 */ | 375 */ |
| 378 Ribbon.prototype.remapCache_ = function(oldUrl, newUrl) { | 376 Ribbon.prototype.remapCache_ = function(oldUrl, newUrl) { |
| 379 if (oldUrl != newUrl && (oldUrl in this.renderCache_)) { | 377 if (oldUrl != newUrl && (oldUrl in this.renderCache_)) { |
| 380 this.renderCache_[newUrl] = this.renderCache_[oldUrl]; | 378 this.renderCache_[newUrl] = this.renderCache_[oldUrl]; |
| 381 delete this.renderCache_[oldUrl]; | 379 delete this.renderCache_[oldUrl]; |
| 382 } | 380 } |
| 383 }; | 381 }; |
| OLD | NEW |