You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Moved all JSON functions to the TCEFJson class
- Added TCEFJson.SaveToFile and TCEFJson.LoadFromFile functions - Added more code comments to DOMVisitor - Replaced all the code to save the browser preferences in TChromiumCore with the new TCEFJson functions
This commit is contained in:
@ -156,7 +156,7 @@ implementation
|
||||
uses
|
||||
{$IFDEF DELPHI22_UP}System.Hash,{$ENDIF}
|
||||
{$IFDEF FPC}DCPSha256,{$ENDIF}
|
||||
uCEFMiscFunctions;
|
||||
uCEFMiscFunctions, uCEFJson;
|
||||
|
||||
constructor TCEFOAuth2Helper.Create;
|
||||
begin
|
||||
@ -391,7 +391,7 @@ begin
|
||||
try
|
||||
if (length(aResponse) > 0) then
|
||||
begin
|
||||
TempRoot := CefParseJson(aResponse, JSON_PARSER_RFC);
|
||||
TempRoot := TCEFJson.Parse(aResponse);
|
||||
|
||||
if (TempRoot <> nil) and (TempRoot.GetType = VTYPE_DICTIONARY) then
|
||||
begin
|
||||
@ -432,7 +432,7 @@ begin
|
||||
try
|
||||
if (length(aResponse) > 0) then
|
||||
begin
|
||||
TempRoot := CefParseJson(aResponse, JSON_PARSER_RFC);
|
||||
TempRoot := TCEFJson.Parse(aResponse);
|
||||
|
||||
if (TempRoot <> nil) and (TempRoot.GetType = VTYPE_DICTIONARY) then
|
||||
begin
|
||||
|
Reference in New Issue
Block a user