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

Side by Side Diff: client/dom/scripts/template_wrapping_dom.js

Issue 8879037: Added WebSocket support for dartc and frog (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 DOM implementation. 6 // Auto-generated Dart DOM implementation.
7 7
8 $!CODE 8 $!CODE
9 9
10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation) { 10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 function native__TypedArrayFactoryProvider__U32(arg) { 125 function native__TypedArrayFactoryProvider__U32(arg) {
126 try { 126 try {
127 return __dom_wrap(new Uint32Array(__dom_unwrap(arg))); 127 return __dom_wrap(new Uint32Array(__dom_unwrap(arg)));
128 } catch (e) { 128 } catch (e) {
129 throw __dom_wrap_exception(e); 129 throw __dom_wrap_exception(e);
130 } 130 }
131 } 131 }
132 132
133
134 function native__WebKitCSSMatrixFactoryProvider_create(spec) { 133 function native__WebKitCSSMatrixFactoryProvider_create(spec) {
135 try { 134 try {
136 return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap . 135 return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap .
137 } catch (e) { 136 } catch (e) {
138 throw __dom_wrap_exception(e); 137 throw __dom_wrap_exception(e);
139 } 138 }
140 } 139 }
141 140
142 function native__WebKitPointFactoryProvider_create(x, y) { 141 function native__WebKitPointFactoryProvider_create(x, y) {
143 try { 142 try {
144 return __dom_wrap(new WebKitPoint(x, y)); // nums don't need unwrap. 143 return __dom_wrap(new WebKitPoint(x, y)); // nums don't need unwrap.
145 } catch (e) { 144 } catch (e) {
146 throw __dom_wrap_exception(e); 145 throw __dom_wrap_exception(e);
147 } 146 }
148 } 147 }
149 148
149 function native__WebSocketFactoryProvider_create(url) {
150 try {
151 return __dom_wrap(new WebSocket(url)); // string doesn't need unwrap.
152 } catch (e) {
153 throw __dom_wrap_exception(e);
154 }
155 }
156
150 function native__XMLHttpRequestFactoryProvider_create() { 157 function native__XMLHttpRequestFactoryProvider_create() {
151 try { 158 try {
152 return __dom_wrap(new XMLHttpRequest()); 159 return __dom_wrap(new XMLHttpRequest());
153 } catch (e) { 160 } catch (e) {
154 throw __dom_wrap_exception(e); 161 throw __dom_wrap_exception(e);
155 } 162 }
156 } 163 }
157 164
158 165
159 var __dom_type_map = { 166 var __dom_type_map = {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 function native__NativeDomGlobalProperties_getWindow() { 333 function native__NativeDomGlobalProperties_getWindow() {
327 // TODO: Should the window be obtained from an isolate? 334 // TODO: Should the window be obtained from an isolate?
328 return __dom_wrap(window); 335 return __dom_wrap(window);
329 } 336 }
330 337
331 // Declared in src/GlobalProperties.dart 338 // Declared in src/GlobalProperties.dart
332 function native__NativeDomGlobalProperties_getDocument() { 339 function native__NativeDomGlobalProperties_getDocument() {
333 // TODO: Should the window be obtained from an isolate? 340 // TODO: Should the window be obtained from an isolate?
334 return __dom_wrap(window.document); 341 return __dom_wrap(window.document);
335 } 342 }
OLDNEW
« no previous file with comments | « client/dom/scripts/template_interface_WebSocket.darttemplate ('k') | client/dom/src/_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698