/
EnginePopupInfo.cs
46 lines (39 loc) · 1.03 KB
/
EnginePopupInfo.cs
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
44
45
46
// UnityWebBrowser (UWB)
// Copyright (c) 2021-2022 Voltstro-Studios
//
// This project is under the MIT license. See the LICENSE.md file for more details.
using System;
namespace VoltstroStudios.UnityWebBrowser.Shared.Popups;
/// <summary>
/// Base controls for a popup
/// </summary>
public abstract class EnginePopupInfo : IDisposable
{
/// <summary>
/// Creates a new <see cref="EnginePopupInfo"/>
/// </summary>
protected EnginePopupInfo()
{
PopupGuid = Guid.NewGuid();
}
/// <summary>
/// Creates a new <see cref="EnginePopupInfo"/>
/// </summary>
internal EnginePopupInfo(Guid guid)
{
PopupGuid = guid;
}
/// <summary>
/// Unique <see cref="Guid"/> related to this popup
/// </summary>
public readonly Guid PopupGuid;
/// <summary>
/// Execute JS in this popup
/// </summary>
/// <param name="js"></param>
public abstract void ExecuteJs(string js);
/// <inheritdoc />
public virtual void Dispose()
{
}
}