blob: 83cd1b884b20ec8fe43b0ba3c574d10607151ca1 [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();
};