OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Viewport class controls the way the image is displayed (scale, offset etc). | 8 * Viewport class controls the way the image is displayed (scale, offset etc). |
9 * @constructor | 9 * @constructor |
10 */ | 10 */ |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 }; | 421 }; |
422 | 422 |
423 /** | 423 /** |
424 * Repaint all clients. | 424 * Repaint all clients. |
425 */ | 425 */ |
426 Viewport.prototype.repaint = function() { | 426 Viewport.prototype.repaint = function() { |
427 this.update(); | 427 this.update(); |
428 for (var i = 0; i != this.repaintCallbacks_.length; i++) | 428 for (var i = 0; i != this.repaintCallbacks_.length; i++) |
429 this.repaintCallbacks_[i](); | 429 this.repaintCallbacks_[i](); |
430 }; | 430 }; |
OLD | NEW |