Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: tools/dom/templates/html/dart2js/html_dart2js.darttemplate

Issue 27232003: Revert "Making all callbacks use zones" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 - unless you are editing documentation as per: 5 // DO NOT EDIT - unless you are editing documentation as per:
6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
7 // Auto-generated dart:html library. 7 // Auto-generated dart:html library.
8 8
9 /** 9 /**
10 * HTML elements and other resources for web-based applications that need to 10 * HTML elements and other resources for web-based applications that need to
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 import 'dart:web_audio' as web_audio; 46 import 'dart:web_audio' as web_audio;
47 import 'dart:web_gl' as gl; 47 import 'dart:web_gl' as gl;
48 import 'dart:web_sql'; 48 import 'dart:web_sql';
49 import 'dart:_js_helper' show 49 import 'dart:_js_helper' show
50 convertDartClosureToJS, Creates, JavaScriptIndexingBehavior, 50 convertDartClosureToJS, Creates, JavaScriptIndexingBehavior,
51 JSName, Null, Returns, 51 JSName, Null, Returns,
52 findDispatchTagForInterceptorClass, setNativeSubclassDispatchRecord, 52 findDispatchTagForInterceptorClass, setNativeSubclassDispatchRecord,
53 makeLeafDispatchRecord; 53 makeLeafDispatchRecord;
54 import 'dart:_interceptors' show 54 import 'dart:_interceptors' show
55 Interceptor, JSExtendableArray, findInterceptorConstructorForType, 55 Interceptor, JSExtendableArray, findInterceptorConstructorForType,
56 findConstructorForWebComponentType, getNativeInterceptor, 56 findConstructorForWebComponentType, getNativeInterceptor,
57 setDispatchProperty, findInterceptorForType; 57 setDispatchProperty, findInterceptorForType;
58 import 'dart:_isolate_helper' show IsolateNatives; 58 import 'dart:_isolate_helper' show IsolateNatives;
59 import 'dart:_foreign_helper' show JS; 59 import 'dart:_foreign_helper' show JS;
60 60
61 export 'dart:math' show Rectangle, Point; 61 export 'dart:math' show Rectangle, Point;
62 62
63 $!GENERATED_DART_FILES 63 $!GENERATED_DART_FILES
64 64
65 part '$AUXILIARY_DIR/AttributeMap.dart'; 65 part '$AUXILIARY_DIR/AttributeMap.dart';
66 part '$AUXILIARY_DIR/CanvasImageSource.dart'; 66 part '$AUXILIARY_DIR/CanvasImageSource.dart';
(...skipping 17 matching lines...) Expand all
84 part '$AUXILIARY_DIR/WrappedEvent.dart'; 84 part '$AUXILIARY_DIR/WrappedEvent.dart';
85 part '$AUXILIARY_DIR/WrappedList.dart'; 85 part '$AUXILIARY_DIR/WrappedList.dart';
86 part '$AUXILIARY_DIR/_HttpRequestUtils.dart'; 86 part '$AUXILIARY_DIR/_HttpRequestUtils.dart';
87 part '$AUXILIARY_DIR/_ListIterators.dart'; 87 part '$AUXILIARY_DIR/_ListIterators.dart';
88 part '$AUXILIARY_DIR/dart2js_Conversions.dart'; 88 part '$AUXILIARY_DIR/dart2js_Conversions.dart';
89 part '$AUXILIARY_DIR/dart2js_CustomElementSupport.dart'; 89 part '$AUXILIARY_DIR/dart2js_CustomElementSupport.dart';
90 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart'; 90 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart';
91 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart'; 91 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart';
92 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart'; 92 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart';
93 part '$AUXILIARY_DIR/dart2js_Platform.dart'; 93 part '$AUXILIARY_DIR/dart2js_Platform.dart';
94 part '$AUXILIARY_DIR/shared_html.dart';
95 part '$AUXILIARY_DIR/Validators.dart'; 94 part '$AUXILIARY_DIR/Validators.dart';
96 95
97 96
98 /** 97 /**
99 * Top-level container for a web page, which is usually a browser tab or window. 98 * Top-level container for a web page, which is usually a browser tab or window.
100 * 99 *
101 * Each web page loaded in the browser has its own [Window], which is a 100 * Each web page loaded in the browser has its own [Window], which is a
102 * container for the web page. 101 * container for the web page.
103 * 102 *
104 * If the web page has any `<iframe>` elements, then each `<iframe>` has its own 103 * If the web page has any `<iframe>` elements, then each `<iframe>` has its own
105 * [Window] object, which is accessible only to that `<iframe>`. 104 * [Window] object, which is accessible only to that `<iframe>`.
106 * 105 *
107 * See also: 106 * See also:
108 * 107 *
109 * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MD N. 108 * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MD N.
110 */ 109 */
111 Window get window => JS('Window', 'window'); 110 Window get window => JS('Window', 'window');
112 111
113 /** 112 /**
114 * Root node for all content in a web page. 113 * Root node for all content in a web page.
115 */ 114 */
116 HtmlDocument get document => JS('HtmlDocument', 'document'); 115 HtmlDocument get document => JS('HtmlDocument', 'document');
117 116
117 Element query(String selector) => document.query(selector);
118 ElementList queryAll(String selector) => document.queryAll(selector);
119
118 // Workaround for tags like <cite> that lack their own Element subclass -- 120 // Workaround for tags like <cite> that lack their own Element subclass --
119 // Dart issue 1990. 121 // Dart issue 1990.
120 class HtmlElement extends Element native "HTMLElement" { 122 class HtmlElement extends Element native "HTMLElement" {
121 factory HtmlElement() { throw new UnsupportedError("Not supported"); } 123 factory HtmlElement() { throw new UnsupportedError("Not supported"); }
122 124
123 /** 125 /**
124 * Constructor instantiated by the DOM when a custom element has been created. 126 * Constructor instantiated by the DOM when a custom element has been created.
125 * 127 *
126 * This can only be called by subclasses from their created constructor. 128 * This can only be called by subclasses from their created constructor.
127 */ 129 */
(...skipping 10 matching lines...) Expand all
138 if (JS('bool', r'!window.$dart$isolate$counter')) { 140 if (JS('bool', r'!window.$dart$isolate$counter')) {
139 JS('void', r'window.$dart$isolate$counter = 1'); 141 JS('void', r'window.$dart$isolate$counter = 1');
140 } 142 }
141 return JS('int', r'window.$dart$isolate$counter++'); 143 return JS('int', r'window.$dart$isolate$counter++');
142 } 144 }
143 145
144 // Fast path to invoke JS send port. 146 // Fast path to invoke JS send port.
145 _callPortSync(int id, message) { 147 _callPortSync(int id, message) {
146 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 148 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
147 } 149 }
OLDNEW
« no previous file with comments | « tools/dom/src/shared_html.dart ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698