Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/#navigatorpresentation | 5 // https://w3c.github.io/presentation-api/#navigatorpresentation |
| 6 | 6 |
| 7 // TODO(philipj): This interface is named NavigatorPresentation in the spec: | |
| 8 // https://github.com/w3c/presentation-api/issues/137 | |
| 7 [ | 9 [ |
| 8 GarbageCollected, | 10 GarbageCollected, |
| 9 RuntimeEnabled=Presentation | 11 RuntimeEnabled=Presentation |
| 10 ] interface Presentation : EventTarget { | 12 ] interface Presentation : EventTarget { |
| 11 readonly attribute PresentationSession? session; | 13 // This API used by controlling browsing context. |
| 12 | 14 // TODO(philipj): The |presentationId| argument is not in the spec. |
|
whywhat
2015/07/07 13:00:07
https://codereview.chromium.org/1209423005/
philipj_slow
2015/07/07 13:18:31
Did you paste the wrong link?
whywhat
2015/07/07 13:53:58
Yes, I meant: https://codereview.chromium.org/1208
philipj_slow
2015/07/07 14:31:02
I see. There will be conflicts here anyway so I'll
| |
| 13 [CallWith=ScriptState] Promise<PresentationSession> startSession(DOMString p resentationUrl, [Default=Undefined] optional DOMString presentationId); | 15 [CallWith=ScriptState] Promise<PresentationSession> startSession(DOMString u rl, [Default=Undefined] optional DOMString presentationId); |
| 14 [CallWith=ScriptState] Promise<PresentationSession> joinSession(DOMString pr esentationUrl, [Default=Undefined] optional DOMString presentationId); | 16 // TODO(philipj): The |presentationId| argument should not be optional. |
| 15 | 17 [CallWith=ScriptState] Promise<PresentationSession> joinSession(DOMString ur l, [Default=Undefined] optional DOMString presentationId); |
| 18 // TODO(philipj): The |url| argument is ultimately unused. | |
|
whywhat
2015/07/07 13:00:07
This was only landed yesterday: https://codereview
philipj_slow
2015/07/07 13:18:31
Do you think that the URL argument will actually b
philipj_slow
2015/07/07 14:31:02
I'll revert this TODO, it's not actionable until t
| |
| 19 [CallWith=ScriptState] Promise<PresentationAvailability> getAvailability(DOM String url); | |
| 16 attribute EventHandler ondefaultsessionstart; | 20 attribute EventHandler ondefaultsessionstart; |
| 17 | 21 |
| 18 [CallWith=ScriptState] Promise<PresentationAvailability> getAvailability(DOM String presentationUrl); | 22 // This API used by presenting browsing context. |
| 23 // TODO(philipj): The spec has |getSession()| |getSessions()| instead. | |
| 24 readonly attribute PresentationSession? session; | |
| 25 // TODO(philipj): attribute EventHandler onsessionavailable; | |
| 19 }; | 26 }; |
| OLD | NEW |