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

Side by Side Diff: client/dom/generated/src/wrapping/_WebSocketWrappingImplementation.dart

Issue 9663027: Remove generated directories with 100s of files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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) 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 class _WebSocketWrappingImplementation extends DOMWrapperBase implements WebSock et {
8 _WebSocketWrappingImplementation() : super() {}
9
10 static create__WebSocketWrappingImplementation() native {
11 return new _WebSocketWrappingImplementation();
12 }
13
14 String get URL() { return _get_URL(this); }
15 static String _get_URL(var _this) native;
16
17 String get binaryType() { return _get_binaryType(this); }
18 static String _get_binaryType(var _this) native;
19
20 void set binaryType(String value) { _set_binaryType(this, value); }
21 static void _set_binaryType(var _this, String value) native;
22
23 int get bufferedAmount() { return _get_bufferedAmount(this); }
24 static int _get_bufferedAmount(var _this) native;
25
26 String get extensions() { return _get_extensions(this); }
27 static String _get_extensions(var _this) native;
28
29 String get protocol() { return _get_protocol(this); }
30 static String _get_protocol(var _this) native;
31
32 int get readyState() { return _get_readyState(this); }
33 static int _get_readyState(var _this) native;
34
35 String get url() { return _get_url(this); }
36 static String _get_url(var _this) native;
37
38 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
39 if (useCapture === null) {
40 _addEventListener_WebSocket(this, type, listener);
41 return;
42 } else {
43 _addEventListener_WebSocket_2(this, type, listener, useCapture);
44 return;
45 }
46 }
47 static void _addEventListener_WebSocket(receiver, type, listener) native;
48 static void _addEventListener_WebSocket_2(receiver, type, listener, useCapture ) native;
49
50 void close([int code = null, String reason = null]) {
51 if (code === null) {
52 if (reason === null) {
53 _close(this);
54 return;
55 }
56 } else {
57 if (reason === null) {
58 _close_2(this, code);
59 return;
60 } else {
61 _close_3(this, code, reason);
62 return;
63 }
64 }
65 throw "Incorrect number or type of arguments";
66 }
67 static void _close(receiver) native;
68 static void _close_2(receiver, code) native;
69 static void _close_3(receiver, code, reason) native;
70
71 bool dispatchEvent(Event evt) {
72 return _dispatchEvent_WebSocket(this, evt);
73 }
74 static bool _dispatchEvent_WebSocket(receiver, evt) native;
75
76 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
77 if (useCapture === null) {
78 _removeEventListener_WebSocket(this, type, listener);
79 return;
80 } else {
81 _removeEventListener_WebSocket_2(this, type, listener, useCapture);
82 return;
83 }
84 }
85 static void _removeEventListener_WebSocket(receiver, type, listener) native;
86 static void _removeEventListener_WebSocket_2(receiver, type, listener, useCapt ure) native;
87
88 bool send(String data) {
89 return _send(this, data);
90 }
91 static bool _send(receiver, data) native;
92
93 String get typeName() { return "WebSocket"; }
94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698