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

Unified Diff: modules/presentation/Presentation.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/NavigatorPresentation.idl ('k') | modules/presentation/PresentationAvailability.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/presentation/Presentation.idl
diff --git a/modules/presentation/Presentation.idl b/modules/presentation/Presentation.idl
index 1546a1dbd34d8fcd9b995e269d37a37cae91205f..2ec7725fde5ed4f6ae21fb6faeac3b57c4c42357 100644
--- a/modules/presentation/Presentation.idl
+++ b/modules/presentation/Presentation.idl
@@ -2,11 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// http://webscreens.github.io/presentation-api/#presentation-interface
+// https://w3c.github.io/presentation-api/#interface-presentation
[
GarbageCollected,
RuntimeEnabled=Presentation
] interface Presentation : EventTarget {
- attribute EventHandler onavailablechange;
+ // This API used by controlling browsing context.
+ [CallWith=ScriptState] Promise<PresentationSession> startSession(DOMString url);
+ // TODO(avayvod): The |presentationId| argument should not be optional.
+ [CallWith=ScriptState] Promise<PresentationSession> joinSession(DOMString url, [Default=Undefined] optional DOMString presentationId);
+ [CallWith=ScriptState] Promise<PresentationAvailability> getAvailability(DOMString url);
+ attribute EventHandler ondefaultsessionstart;
+
+ // This API used by presenting browsing context.
+ // TODO(avayvod): The spec has |getSession()| and |getSessions()| instead.
+ readonly attribute PresentationSession? session;
+ // TODO(avayvod): attribute EventHandler onsessionavailable;
};
« no previous file with comments | « modules/presentation/NavigatorPresentation.idl ('k') | modules/presentation/PresentationAvailability.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698