| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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:html library. | 6 // Auto-generated dart:html library. |
| 7 | 7 |
| 8 #library('dart:html'); | 8 #library('dart:html'); |
| 9 | 9 |
| 10 #import('dart:isolate'); | 10 #import('dart:isolate'); |
| 11 #import('dart:json'); | 11 #import('dart:json'); |
| 12 | 12 |
| 13 $!GENERATED_DART_FILES | 13 $!GENERATED_DART_FILES |
| 14 | 14 |
| 15 #source('../../dom/src/EventListener.dart'); | 15 #source('../../dom/src/EventListener.dart'); |
| 16 #source('../../dom/src/KeyLocation.dart'); | 16 #source('../../dom/src/KeyLocation.dart'); |
| 17 #source('../../dom/src/KeyName.dart'); | 17 #source('../../dom/src/KeyName.dart'); |
| 18 #source('../../dom/src/ReadyState.dart'); | 18 #source('../../dom/src/ReadyState.dart'); |
| 19 #source('../../dom/src/Timer.dart'); | 19 #source('../../dom/src/Timer.dart'); |
| 20 #source('../../dom/src/_Collections.dart'); | 20 #source('../../dom/src/_Collections.dart'); |
| 21 #source('../../dom/src/_HttpRequestUtils.dart'); | 21 #source('../../dom/src/_HttpRequestUtils.dart'); |
| 22 #source('../../html/src/Isolates.dart'); | 22 #source('../../html/src/Isolates.dart'); |
| 23 #source('../../html/src/Measurement.dart'); | 23 #source('../../html/src/Measurement.dart'); |
| 24 #source('../../html/src/Serialization.dart'); | 24 #source('../../html/src/Serialization.dart'); |
| 25 #source('../../html/src/shared_FactoryProviders.dart'); | 25 #source('../../html/src/shared_FactoryProviders.dart'); |
| 26 #source('../../html/src/dart2js_Conversions.dart'); | |
| 27 #source('../../html/src/dart2js_DOMImplementation.dart'); | 26 #source('../../html/src/dart2js_DOMImplementation.dart'); |
| 28 #source('../../html/src/dart2js_FactoryProviders.dart'); | 27 #source('../../html/src/dart2js_FactoryProviders.dart'); |
| 29 #source('../../html/src/dart2js_IDBKeyRangeFactoryProvider.dart'); | 28 #source('../../html/src/dart2js_IDBKeyRangeFactoryProvider.dart'); |
| 30 #source('../../html/src/dart2js_LocationWrapper.dart'); | 29 #source('../../html/src/dart2js_LocationWrapper.dart'); |
| 31 #source('../../dom/src/dart2js_TypedArrayFactoryProvider.dart'); | 30 #source('../../dom/src/dart2js_TypedArrayFactoryProvider.dart'); |
| 32 #source('../../html/src/_Testing.dart'); | 31 #source('../../html/src/_Testing.dart'); |
| 33 #source('../../html/src/Device.dart'); | 32 #source('../../html/src/Device.dart'); |
| 34 #source('../../dom/src/_ListIterators.dart'); | 33 #source('../../dom/src/_ListIterators.dart'); |
| 35 #source('../../dom/src/_Lists.dart'); | 34 #source('../../dom/src/_Lists.dart'); |
| 36 | 35 |
| 37 | 36 |
| 38 Window get window() native "return window;"; | 37 Window get window() native "return window;"; |
| 39 _WindowImpl get _window() native "return window;"; | 38 _WindowImpl get _window() native "return window;"; |
| 40 | 39 |
| 41 Document get document() native "return document;"; | 40 Document get document() native "return document;"; |
| 42 | 41 |
| 43 _DocumentImpl get _document() native "return document;"; | 42 _DocumentImpl get _document() native "return document;"; |
| 44 | 43 |
| 45 Element query(String selector) => _document.query(selector); | 44 Element query(String selector) => _document.query(selector); |
| 46 ElementList queryAll(String selector) => _document.queryAll(selector); | 45 ElementList queryAll(String selector) => _document.queryAll(selector); |
| 47 | 46 |
| 48 /// Marker for defaulted arguments. | |
| 49 class _Default { | |
| 50 const _Default(); | |
| 51 } | |
| 52 | |
| 53 final _default = const _Default(); | |
| 54 | |
| 55 // Workaround for tags like <cite> that lack their own Element subclass -- | 47 // Workaround for tags like <cite> that lack their own Element subclass -- |
| 56 // Dart issue 1990. | 48 // Dart issue 1990. |
| 57 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { | 49 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { |
| 58 } | 50 } |
| 59 | 51 |
| 60 // Support for Send/ReceivePortSync. | 52 // Support for Send/ReceivePortSync. |
| 61 int _getNewIsolateId() native @''' | 53 int _getNewIsolateId() native @''' |
| 62 if (!window.$dart$isolate$counter) { | 54 if (!window.$dart$isolate$counter) { |
| 63 window.$dart$isolate$counter = 1; | 55 window.$dart$isolate$counter = 1; |
| 64 } | 56 } |
| 65 return window.$dart$isolate$counter++; | 57 return window.$dart$isolate$counter++; |
| 66 '''; | 58 '''; |
| 67 | 59 |
| 68 // Fast path to invoke JS send port. | 60 // Fast path to invoke JS send port. |
| 69 _callPortSync(int id, message) { | 61 _callPortSync(int id, message) { |
| 70 return JS('var', @'ReceivePortSync.dispatchCall(#, #)', id, message); | 62 return JS('var', @'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 71 } | 63 } |
| 72 | 64 |
| 73 // TODO(vsm): Plumb this properly. | 65 // TODO(vsm): Plumb this properly. |
| 74 spawnDomFunction(f) => spawnFunction(f); | 66 spawnDomFunction(f) => spawnFunction(f); |
| OLD | NEW |