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 4075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4086 c.prototype.messagePort$getter = function() { return DOM$EnsureDartNull(this
.messagePort); }; | 4086 c.prototype.messagePort$getter = function() { return DOM$EnsureDartNull(this
.messagePort); }; |
4087 c.prototype.origin$getter = function() { return DOM$EnsureDartNull(this.orig
in); }; | 4087 c.prototype.origin$getter = function() { return DOM$EnsureDartNull(this.orig
in); }; |
4088 c.prototype.source$getter = function() { return DOM$EnsureDartNull(this.sour
ce); }; | 4088 c.prototype.source$getter = function() { return DOM$EnsureDartNull(this.sour
ce); }; |
4089 } | 4089 } |
4090 DOM$fixMembers(c, ['initMessageEvent']); | 4090 DOM$fixMembers(c, ['initMessageEvent']); |
4091 c.$implements$MessageEvent$Dart = 1; | 4091 c.$implements$MessageEvent$Dart = 1; |
4092 c.$implements$Event$Dart = 1; | 4092 c.$implements$Event$Dart = 1; |
4093 } | 4093 } |
4094 function DOM$fixClass$MessagePort(c) { | 4094 function DOM$fixClass$MessagePort(c) { |
4095 if (c.prototype) { | 4095 if (c.prototype) { |
| 4096 c.prototype.onmessage$getter = function() { return DOM$EnsureDartNull(this.o
nmessage); }; |
| 4097 c.prototype.onmessage$setter = function(value) { this.onmessage = value; }; |
4096 } | 4098 } |
| 4099 DOM$fixMembers(c, [ |
| 4100 'addEventListener', |
| 4101 'close', |
| 4102 'dispatchEvent', |
| 4103 'postMessage', |
| 4104 'removeEventListener', |
| 4105 'start', |
| 4106 'webkitPostMessage']); |
4097 c.$implements$MessagePort$Dart = 1; | 4107 c.$implements$MessagePort$Dart = 1; |
4098 c.$implements$EventTarget$Dart = 1; | 4108 c.$implements$EventTarget$Dart = 1; |
4099 } | 4109 } |
4100 function DOM$fixClass$Metadata(c) { | 4110 function DOM$fixClass$Metadata(c) { |
4101 if (c.prototype) { | 4111 if (c.prototype) { |
4102 c.prototype.modificationTime$getter = function() { return DOM$EnsureDartNull
(this.modificationTime); }; | 4112 c.prototype.modificationTime$getter = function() { return DOM$EnsureDartNull
(this.modificationTime); }; |
4103 } | 4113 } |
4104 c.$implements$Metadata$Dart = 1; | 4114 c.$implements$Metadata$Dart = 1; |
4105 } | 4115 } |
4106 function DOM$fixClass$MetadataCallback(c) { | 4116 function DOM$fixClass$MetadataCallback(c) { |
(...skipping 3026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7133 function native__NativeDomGlobalProperties_getWindow() { | 7143 function native__NativeDomGlobalProperties_getWindow() { |
7134 // TODO: Should the window be obtained from an isolate? | 7144 // TODO: Should the window be obtained from an isolate? |
7135 return window; | 7145 return window; |
7136 } | 7146 } |
7137 | 7147 |
7138 // Declared in src/GlobalProperties.dart | 7148 // Declared in src/GlobalProperties.dart |
7139 function native__NativeDomGlobalProperties_getDocument() { | 7149 function native__NativeDomGlobalProperties_getDocument() { |
7140 // TODO: Should the window be obtained from an isolate? | 7150 // TODO: Should the window be obtained from an isolate? |
7141 return window.document; | 7151 return window.document; |
7142 } | 7152 } |
OLD | NEW |