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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.idl

Issue 2574303002: Fix low risk non-nullable => nullable attributes / arguments to match the spec (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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://w3c.github.io/presentation-api/#interface-presentationconnection 5 // https://w3c.github.io/presentation-api/#interface-presentationconnection
6 6
7 enum PresentationConnectionState { 7 enum PresentationConnectionState {
8 "connected", 8 "connected",
9 "closed", 9 "closed",
10 "terminated" 10 "terminated"
11 }; 11 };
12 12
13 [ 13 [
14 RuntimeEnabled=Presentation 14 RuntimeEnabled=Presentation
15 ] interface PresentationConnection : EventTarget { 15 ] interface PresentationConnection : EventTarget {
16 readonly attribute DOMString? id; 16 readonly attribute DOMString id;
foolip 2016/12/14 19:17:12 Can PresentationConnection::m_id ever be a null WT
lunalu1 2016/12/15 11:33:59 Will ask mlamouri@ to confirm that.
17 readonly attribute PresentationConnectionState state; 17 readonly attribute PresentationConnectionState state;
18 [MeasureAs=PresentationConnectionClose] void close(); 18 [MeasureAs=PresentationConnectionClose] void close();
19 [MeasureAs=PresentationConnectionTerminate] void terminate(); 19 [MeasureAs=PresentationConnectionTerminate] void terminate();
20 attribute EventHandler onconnect; 20 attribute EventHandler onconnect;
21 attribute EventHandler onclose; 21 attribute EventHandler onclose;
22 attribute EventHandler onterminate; 22 attribute EventHandler onterminate;
23 23
24 // Communication 24 // Communication
25 attribute BinaryType binaryType; 25 attribute BinaryType binaryType;
26 attribute EventHandler onmessage; 26 attribute EventHandler onmessage;
27 [RaisesException, MeasureAs=PresentationConnectionSend] void send(DOMString message); 27 [RaisesException, MeasureAs=PresentationConnectionSend] void send(DOMString message);
28 [RaisesException, MeasureAs=PresentationConnectionSend] void send(Blob data) ; 28 [RaisesException, MeasureAs=PresentationConnectionSend] void send(Blob data) ;
29 [RaisesException, MeasureAs=PresentationConnectionSend] void send(ArrayBuffe r data); 29 [RaisesException, MeasureAs=PresentationConnectionSend] void send(ArrayBuffe r data);
30 [RaisesException, MeasureAs=PresentationConnectionSend] void send(ArrayBuffe rView data); 30 [RaisesException, MeasureAs=PresentationConnectionSend] void send(ArrayBuffe rView data);
31 }; 31 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698