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

Side by Side Diff: lib/html/doc/interface/WebSocket.dartdoc

Issue 10544064: Add dummy dart:html library for documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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) 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING:
6 // This file contains documentation that is merged into the real source.
7 // Do not make code changes here.
8
9 /// @domName WebSocket
10 interface WebSocket extends EventTarget default _WebSocketFactoryProvider {
11
12 WebSocket(String url);
13
14 /**
15 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
16 */
17 WebSocketEvents get on();
18
19 static final int CLOSED = 3;
20
21 static final int CLOSING = 2;
22
23 static final int CONNECTING = 0;
24
25 static final int OPEN = 1;
26
27 /** @domName WebSocket.URL */
28 final String URL;
29
30 /** @domName WebSocket.binaryType */
31 String binaryType;
32
33 /** @domName WebSocket.bufferedAmount */
34 final int bufferedAmount;
35
36 /** @domName WebSocket.extensions */
37 final String extensions;
38
39 /** @domName WebSocket.protocol */
40 final String protocol;
41
42 /** @domName WebSocket.readyState */
43 final int readyState;
44
45 /** @domName WebSocket.url */
46 final String url;
47
48 /** @domName WebSocket.addEventListener */
49 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]);
50
51 /** @domName WebSocket.close */
52 void close([int code, String reason]);
53
54 /** @domName WebSocket.dispatchEvent */
55 bool $dom_dispatchEvent(Event evt);
56
57 /** @domName WebSocket.removeEventListener */
58 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]);
59
60 /** @domName WebSocket.send */
61 bool send(String data);
62 }
63
64 interface WebSocketEvents extends Events {
65
66 EventListenerList get close();
67
68 EventListenerList get error();
69
70 EventListenerList get message();
71
72 EventListenerList get open();
73 }
OLDNEW
« no previous file with comments | « lib/html/doc/interface/WebKitNamedFlow.dartdoc ('k') | lib/html/doc/interface/WheelEvent.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698