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 base.require('base.range'); | 7 base.require('base.range'); |
8 base.require('ui.event_target'); | 8 base.require('ui.event_target'); |
9 | 9 |
10 base.exportTo('ccfv', function() { | 10 base.exportTo('ccfv', function() { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 desired_device_line_width) { | 124 desired_device_line_width) { |
125 return desired_device_line_width / this.worldPixelsPerDevicePixel_; | 125 return desired_device_line_width / this.worldPixelsPerDevicePixel_; |
126 }, | 126 }, |
127 | 127 |
128 applyTransformToContext: function(ctx) { | 128 applyTransformToContext: function(ctx) { |
129 var transform = this.transformWorldToDevicePixels_; | 129 var transform = this.transformWorldToDevicePixels_; |
130 ctx.transform(transform[0], transform[1], transform[2], | 130 ctx.transform(transform[0], transform[1], transform[2], |
131 transform[3], transform[4], transform[5]); | 131 transform[3], transform[4], transform[5]); |
132 }, | 132 }, |
133 | 133 |
| 134 forceRedrawAll: function() { |
| 135 this.didChange_(); |
| 136 }, |
| 137 |
134 didChange_: function() { | 138 didChange_: function() { |
135 base.dispatchSimpleEvent(this, 'change', false, false); | 139 base.dispatchSimpleEvent(this, 'change', false, false); |
136 } | 140 } |
137 }; | 141 }; |
138 | 142 |
139 return { | 143 return { |
140 QuadViewViewport: QuadViewViewport, | 144 QuadViewViewport: QuadViewViewport, |
141 } | 145 } |
142 }); | 146 }); |
143 | 147 |
OLD | NEW |