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

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

Issue 26089002: Call .created constructor on dart2js custom elements (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
« no previous file with comments | « tools/dom/src/dart2js_CustomElementSupport.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 import 'dart:svg' as svg; 45 import 'dart:svg' as svg;
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 import 'dart:_interceptors' show 53 import 'dart:_interceptors' show
54 Interceptor, JSExtendableArray, findInterceptorConstructorForType, 54 Interceptor, JSExtendableArray, findInterceptorConstructorForType,
55 getNativeInterceptor; 55 findConstructorForWebComponentType, getNativeInterceptor;
56 import 'dart:_isolate_helper' show IsolateNatives; 56 import 'dart:_isolate_helper' show IsolateNatives;
57 import 'dart:_foreign_helper' show JS; 57 import 'dart:_foreign_helper' show JS;
58 58
59 export 'dart:math' show Rectangle, Point; 59 export 'dart:math' show Rectangle, Point;
60 60
61 $!GENERATED_DART_FILES 61 $!GENERATED_DART_FILES
62 62
63 part '$AUXILIARY_DIR/AttributeMap.dart'; 63 part '$AUXILIARY_DIR/AttributeMap.dart';
64 part '$AUXILIARY_DIR/CanvasImageSource.dart'; 64 part '$AUXILIARY_DIR/CanvasImageSource.dart';
65 part '$AUXILIARY_DIR/CrossFrameTypes.dart'; 65 part '$AUXILIARY_DIR/CrossFrameTypes.dart';
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 if (JS('bool', r'!window.$dart$isolate$counter')) { 138 if (JS('bool', r'!window.$dart$isolate$counter')) {
139 JS('void', r'window.$dart$isolate$counter = 1'); 139 JS('void', r'window.$dart$isolate$counter = 1');
140 } 140 }
141 return JS('int', r'window.$dart$isolate$counter++'); 141 return JS('int', r'window.$dart$isolate$counter++');
142 } 142 }
143 143
144 // Fast path to invoke JS send port. 144 // Fast path to invoke JS send port.
145 _callPortSync(int id, message) { 145 _callPortSync(int id, message) {
146 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 146 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
147 } 147 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_CustomElementSupport.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698