| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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-presentation | 5 // https://w3c.github.io/presentation-api/#idl-def-presentationreceiver |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 RuntimeEnabled=PresentationReceiver | 8 RuntimeEnabled=PresentationReceiver |
| 9 ] interface PresentationReceiver : EventTarget { | 9 ] interface PresentationReceiver { |
| 10 [CallWith=ScriptState] Promise<PresentationConnection> getConnection(); | 10 [SameObject, CallWith=ScriptState] readonly attribute Promise<PresentationCo
nnectionList> connectionList; |
| 11 [CallWith=ScriptState] Promise<sequence<PresentationConnection>> getConnecti
ons(); | |
| 12 | |
| 13 attribute EventHandler onconnectionavailable; | |
| 14 }; | 11 }; |
| OLD | NEW |