You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Update to CEF 3.3282.1731.gfc9a4fa
- Chromium 64.0.3282.119 which should include partial MP3 support. - Fixed stability issues when you closed the browser due to circular interface references. - Fixed TCefRTTIExtension thanks to Pier. - Added the JSRTTIExtension demo to test TCefRTTIExtension. - Added the TCustomResponseFilter class to filter the resource contents. - Added the ResponseFilterBrowser demo to test the new TCustomResponseFilter class.
This commit is contained in:
@@ -718,10 +718,16 @@ begin
|
||||
end;
|
||||
|
||||
class procedure TCefRTTIExtension.Register(const name: string; const value: TValue; SyncMainThread: Boolean);
|
||||
var
|
||||
TempCode : ustring;
|
||||
TempHandler : ICefv8Handler;
|
||||
begin
|
||||
CefRegisterExtension(name,
|
||||
format('__defineSetter__(''%s'', function(v){native function $s();$s(v)});__defineGetter__(''%0:s'', function(){native function $g();return $g()});', [name]),
|
||||
TCefRTTIExtension.Create(value, SyncMainThread) as ICefv8Handler);
|
||||
TempHandler := TCefRTTIExtension.Create(value, SyncMainThread);
|
||||
TempCode := format('this.__defineSetter__(''%s'', function(v){native function $s();$s(v)});' +
|
||||
'this.__defineGetter__(''%0:s'', function(){native function $g();return $g()});',
|
||||
[name]);
|
||||
|
||||
CefRegisterExtension(name, TempCode, TempHandler);
|
||||
end;
|
||||
|
||||
{$IFDEF CPUX64}
|
||||
|
||||
Reference in New Issue
Block a user