| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // DO NOT EDIT | 5 // DO NOT EDIT |
| 6 // Auto-generated Dart DOM implementation. | 6 // Auto-generated Dart DOM implementation. |
| 7 | 7 |
| 8 function DOM$EnsureDartNull(value) { | 8 function DOM$EnsureDartNull(value) { |
| 9 return value === null ? (void 0) : value; | 9 return value === null ? (void 0) : value; |
| 10 } | 10 } |
| (...skipping 7160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7171 } | 7171 } |
| 7172 if ((_ = w.XSLTProcessor)) { | 7172 if ((_ = w.XSLTProcessor)) { |
| 7173 w.XSLTProcessor$Dart = _; | 7173 w.XSLTProcessor$Dart = _; |
| 7174 DOM$fixClass$XSLTProcessor(_); | 7174 DOM$fixClass$XSLTProcessor(_); |
| 7175 } | 7175 } |
| 7176 | 7176 |
| 7177 if (tmpLocation) { | 7177 if (tmpLocation) { |
| 7178 w.Location = tmpLocation; | 7178 w.Location = tmpLocation; |
| 7179 } | 7179 } |
| 7180 | 7180 |
| 7181 // TODO(vsm): Refactor additional implementation code to a separate file. | |
| 7182 w.DOMWindow.prototype.createXMLHttpRequest = function() { | |
| 7183 return new XMLHttpRequest(); | |
| 7184 }; | |
| 7185 | |
| 7186 w.DOMWindow.prototype.createWebKitCSSMatrix = function(opt_value) { | |
| 7187 if (typeof opt_value === "undefined") | |
| 7188 return new WebKitCSSMatrix(); | |
| 7189 else | |
| 7190 return new WebKitCSSMatrix(opt_value); | |
| 7191 }; | |
| 7192 | |
| 7193 w.DOMWindow.prototype.createWebKitPoint = function(x, y) { | |
| 7194 return new WebKitPoint(x, y); | |
| 7195 }; | |
| 7196 | |
| 7197 w.DOMWindow.prototype.createFileReader = function() { | |
| 7198 return new FileReader(); | |
| 7199 }; | |
| 7200 | |
| 7201 // TODO(vsm): These will eventually be changed to attributes | |
| 7202 // with a getter and setter (see b/4341558). | |
| 7203 w.CanvasRenderingContext2D.prototype.setFillStyle = function(value) { | |
| 7204 this.fillStyle = value; | |
| 7205 }; | |
| 7206 | |
| 7207 w.CanvasRenderingContext2D.prototype.setStrokeStyle = function(value) { | |
| 7208 this.strokeStyle = value; | |
| 7209 }; | |
| 7210 | |
| 7211 // Chrome still uses initWebKitWheelEvent. | 7181 // Chrome still uses initWebKitWheelEvent. |
| 7212 if (w && w.WheelEvent && w.WheelEvent.prototype && | 7182 if (w && w.WheelEvent && w.WheelEvent.prototype && |
| 7213 !w.WheelEvent.prototype.initWheelEvent) { | 7183 !w.WheelEvent.prototype.initWheelEvent) { |
| 7214 w.WheelEvent.prototype.initWheelEvent = function() { | 7184 w.WheelEvent.prototype.initWheelEvent = function() { |
| 7215 return this.initWebKitWheelEvent.apply(this, arguments); | 7185 return this.initWebKitWheelEvent.apply(this, arguments); |
| 7216 }; | 7186 }; |
| 7217 } | 7187 } |
| 7218 | 7188 |
| 7219 | 7189 |
| 7220 // Special implementations that fix the prototypes in a new context on the | 7190 // Special implementations that fix the prototypes in a new context on the |
| (...skipping 25 matching lines...) Expand all Loading... |
| 7246 function native__NativeDomGlobalProperties_getWindow() { | 7216 function native__NativeDomGlobalProperties_getWindow() { |
| 7247 // TODO: Should the window be obtained from an isolate? | 7217 // TODO: Should the window be obtained from an isolate? |
| 7248 return window; | 7218 return window; |
| 7249 } | 7219 } |
| 7250 | 7220 |
| 7251 // Declared in src/GlobalProperties.dart | 7221 // Declared in src/GlobalProperties.dart |
| 7252 function native__NativeDomGlobalProperties_getDocument() { | 7222 function native__NativeDomGlobalProperties_getDocument() { |
| 7253 // TODO: Should the window be obtained from an isolate? | 7223 // TODO: Should the window be obtained from an isolate? |
| 7254 return window.document; | 7224 return window.document; |
| 7255 } | 7225 } |
| OLD | NEW |