blob: c89e56cae4243618f6e632d9f640e0830e04b514 [file] [log] [blame]
// 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.
// https://w3c.github.io/presentation-api/#interface-presentationconnectioncloseevent
enum PresentationConnectionCloseReason { "error", "closed", "wentaway" };
[
Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
RuntimeEnabled=Presentation,
SecureContext,
Exposed=Window
] interface PresentationConnectionCloseEvent : Event {
readonly attribute PresentationConnectionCloseReason reason;
readonly attribute DOMString message;
};