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

Side by Side Diff: sdk/lib/html/templates/html/dart2js/html_dart2js.darttemplate

Issue 11642035: Renaming Window to WindowBase and LocalWindow to Window. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 5 // DO NOT EDIT
6 // Auto-generated dart:html library. 6 // Auto-generated dart:html library.
7 7
8 library html; 8 library html;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 27 matching lines...) Expand all
38 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart'; 38 part '$AUXILIARY_DIR/dart2js_DOMImplementation.dart';
39 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart'; 39 part '$AUXILIARY_DIR/dart2js_KeyEvent.dart';
40 part '$AUXILIARY_DIR/dart2js_FactoryProviders.dart'; 40 part '$AUXILIARY_DIR/dart2js_FactoryProviders.dart';
41 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart'; 41 part '$AUXILIARY_DIR/dart2js_LocationWrapper.dart';
42 part '$AUXILIARY_DIR/dart2js_MutationObserverSupported.dart'; 42 part '$AUXILIARY_DIR/dart2js_MutationObserverSupported.dart';
43 part '$AUXILIARY_DIR/dart2js_TypedArrayFactoryProvider.dart'; 43 part '$AUXILIARY_DIR/dart2js_TypedArrayFactoryProvider.dart';
44 part '$AUXILIARY_DIR/_Testing.dart'; 44 part '$AUXILIARY_DIR/_Testing.dart';
45 part '$AUXILIARY_DIR/_ListIterators.dart'; 45 part '$AUXILIARY_DIR/_ListIterators.dart';
46 46
47 47
48 LocalWindow get window => JS('LocalWindow', 'window'); 48 Window get window => JS('Window', 'window');
49 49
50 HtmlDocument get document => JS('Document', 'document'); 50 HtmlDocument get document => JS('Document', 'document');
51 51
52 Element query(String selector) => document.query(selector); 52 Element query(String selector) => document.query(selector);
53 List<Element> queryAll(String selector) => document.queryAll(selector); 53 List<Element> queryAll(String selector) => document.queryAll(selector);
54 54
55 // Workaround for tags like <cite> that lack their own Element subclass -- 55 // Workaround for tags like <cite> that lack their own Element subclass --
56 // Dart issue 1990. 56 // Dart issue 1990.
57 class _HTMLElement extends Element native "*HTMLElement" { 57 class _HTMLElement extends Element native "*HTMLElement" {
58 } 58 }
59 59
60 // Support for Send/ReceivePortSync. 60 // Support for Send/ReceivePortSync.
61 int _getNewIsolateId() { 61 int _getNewIsolateId() {
62 if (JS('bool', r'!window.$dart$isolate$counter')) { 62 if (JS('bool', r'!window.$dart$isolate$counter')) {
63 JS('void', r'window.$dart$isolate$counter = 1'); 63 JS('void', r'window.$dart$isolate$counter = 1');
64 } 64 }
65 return JS('int', r'window.$dart$isolate$counter++'); 65 return JS('int', r'window.$dart$isolate$counter++');
66 } 66 }
67 67
68 // Fast path to invoke JS send port. 68 // Fast path to invoke JS send port.
69 _callPortSync(int id, message) { 69 _callPortSync(int id, message) {
70 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); 70 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message);
71 } 71 }
72 72
73 // TODO(vsm): Plumb this properly. 73 // TODO(vsm): Plumb this properly.
74 spawnDomFunction(f) => spawnFunction(f); 74 spawnDomFunction(f) => spawnFunction(f);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698