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

Side by Side Diff: client/dom/src/_FactoryProviders.dart

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
« no previous file with comments | « client/dom/scripts/template_wrapping_dom.js ('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) 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 5
6 // These factory methods could all live in one factory provider class but dartc 6 // These factory methods could all live in one factory provider class but dartc
7 // has a bug (5399939) preventing that. 7 // has a bug (5399939) preventing that.
8 8
9 class _AudioContextFactoryProvider { 9 class _AudioContextFactoryProvider {
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 static WebKitCSSMatrix create(spec) native; 74 static WebKitCSSMatrix create(spec) native;
75 } 75 }
76 76
77 class _WebKitPointFactoryProvider { 77 class _WebKitPointFactoryProvider {
78 78
79 factory WebKitPoint(num x, num y) { return create(x, y); } 79 factory WebKitPoint(num x, num y) { return create(x, y); }
80 80
81 static WebKitPoint create(x, y) native; 81 static WebKitPoint create(x, y) native;
82 } 82 }
83 83
84 class _WebSocketFactoryProvider {
85
86 factory WebSocket(String url) { return create(url); }
87
88 static WebKitPoint create(url) native;
89 }
90
84 class _XMLHttpRequestFactoryProvider { 91 class _XMLHttpRequestFactoryProvider {
85 92
86 factory XMLHttpRequest() { return create(); } 93 factory XMLHttpRequest() { return create(); }
87 94
88 static XMLHttpRequest create() native; 95 static XMLHttpRequest create() native;
89 } 96 }
OLDNEW
« no previous file with comments | « client/dom/scripts/template_wrapping_dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698