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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/dom/scripts/template_interface_WebSocket.darttemplate ('k') | client/dom/src/_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/template_wrapping_dom.js
diff --git a/client/dom/scripts/template_wrapping_dom.js b/client/dom/scripts/template_wrapping_dom.js
index e375a5b2559a105dc5a38eec4d1ee1e0166b97a3..e9b0ddca8383c0982893a305c2cc8d3b042c2c6e 100644
--- a/client/dom/scripts/template_wrapping_dom.js
+++ b/client/dom/scripts/template_wrapping_dom.js
@@ -130,7 +130,6 @@ function native__TypedArrayFactoryProvider__U32(arg) {
}
}
-
function native__WebKitCSSMatrixFactoryProvider_create(spec) {
try {
return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap.
@@ -147,6 +146,14 @@ function native__WebKitPointFactoryProvider_create(x, y) {
}
}
+function native__WebSocketFactoryProvider_create(url) {
+ try {
+ return __dom_wrap(new WebSocket(url)); // string doesn't need unwrap.
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__XMLHttpRequestFactoryProvider_create() {
try {
return __dom_wrap(new XMLHttpRequest());
« 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