chromium/third_party/blink/renderer/modules/presentation/presentation_connection_close_event.idl

// Copyright 2016 The Chromium Authors
// 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-presentationconnectioncloseevent

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

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