// Copyright 2015 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.

[
    ActiveScriptWrappable,
    DependentLifetime,
    Constructor(DOMString type, optional BeforeInstallPromptEventInit eventInitDict),
    ConstructorCallWith=ExecutionContext
] interface BeforeInstallPromptEvent : Event {
    readonly attribute FrozenArray<DOMString> platforms;
    [CallWith=ScriptState] readonly attribute Promise<AppBannerPromptResult> userChoice;
    [CallWith=ScriptState] Promise<void> prompt();
};
