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 * The overlay displaying the image. | 6 * The overlay displaying the image. |
9 * | 7 * |
10 * @param {HTMLElement} container The container element. | 8 * @param {HTMLElement} container The container element. |
11 * @param {Viewport} viewport The viewport. | 9 * @param {Viewport} viewport The viewport. |
12 * @constructor | 10 * @constructor |
13 * @extends {ImageBuffer.Overlay} | 11 * @extends {ImageBuffer.Overlay} |
14 */ | 12 */ |
15 function ImageView(container, viewport) { | 13 function ImageView(container, viewport) { |
16 ImageBuffer.Overlay.call(this); | 14 ImageBuffer.Overlay.call(this); |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 }; | 833 }; |
836 | 834 |
837 ImageView.Effect.Rotate.prototype = { __proto__: ImageView.Effect.prototype }; | 835 ImageView.Effect.Rotate.prototype = { __proto__: ImageView.Effect.prototype }; |
838 | 836 |
839 /** | 837 /** |
840 * @override | 838 * @override |
841 */ | 839 */ |
842 ImageView.Effect.Rotate.prototype.transform = function(element, viewport) { | 840 ImageView.Effect.Rotate.prototype.transform = function(element, viewport) { |
843 return viewport.getInverseTransformForRotatedImage(this.orientation_); | 841 return viewport.getInverseTransformForRotatedImage(this.orientation_); |
844 }; | 842 }; |
OLD | NEW |