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

Unified Diff: modules/presentation/PresentationSession.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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
« no previous file with comments | « modules/presentation/PresentationAvailability.idl ('k') | modules/push_messaging/NavigatorPushManager.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/presentation/PresentationSession.idl
diff --git a/modules/presentation/PresentationSession.idl b/modules/presentation/PresentationSession.idl
new file mode 100644
index 0000000000000000000000000000000000000000..493f8ca4ed858ba2222e846e41c141ed8d924a4d
--- /dev/null
+++ b/modules/presentation/PresentationSession.idl
@@ -0,0 +1,28 @@
+// 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-presentationsession
+
+enum PresentationSessionState {
+ "connected",
+ "disconnected"
+};
+
+[
+ GarbageCollected,
+ RuntimeEnabled=Presentation
+] interface PresentationSession : EventTarget {
+ readonly attribute DOMString? id;
+ readonly attribute PresentationSessionState state;
+ void close();
+ attribute EventHandler onstatechange;
+
+ // Communication
+ attribute BinaryType binaryType;
+ attribute EventHandler onmessage;
+ [RaisesException] void send(DOMString message);
+ [RaisesException] void send(Blob data);
+ [RaisesException] void send(ArrayBuffer data);
+ [RaisesException] void send(ArrayBufferView data);
+};
« no previous file with comments | « modules/presentation/PresentationAvailability.idl ('k') | modules/push_messaging/NavigatorPushManager.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698