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 /** | 8 /** |
9 * HTML elements and other resources for web-based applications that need to | 9 * HTML elements and other resources for web-based applications that need to |
10 * interact with the browser and the DOM (Document Object Model). | 10 * interact with the browser and the DOM (Document Object Model). |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 part '$AUXILIARY_DIR/AttributeMap.dart'; | 59 part '$AUXILIARY_DIR/AttributeMap.dart'; |
60 part '$AUXILIARY_DIR/CanvasImageSource.dart'; | 60 part '$AUXILIARY_DIR/CanvasImageSource.dart'; |
61 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; | 61 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; |
62 part '$AUXILIARY_DIR/CssClassSet.dart'; | 62 part '$AUXILIARY_DIR/CssClassSet.dart'; |
63 part '$AUXILIARY_DIR/CssRectangle.dart'; | 63 part '$AUXILIARY_DIR/CssRectangle.dart'; |
64 part '$AUXILIARY_DIR/Dimension.dart'; | 64 part '$AUXILIARY_DIR/Dimension.dart'; |
65 part '$AUXILIARY_DIR/EventListener.dart'; | 65 part '$AUXILIARY_DIR/EventListener.dart'; |
66 part '$AUXILIARY_DIR/EventStreamProvider.dart'; | 66 part '$AUXILIARY_DIR/EventStreamProvider.dart'; |
67 part '$AUXILIARY_DIR/Html5NodeValidator.dart'; | 67 part '$AUXILIARY_DIR/Html5NodeValidator.dart'; |
68 part '$AUXILIARY_DIR/ImmutableListMixin.dart'; | 68 part '$AUXILIARY_DIR/ImmutableListMixin.dart'; |
69 part '$AUXILIARY_DIR/Isolates.dart'; | |
70 part '$AUXILIARY_DIR/KeyCode.dart'; | 69 part '$AUXILIARY_DIR/KeyCode.dart'; |
71 part '$AUXILIARY_DIR/KeyLocation.dart'; | 70 part '$AUXILIARY_DIR/KeyLocation.dart'; |
72 part '$AUXILIARY_DIR/KeyName.dart'; | 71 part '$AUXILIARY_DIR/KeyName.dart'; |
73 part '$AUXILIARY_DIR/KeyboardEventStream.dart'; | 72 part '$AUXILIARY_DIR/KeyboardEventStream.dart'; |
74 part '$AUXILIARY_DIR/NodeValidatorBuilder.dart'; | 73 part '$AUXILIARY_DIR/NodeValidatorBuilder.dart'; |
75 part '$AUXILIARY_DIR/ReadyState.dart'; | 74 part '$AUXILIARY_DIR/ReadyState.dart'; |
76 part '$AUXILIARY_DIR/Serialization.dart'; | |
77 part '$AUXILIARY_DIR/Validators.dart'; | 75 part '$AUXILIARY_DIR/Validators.dart'; |
78 part '$AUXILIARY_DIR/WrappedList.dart'; | 76 part '$AUXILIARY_DIR/WrappedList.dart'; |
79 part '$AUXILIARY_DIR/_HttpRequestUtils.dart'; | 77 part '$AUXILIARY_DIR/_HttpRequestUtils.dart'; |
80 part '$AUXILIARY_DIR/_ListIterators.dart'; | 78 part '$AUXILIARY_DIR/_ListIterators.dart'; |
81 part '$AUXILIARY_DIR/dartium_KeyEvent.dart'; | 79 part '$AUXILIARY_DIR/dartium_KeyEvent.dart'; |
82 part '$AUXILIARY_DIR/dartium_Platform.dart'; | 80 part '$AUXILIARY_DIR/dartium_Platform.dart'; |
83 part '$AUXILIARY_DIR/shared_html.dart'; | 81 part '$AUXILIARY_DIR/shared_html.dart'; |
84 | 82 |
85 part '$AUXILIARY_DIR/native_DOMImplementation.dart'; | 83 part '$AUXILIARY_DIR/native_DOMImplementation.dart'; |
86 | 84 |
(...skipping 25 matching lines...) Expand all Loading... |
112 /** | 110 /** |
113 * Root node for all content in a web page. | 111 * Root node for all content in a web page. |
114 */ | 112 */ |
115 HtmlDocument get document { | 113 HtmlDocument get document { |
116 if (_document != null) { | 114 if (_document != null) { |
117 return _document; | 115 return _document; |
118 } | 116 } |
119 _document = window.document; | 117 _document = window.document; |
120 return _document; | 118 return _document; |
121 } | 119 } |
122 | |
123 int _getNewIsolateId() => _Utils._getNewIsolateId(); | |
124 | |
125 bool _callPortInitialized = false; | |
126 var _callPortLastResult = null; | |
127 | |
128 _callPortSync(num id, var message) { | |
129 if (!_callPortInitialized) { | |
130 window.on['js-result'].listen((event) { | |
131 _callPortLastResult = JSON.decode(_getPortSyncEventData(event)); | |
132 }); | |
133 _callPortInitialized = true; | |
134 } | |
135 assert(_callPortLastResult == null); | |
136 _dispatchEvent('js-sync-message', {'id': id, 'message': message}); | |
137 var result = _callPortLastResult; | |
138 _callPortLastResult = null; | |
139 return result; | |
140 } | |
OLD | NEW |