| 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 /** | 5 /** |
| 6 * Slide mode displays a single image and has a set of controls to navigate | 6 * Slide mode displays a single image and has a set of controls to navigate |
| 7 * between the images and to edit an image. | 7 * between the images and to edit an image. |
| 8 * | 8 * |
| 9 * @param {!HTMLElement} container Main container element. | 9 * @param {!HTMLElement} container Main container element. |
| 10 * @param {!HTMLElement} content Content container element. | 10 * @param {!HTMLElement} content Content container element. |
| 11 * @param {!HTMLElement} topToolbar Top toolbar element. | 11 * @param {!HTMLElement} topToolbar Top toolbar element. |
| 12 * @param {!HTMLElement} bottomToolbar Toolbar element. | 12 * @param {!HTMLElement} bottomToolbar Toolbar element. |
| 13 * @param {!ImageEditor.Prompt} prompt Prompt. | 13 * @param {!ImageEditorPrompt} prompt Prompt. |
| 14 * @param {!ErrorBanner} errorBanner Error banner. | 14 * @param {!ErrorBanner} errorBanner Error banner. |
| 15 * @param {!cr.ui.ArrayDataModel} dataModel Data model. | 15 * @param {!cr.ui.ArrayDataModel} dataModel Data model. |
| 16 * @param {!cr.ui.ListSelectionModel} selectionModel Selection model. | 16 * @param {!cr.ui.ListSelectionModel} selectionModel Selection model. |
| 17 * @param {!MetadataModel} metadataModel | 17 * @param {!MetadataModel} metadataModel |
| 18 * @param {!ThumbnailModel} thumbnailModel | 18 * @param {!ThumbnailModel} thumbnailModel |
| 19 * @param {!Object} context Context. | 19 * @param {!Object} context Context. |
| 20 * @param {!VolumeManagerWrapper} volumeManager Volume manager. | 20 * @param {!VolumeManagerWrapper} volumeManager Volume manager. |
| 21 * @param {function(function())} toggleMode Function to toggle the Gallery mode. | 21 * @param {function(function())} toggleMode Function to toggle the Gallery mode. |
| 22 * @param {function(string):string} displayStringFunction String formatting | 22 * @param {function(string):string} displayStringFunction String formatting |
| 23 * function. | 23 * function. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 this.topToolbar_ = topToolbar; | 58 this.topToolbar_ = topToolbar; |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * @type {!HTMLElement} | 61 * @type {!HTMLElement} |
| 62 * @private | 62 * @private |
| 63 * @const | 63 * @const |
| 64 */ | 64 */ |
| 65 this.bottomToolbar_ = bottomToolbar; | 65 this.bottomToolbar_ = bottomToolbar; |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * @type {!ImageEditor.Prompt} | 68 * @type {!ImageEditorPrompt} |
| 69 * @private | 69 * @private |
| 70 * @const | 70 * @const |
| 71 */ | 71 */ |
| 72 this.prompt_ = prompt; | 72 this.prompt_ = prompt; |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * @type {!ErrorBanner} | 75 * @type {!ErrorBanner} |
| 76 * @private | 76 * @private |
| 77 * @const | 77 * @const |
| 78 */ | 78 */ |
| (...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2144 /** | 2144 /** |
| 2145 * Handles mouse up events. | 2145 * Handles mouse up events. |
| 2146 * @param {!Event} event Wheel event. | 2146 * @param {!Event} event Wheel event. |
| 2147 * @private | 2147 * @private |
| 2148 */ | 2148 */ |
| 2149 TouchHandler.prototype.onMouseUp_ = function(event) { | 2149 TouchHandler.prototype.onMouseUp_ = function(event) { |
| 2150 if (event.button !== 0) | 2150 if (event.button !== 0) |
| 2151 return; | 2151 return; |
| 2152 this.clickStarted_ = false; | 2152 this.clickStarted_ = false; |
| 2153 }; | 2153 }; |
| OLD | NEW |