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

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

Issue 265773010: Add initial support for [Exposed=xx] extended IDL attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comments Created 6 years, 7 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
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl ('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 /* 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 17 matching lines...) Expand all
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 [ 32 [
33 ActiveDOMObject, 33 ActiveDOMObject,
34 Constructor(DOMString url), 34 Constructor(DOMString url),
35 Constructor(DOMString url, sequence<DOMString> protocols), 35 Constructor(DOMString url, sequence<DOMString> protocols),
36 Constructor(DOMString url, DOMString protocol), 36 Constructor(DOMString url, DOMString protocol),
37 ConstructorCallWith=ExecutionContext, 37 ConstructorCallWith=ExecutionContext,
38 GlobalContext=Window&WorkerGlobalScope, 38 Exposed=Window&Worker,
39 RaisesException=Constructor, 39 RaisesException=Constructor,
40 WillBeGarbageCollected, 40 WillBeGarbageCollected,
41 ] interface WebSocket : EventTarget { 41 ] interface WebSocket : EventTarget {
42 [MeasureAs=WebSocketURL] readonly attribute DOMString URL; // Lowercased .ur l is the one in the spec, but leaving .URL for compatibility reasons. 42 [MeasureAs=WebSocketURL] readonly attribute DOMString URL; // Lowercased .ur l is the one in the spec, but leaving .URL for compatibility reasons.
43 readonly attribute DOMString url; 43 readonly attribute DOMString url;
44 44
45 // ready state 45 // ready state
46 const unsigned short CONNECTING = 0; 46 const unsigned short CONNECTING = 0;
47 const unsigned short OPEN = 1; 47 const unsigned short OPEN = 1;
48 const unsigned short CLOSING = 2; 48 const unsigned short CLOSING = 2;
(...skipping 13 matching lines...) Expand all
62 62
63 attribute DOMString binaryType; 63 attribute DOMString binaryType;
64 64
65 [RaisesException] void send(ArrayBuffer data); 65 [RaisesException] void send(ArrayBuffer data);
66 [RaisesException] void send(ArrayBufferView data); 66 [RaisesException] void send(ArrayBufferView data);
67 [RaisesException] void send(Blob data); 67 [RaisesException] void send(Blob data);
68 [RaisesException] void send(DOMString data); 68 [RaisesException] void send(DOMString data);
69 69
70 [RaisesException] void close([Clamp] optional unsigned short code, optional DOMString reason); 70 [RaisesException] void close([Clamp] optional unsigned short code, optional DOMString reason);
71 }; 71 };
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698