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

Side by Side Diff: third_party/WebKit/Source/modules/websockets/WebSocket.idl

Issue 2572603002: ABANDONED CL: Rename readyState() to getReadyState(). (Closed)
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010, 2011 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2010, 2011 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ImplementedAs=DOMWebSocket, 42 ImplementedAs=DOMWebSocket,
43 RaisesException=Constructor, 43 RaisesException=Constructor,
44 ] interface WebSocket : EventTarget { 44 ] interface WebSocket : EventTarget {
45 readonly attribute DOMString url; 45 readonly attribute DOMString url;
46 46
47 // ready state 47 // ready state
48 const unsigned short CONNECTING = 0; 48 const unsigned short CONNECTING = 0;
49 const unsigned short OPEN = 1; 49 const unsigned short OPEN = 1;
50 const unsigned short CLOSING = 2; 50 const unsigned short CLOSING = 2;
51 const unsigned short CLOSED = 3; 51 const unsigned short CLOSED = 3;
52 readonly attribute unsigned short readyState; 52 [ImplementedAs=getReadyState] readonly attribute unsigned short readyState;
53 readonly attribute unsigned long bufferedAmount; 53 readonly attribute unsigned long bufferedAmount;
54 54
55 // networking 55 // networking
56 attribute EventHandler onopen; 56 attribute EventHandler onopen;
57 attribute EventHandler onerror; 57 attribute EventHandler onerror;
58 attribute EventHandler onclose; 58 attribute EventHandler onclose;
59 readonly attribute DOMString extensions; 59 readonly attribute DOMString extensions;
60 readonly attribute DOMString protocol; 60 readonly attribute DOMString protocol;
61 [RaisesException] void close([Clamp] optional unsigned short code, optional USVString reason); 61 [RaisesException] void close([Clamp] optional unsigned short code, optional USVString reason);
62 62
63 // messaging 63 // messaging
64 attribute EventHandler onmessage; 64 attribute EventHandler onmessage;
65 attribute BinaryType binaryType; 65 attribute BinaryType binaryType;
66 [RaisesException] void send(USVString data); 66 [RaisesException] void send(USVString data);
67 [RaisesException] void send(Blob data); 67 [RaisesException] void send(Blob data);
68 [RaisesException] void send(ArrayBuffer data); 68 [RaisesException] void send(ArrayBuffer data);
69 [RaisesException] void send(ArrayBufferView data); 69 [RaisesException] void send(ArrayBufferView data);
70 }; 70 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698