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

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

Issue 16374007: First rev of Safe DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing up recent test additions. Created 7 years, 4 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 /// The Dart HTML library. 9 /// The Dart HTML library.
10 /// 10 ///
(...skipping 24 matching lines...) Expand all
35 $!GENERATED_DART_FILES 35 $!GENERATED_DART_FILES
36 36
37 part '$AUXILIARY_DIR/AttributeMap.dart'; 37 part '$AUXILIARY_DIR/AttributeMap.dart';
38 part '$AUXILIARY_DIR/CanvasImageSource.dart'; 38 part '$AUXILIARY_DIR/CanvasImageSource.dart';
39 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; 39 part '$AUXILIARY_DIR/CrossFrameTypes.dart';
40 part '$AUXILIARY_DIR/CssClassSet.dart'; 40 part '$AUXILIARY_DIR/CssClassSet.dart';
41 part '$AUXILIARY_DIR/CssRectangle.dart'; 41 part '$AUXILIARY_DIR/CssRectangle.dart';
42 part '$AUXILIARY_DIR/Dimension.dart'; 42 part '$AUXILIARY_DIR/Dimension.dart';
43 part '$AUXILIARY_DIR/EventListener.dart'; 43 part '$AUXILIARY_DIR/EventListener.dart';
44 part '$AUXILIARY_DIR/EventStreamProvider.dart'; 44 part '$AUXILIARY_DIR/EventStreamProvider.dart';
45 part '$AUXILIARY_DIR/Html5NodeValidator.dart';
45 part '$AUXILIARY_DIR/ImmutableListMixin.dart'; 46 part '$AUXILIARY_DIR/ImmutableListMixin.dart';
46 part '$AUXILIARY_DIR/KeyboardEventStream.dart'; 47 part '$AUXILIARY_DIR/Isolates.dart';
47 part '$AUXILIARY_DIR/KeyCode.dart'; 48 part '$AUXILIARY_DIR/KeyCode.dart';
48 part '$AUXILIARY_DIR/KeyLocation.dart'; 49 part '$AUXILIARY_DIR/KeyLocation.dart';
49 part '$AUXILIARY_DIR/KeyName.dart'; 50 part '$AUXILIARY_DIR/KeyName.dart';
51 part '$AUXILIARY_DIR/KeyboardEventStream.dart';
52 part '$AUXILIARY_DIR/Microtask.dart';
53 part '$AUXILIARY_DIR/NodeValidatorBuilder.dart';
50 part '$AUXILIARY_DIR/Point.dart'; 54 part '$AUXILIARY_DIR/Point.dart';
51 part '$AUXILIARY_DIR/ReadyState.dart'; 55 part '$AUXILIARY_DIR/ReadyState.dart';
52 part '$AUXILIARY_DIR/Rectangle.dart'; 56 part '$AUXILIARY_DIR/Rectangle.dart';
53 part '$AUXILIARY_DIR/_HttpRequestUtils.dart';
54 part '$AUXILIARY_DIR/Isolates.dart';
55 part '$AUXILIARY_DIR/Microtask.dart';
56 part '$AUXILIARY_DIR/Serialization.dart'; 57 part '$AUXILIARY_DIR/Serialization.dart';
57 part '$AUXILIARY_DIR/WrappedEvent.dart'; 58 part '$AUXILIARY_DIR/WrappedEvent.dart';
58 part '$AUXILIARY_DIR/WrappedList.dart'; 59 part '$AUXILIARY_DIR/WrappedList.dart';
60 part '$AUXILIARY_DIR/_HttpRequestUtils.dart';
61 part '$AUXILIARY_DIR/_ListIterators.dart';
59 part '$AUXILIARY_DIR/dart2js_Conversions.dart'; 62 part '$AUXILIARY_DIR/dart2js_Conversions.dart';
60 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart'; 63 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart';
61 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart'; 64 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart';
62 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart'; 65 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart';
63 part '$AUXILIARY_DIR/dart2js_Platform.dart'; 66 part '$AUXILIARY_DIR/dart2js_Platform.dart';
64 part '$AUXILIARY_DIR/_ListIterators.dart'; 67 part '$AUXILIARY_DIR/Validators.dart';
65 68
66 69
67 /** 70 /**
68 * Top-level container for a web page, which is usually a browser tab or window. 71 * Top-level container for a web page, which is usually a browser tab or window.
69 * 72 *
70 * Each web page loaded in the browser has its own [Window], which is a 73 * Each web page loaded in the browser has its own [Window], which is a
71 * container for the web page. 74 * container for the web page.
72 * 75 *
73 * If the web page has any `<iframe>` elements, then each `<iframe>` has its own 76 * If the web page has any `<iframe>` elements, then each `<iframe>` has its own
74 * [Window] object, which is accessible only to that `<iframe>`. 77 * [Window] object, which is accessible only to that `<iframe>`.
(...skipping 26 matching lines...) Expand all
101 return JS('int', r'window.$dart$isolate$counter++'); 104 return JS('int', r'window.$dart$isolate$counter++');
102 } 105 }
103 106
104 // Fast path to invoke JS send port. 107 // Fast path to invoke JS send port.
105 _callPortSync(int id, message) { 108 _callPortSync(int id, message) {
106 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 109 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
107 } 110 }
108 111
109 Future<SendPort> spawnDomFunction(Function f) => 112 Future<SendPort> spawnDomFunction(Function f) =>
110 new Future.value(IsolateNatives.spawnDomFunction(f)); 113 new Future.value(IsolateNatives.spawnDomFunction(f));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698