blob: 2111f2e3863db94a669025dc70fe91a484f6771e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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,
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();
};
|