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

Unified Diff: modules/presentation/PresentationConnection.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: modules/presentation/PresentationConnection.idl
diff --git a/modules/presentation/PresentationConnection.idl b/modules/presentation/PresentationConnection.idl
new file mode 100644
index 0000000000000000000000000000000000000000..0210567727c98b333c7344dd3eafdfe692a22b7e
--- /dev/null
+++ b/modules/presentation/PresentationConnection.idl
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://w3c.github.io/presentation-api/#interface-presentationconnection
+
+enum PresentationConnectionState {
+ "connected",
+ "closed",
+ "terminated"
+};
+
+[
+ GarbageCollected,
+ RuntimeEnabled=Presentation
+] interface PresentationConnection : EventTarget {
+ readonly attribute DOMString? id;
+ readonly attribute PresentationConnectionState state;
+ [MeasureAs=PresentationConnectionClose] void close();
+ [MeasureAs=PresentationConnectionTerminate] void terminate();
+ [DeprecateAs=PresentationConnectionStateChangeEventListener] attribute EventHandler onstatechange;
+ attribute EventHandler onconnect;
+ attribute EventHandler onclose;
+ attribute EventHandler onterminate;
+
+ // Communication
+ attribute BinaryType binaryType;
+ attribute EventHandler onmessage;
+ [RaisesException, MeasureAs=PresentationConnectionSend] void send(DOMString message);
+ [RaisesException, MeasureAs=PresentationConnectionSend] void send(Blob data);
+ [RaisesException, MeasureAs=PresentationConnectionSend] void send(ArrayBuffer data);
+ [RaisesException, MeasureAs=PresentationConnectionSend] void send(ArrayBufferView data);
+};
« no previous file with comments | « modules/presentation/PresentationAvailability.idl ('k') | modules/presentation/PresentationConnectionAvailableEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698