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. |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 } | 467 } |
468 | 468 |
469 /** | 469 /** |
470 * List of available editor modes. | 470 * List of available editor modes. |
471 * @type {!Array<ImageEditor.Mode>} | 471 * @type {!Array<ImageEditor.Mode>} |
472 * @const | 472 * @const |
473 */ | 473 */ |
474 SlideMode.EDITOR_MODES = [ | 474 SlideMode.EDITOR_MODES = [ |
475 new ImageEditor.Mode.InstantAutofix(), | 475 new ImageEditor.Mode.InstantAutofix(), |
476 new ImageEditor.Mode.Crop(), | 476 new ImageEditor.Mode.Crop(), |
| 477 new ImageEditor.Mode.Resize(), |
477 new ImageEditor.Mode.Exposure(), | 478 new ImageEditor.Mode.Exposure(), |
478 new ImageEditor.Mode.OneClick( | 479 new ImageEditor.Mode.OneClick( |
479 'rotate_left', 'GALLERY_ROTATE_LEFT', new Command.Rotate(-1)), | 480 'rotate_left', 'GALLERY_ROTATE_LEFT', new Command.Rotate(-1)), |
480 new ImageEditor.Mode.OneClick( | 481 new ImageEditor.Mode.OneClick( |
481 'rotate_right', 'GALLERY_ROTATE_RIGHT', new Command.Rotate(1)) | 482 'rotate_right', 'GALLERY_ROTATE_RIGHT', new Command.Rotate(1)) |
482 ]; | 483 ]; |
483 | 484 |
484 /** | 485 /** |
485 * Map of the key identifier and offset delta. | 486 * Map of the key identifier and offset delta. |
486 * @enum {!Array<number>}) | 487 * @enum {!Array<number>}) |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2137 /** | 2138 /** |
2138 * Handles mouse up events. | 2139 * Handles mouse up events. |
2139 * @param {!Event} event Wheel event. | 2140 * @param {!Event} event Wheel event. |
2140 * @private | 2141 * @private |
2141 */ | 2142 */ |
2142 TouchHandler.prototype.onMouseUp_ = function(event) { | 2143 TouchHandler.prototype.onMouseUp_ = function(event) { |
2143 if (event.button !== 0) | 2144 if (event.button !== 0) |
2144 return; | 2145 return; |
2145 this.clickStarted_ = false; | 2146 this.clickStarted_ = false; |
2146 }; | 2147 }; |
OLD | NEW |