blob: 987a4cedb3724ff5057d145f8b3651fa85d02129 [file] [log] [blame]
// 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();
};