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

Side by Side Diff: lib/dom/templates/html/frog/html_frog.darttemplate

Issue 10800104: Convert DOM and HTML frog to dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // DO NOT EDIT
6 // Auto-generated dart:html library.
7
8 #library('html');
9
10 #import('dart:isolate');
11 #import('dart:json');
12
13 $!GENERATED_DART_FILES
14
15 #source('../../dom/src/EventListener.dart');
16 #source('../../dom/src/KeyLocation.dart');
17 #source('../../dom/src/KeyName.dart');
18 #source('../../dom/src/ReadyState.dart');
19 #source('../../dom/src/Timer.dart');
20 #source('../../dom/src/_Collections.dart');
21 #source('../../dom/src/_XMLHttpRequestUtils.dart');
22 #source('../../html/src/IDBOpenDBRequest.dart');
23 #source('../../html/src/Isolates.dart');
24 #source('../../html/src/Measurement.dart');
25 #source('../../html/src/shared_FactoryProviders.dart');
26 #source('../../html/src/frog_DOMImplementation.dart');
27 #source('../../html/src/frog_FactoryProviders.dart');
28 #source('../../html/src/frog_IDBKeyRangeFactoryProvider.dart');
29 #source('../../html/src/frog_IDBOpenDBRequestImplementation.dart');
30 #source('../../html/src/frog_LocationWrapper.dart');
31 #source('../../dom/src/frog_TypedArrayFactoryProvider.dart');
32 #source('../../html/src/_Testing.dart');
33 #source('../../html/src/Device.dart');
34 #source('../../dom/src/_ListIterators.dart');
35 #source('../../dom/src/_Lists.dart');
36 #source('../../isolate/serialization.dart');
37
38
39 Window get window() native "return window;";
40 _WindowImpl get _window() native "return window;";
41
42 Document get document() native "return document;";
43
44 _DocumentImpl get _document() native "return document;";
45
46 Element query(String selector) => _document.query(selector);
47 ElementList queryAll(String selector) => _document.queryAll(selector);
48
49 // Workaround for tags like <cite> that lack their own Element subclass --
50 // Dart issue 1990.
51 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
52 }
53
54 // Support for Send/ReceivePortSync.
55 int _getNewIsolateId() native @'''
56 if (!window.$dart$isolate$counter) {
57 window.$dart$isolate$counter = 1;
58 }
59 return window.$dart$isolate$counter++;
60 ''';
61
62 // Fast path to invoke JS send port.
63 _callPortSync(int id, message) {
64 return JS('var', @'ReceivePortSync.dispatchCall(#, #)', id, message);
65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698