blob: d1d475d47a4767843bc10e8a6583030fb5583928 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// 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.
#ifndef AppBannerPromptResult_h
#define AppBannerPromptResult_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "public/platform/modules/app_banner/WebAppBannerPromptResult.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
namespace blink {
class ScriptPromiseResolver;
class AppBannerPromptResult final : public GarbageCollectedFinalized<AppBannerPromptResult>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
WTF_MAKE_NONCOPYABLE(AppBannerPromptResult);
public:
static AppBannerPromptResult* create(const AtomicString& platform, WebAppBannerPromptResult::Outcome outcome)
{
return new AppBannerPromptResult(platform, outcome);
}
virtual ~AppBannerPromptResult();
String platform() const { return m_platform; }
String outcome() const;
DEFINE_INLINE_VIRTUAL_TRACE() { }
private:
AppBannerPromptResult(const AtomicString& platform, WebAppBannerPromptResult::Outcome);
String m_platform;
WebAppBannerPromptResult::Outcome m_outcome;
};
} // namespace blink
#endif // AppBannerPromptResult_h
|