forked from academiadocodigo/TBGWebCharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Browser.Chromium.Resources.pas
57 lines (44 loc) · 1.3 KB
/
Browser.Chromium.Resources.pas
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
47
48
49
50
51
52
53
54
55
56
57
unit Browser.Chromium.Resources;
interface
uses
Interfaces,
Generics.Collections;
type
TChromiumResources = class (TInterfacedObject, iModelChromiumResources)
private
FChromiumResourcesPages : iModelChromiumResourcesPages;
FChromiumResourcesJSCallback : iModelChromiumResourcesJSCallback;
public
constructor Create;
destructor Destroy; override;
class function New : iModelChromiumResources;
function Pages : iModelChromiumResourcesPages;
function JSCallback : iModelChromiumResourcesJSCallback;
end;
implementation
uses
Browser.Chromium.Resources.Pages,
Browser.Chromium.Resources.JSCallback;
{ TChromiumResources }
constructor TChromiumResources.Create;
begin
FChromiumResourcesPages := TChromiumResourcesPages.New;
FChromiumResourcesJSCallback := TChromiumResourcesJSCallBack.New;
end;
destructor TChromiumResources.Destroy;
begin
inherited;
end;
function TChromiumResources.JSCallback: iModelChromiumResourcesJSCallback;
begin
Result := FChromiumResourcesJSCallback;
end;
class function TChromiumResources.New: iModelChromiumResources;
begin
Result := Self.Create;
end;
function TChromiumResources.Pages: iModelChromiumResourcesPages;
begin
Result := FChromiumResourcesPages;
end;
end.