summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/presentation/PresentationConnectionCloseEvent.idl
blob: 88f004bbb3ba226bfb63df4ae4c0da006eb7a9be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2016 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.

// http://w3c.github.io/presentation-api/#interface-presentationconnectioncloseevent

enum PresentationConnectionCloseReason { "error", "closed", "wentaway" };

[
    Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
    RuntimeEnabled=Presentation
] interface PresentationConnectionCloseEvent : Event {
    readonly attribute PresentationConnectionCloseReason reason;
    readonly attribute DOMString message;
};