mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-15 07:45:56 +01:00
Update to CEF 121.3.2
This commit is contained in:
parent
f614c4b6a4
commit
a000f59f97
14
README.md
14
README.md
@ -3,15 +3,15 @@ CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chro
|
||||
|
||||
CEF4Delphi is based on DCEF3 and fpCEF3. The original license of those projects still applies to CEF4Delphi. Read the license terms in the LICENSE.md file.
|
||||
|
||||
CEF4Delphi uses CEF 120.2.7 which includes Chromium 120.0.6099.234.
|
||||
CEF4Delphi uses CEF 121.2.14 which includes Chromium 121.0.6167.75.
|
||||
|
||||
The CEF binaries used by CEF4Delphi are available for download at Spotify :
|
||||
* [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_120.2.7%2Bg4bc6a59%2Bchromium-120.0.6099.234_windows32.tar.bz2)
|
||||
* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_120.2.7%2Bg4bc6a59%2Bchromium-120.0.6099.234_windows64.tar.bz2)
|
||||
* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_120.2.7%2Bg4bc6a59%2Bchromium-120.0.6099.234_linux64.tar.bz2)
|
||||
* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_120.2.7%2Bg4bc6a59%2Bchromium-120.0.6099.234_linuxarm.tar.bz2)
|
||||
* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_120.2.7%2Bg4bc6a59%2Bchromium-120.0.6099.234_linuxarm64.tar.bz2)
|
||||
* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_120.2.7%2Bg4bc6a59%2Bchromium-120.0.6099.234_macosx64.tar.bz2)
|
||||
* [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_121.2.14%2Bga44b59f%2Bchromium-121.0.6167.75_windows32.tar.bz2)
|
||||
* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_121.2.14%2Bga44b59f%2Bchromium-121.0.6167.75_windows64.tar.bz2)
|
||||
* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_121.2.14%2Bga44b59f%2Bchromium-121.0.6167.75_linux64.tar.bz2)
|
||||
* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_121.2.14%2Bga44b59f%2Bchromium-121.0.6167.75_linuxarm.tar.bz2)
|
||||
* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_121.2.14%2Bga44b59f%2Bchromium-121.0.6167.75_linuxarm64.tar.bz2)
|
||||
* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_121.2.14%2Bga44b59f%2Bchromium-121.0.6167.75_macosx64.tar.bz2)
|
||||
|
||||
CEF4Delphi was developed and tested on Delphi 12.0 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 11 and Lazarus 3.0/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.
|
||||
|
||||
|
Binary file not shown.
@ -21,7 +21,7 @@
|
||||
</CompilerOptions>
|
||||
<Description Value="CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC."/>
|
||||
<License Value="MPL 1.1"/>
|
||||
<Version Major="120" Minor="2" Release="7"/>
|
||||
<Version Major="121" Minor="3" Release="2"/>
|
||||
<Files Count="215">
|
||||
<Item1>
|
||||
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/>
|
||||
|
@ -1964,10 +1964,27 @@ const
|
||||
/// <para>TCefShowState values.</para>
|
||||
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_show_state_t)</see></para>
|
||||
/// </remarks>
|
||||
/// <summary>
|
||||
/// Show the window as normal.
|
||||
/// </summary>
|
||||
CEF_SHOW_STATE_NORMAL = 1;
|
||||
/// <summary>
|
||||
/// Show the window as minimized.
|
||||
/// </summary>
|
||||
CEF_SHOW_STATE_MINIMIZED = 2;
|
||||
/// <summary>
|
||||
/// Show the window as maximized.
|
||||
/// </summary>
|
||||
CEF_SHOW_STATE_MAXIMIZED = 3;
|
||||
/// <summary>
|
||||
/// Show the window as fullscreen.
|
||||
/// </summary>
|
||||
CEF_SHOW_STATE_FULLSCREEN = 4;
|
||||
/// <summary>
|
||||
/// Show the window as hidden (no dock thumbnail).
|
||||
/// Only supported on MacOS..
|
||||
/// </summary>
|
||||
CEF_SHOW_STATE_HIDDEN = 5;
|
||||
|
||||
/// <summary>
|
||||
/// Supported quick menu state bit flags.
|
||||
|
@ -4347,7 +4347,7 @@ type
|
||||
/// </summary>
|
||||
procedure OnRouteStateChanged(const route: ICefMediaRoute; state: TCefMediaRouteConnectionState);
|
||||
/// <summary>
|
||||
/// A message was recieved over |route|. |message| is only valid for the scope
|
||||
/// A message was received over |route|. |message| is only valid for the scope
|
||||
/// of this callback and should be copied if necessary.
|
||||
/// </summary>
|
||||
procedure OnRouteMessageReceived(const route: ICefMediaRoute; const message_: ustring);
|
||||
@ -5552,28 +5552,30 @@ type
|
||||
/// <summary>
|
||||
/// Sets the font list for the specified |command_id|. If |font_list| is NULL
|
||||
/// the system font will be used. Returns true (1) on success. The format is
|
||||
/// "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a
|
||||
/// comma-separated list of font family names, - STYLES is an optional space-
|
||||
/// separated list of style names
|
||||
/// "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where:
|
||||
/// - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names
|
||||
/// (case-sensitive "Bold" and "Italic" are supported), and
|
||||
/// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
///
|
||||
/// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
/// Bold Italic 14px" - "Arial, 14px"
|
||||
/// Here are examples of valid font description strings:
|
||||
/// - "Arial, Helvetica, Bold Italic 14px"
|
||||
/// - "Arial, 14px"
|
||||
/// </summary>
|
||||
function SetFontList(commandId: Integer; const fontList: ustring): Boolean;
|
||||
/// <summary>
|
||||
/// Sets the font list for the specified |index|. Specify an |index| value of
|
||||
/// -1 to set the default font. If |font_list| is NULL the system font will be
|
||||
/// used. Returns true (1) on success. The format is
|
||||
/// "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a
|
||||
/// comma-separated list of font family names, - STYLES is an optional space-
|
||||
/// separated list of style names
|
||||
/// "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where:
|
||||
/// - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names
|
||||
/// (case-sensitive "Bold" and "Italic" are supported), and
|
||||
/// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
///
|
||||
/// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
/// Bold Italic 14px" - "Arial, 14px"
|
||||
/// Here are examples of valid font description strings:
|
||||
/// - "Arial, Helvetica, Bold Italic 14px"
|
||||
/// - "Arial, 14px"
|
||||
/// </summary>
|
||||
function SetFontListAt(index: Integer; const fontList: ustring): Boolean;
|
||||
end;
|
||||
@ -6163,7 +6165,7 @@ type
|
||||
/// </summary>
|
||||
procedure OnAfterCreated(const browser: ICefBrowser);
|
||||
/// <summary>
|
||||
/// Called when a browser has recieved a request to close. This may result
|
||||
/// Called when a browser has received a request to close. This may result
|
||||
/// directly from a call to ICefBrowserHost.*CloseBrowser or indirectly
|
||||
/// if the browser is parented to a top-level window created by CEF and the
|
||||
/// user attempts to close that window (by clicking the 'X', for example). The
|
||||
@ -10171,14 +10173,15 @@ type
|
||||
function GetSelectionBackgroundColor : TCefColor;
|
||||
/// <summary>
|
||||
/// Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>",
|
||||
/// where: - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-
|
||||
/// sensitive
|
||||
/// where:
|
||||
/// - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-sensitive
|
||||
/// "Bold" and "Italic" are supported), and
|
||||
/// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
///
|
||||
/// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
/// Bold Italic 14px" - "Arial, 14px"
|
||||
/// Here are examples of valid font description strings:
|
||||
/// - "Arial, Helvetica, Bold Italic 14px"
|
||||
/// - "Arial, 14px"
|
||||
/// </summary>
|
||||
procedure SetFontList(const font_list: ustring);
|
||||
/// <summary>
|
||||
@ -10272,7 +10275,7 @@ type
|
||||
ICefTextfieldDelegate = interface(ICefViewDelegate)
|
||||
['{72612994-92BB-4DE9-BB38-6F49FB45F94B}']
|
||||
/// <summary>
|
||||
/// Called when |textfield| recieves a keyboard event. |event| contains
|
||||
/// Called when |textfield| receives a keyboard event. |event| contains
|
||||
/// information about the keyboard event. Return true (1) if the keyboard
|
||||
/// event was handled or false (0) otherwise for default handling.
|
||||
/// </summary>
|
||||
@ -10635,14 +10638,15 @@ type
|
||||
procedure SetEnabledTextColors(color: TCefColor);
|
||||
/// <summary>
|
||||
/// Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>",
|
||||
/// where: - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-
|
||||
/// sensitive
|
||||
/// where:
|
||||
/// - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-sensitive
|
||||
/// "Bold" and "Italic" are supported), and
|
||||
/// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
///
|
||||
/// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
/// Bold Italic 14px" - "Arial, 14px"
|
||||
/// Here are examples of valid font description strings:
|
||||
/// - "Arial, Helvetica, Bold Italic 14px"
|
||||
/// - "Arial, 14px"
|
||||
/// </summary>
|
||||
procedure SetFontList(const font_list: ustring);
|
||||
/// <summary>
|
||||
@ -10854,8 +10858,9 @@ type
|
||||
/// <summary>
|
||||
/// Add a View that will be overlayed on the Window contents with absolute
|
||||
/// positioning and high z-order. Positioning is controlled by |docking_mode|
|
||||
/// as described below. The returned ICefOverlayController object is used
|
||||
/// to control the overlay. Overlays are hidden by default.
|
||||
/// as described below. Setting |can_activate| to true (1) will allow the
|
||||
/// overlay view to receive input focus. The returned cef_overlay_controller_t
|
||||
/// object is used to control the overlay. Overlays are hidden by default.
|
||||
///
|
||||
/// With CEF_DOCKING_MODE_CUSTOM:
|
||||
/// 1. The overlay is initially hidden, sized to |view|'s preferred size,
|
||||
@ -10880,7 +10885,7 @@ type
|
||||
/// function last after all other child Views have been added so that the
|
||||
/// overlay displays as the top-most child of the Window.
|
||||
/// </summary>
|
||||
function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode): ICefOverlayController;
|
||||
function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;
|
||||
/// <summary>
|
||||
/// Show a menu with contents |menu_model|. |screen_point| specifies the menu
|
||||
/// position in screen coordinates. |anchor_position| specifies how the menu
|
||||
|
@ -64,14 +64,15 @@ type
|
||||
procedure SetEnabledTextColors(color: TCefColor);
|
||||
/// <summary>
|
||||
/// Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>",
|
||||
/// where: - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-
|
||||
/// sensitive
|
||||
/// where:
|
||||
/// - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-sensitive
|
||||
/// "Bold" and "Italic" are supported), and
|
||||
/// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
///
|
||||
/// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
/// Bold Italic 14px" - "Arial, 14px"
|
||||
/// Here are examples of valid font description strings:
|
||||
/// - "Arial, Helvetica, Bold Italic 14px"
|
||||
/// - "Arial, 14px"
|
||||
/// </summary>
|
||||
procedure SetFontList(const font_list: ustring);
|
||||
/// <summary>
|
||||
|
@ -25,22 +25,23 @@ type
|
||||
/// </summary>
|
||||
TPDFPrintOptions = class
|
||||
protected
|
||||
FLandscape : boolean;
|
||||
FPrintBackground : boolean;
|
||||
FScale : double;
|
||||
FPaperWidth : double;
|
||||
FPaperHeight : double;
|
||||
FPreferCSSPageSize : boolean;
|
||||
FMarginType : TCefPdfPrintMarginType;
|
||||
FMarginTop : double;
|
||||
FMarginRight : double;
|
||||
FMarginBottom : double;
|
||||
FMarginLeft : double;
|
||||
FPageRanges : ustring;
|
||||
FDisplayHeaderFooter : boolean;
|
||||
FHeaderTemplate : ustring;
|
||||
FFooterTemplate : ustring;
|
||||
FGenerateTaggedPDF : boolean;
|
||||
FLandscape : boolean;
|
||||
FPrintBackground : boolean;
|
||||
FScale : double;
|
||||
FPaperWidth : double;
|
||||
FPaperHeight : double;
|
||||
FPreferCSSPageSize : boolean;
|
||||
FMarginType : TCefPdfPrintMarginType;
|
||||
FMarginTop : double;
|
||||
FMarginRight : double;
|
||||
FMarginBottom : double;
|
||||
FMarginLeft : double;
|
||||
FPageRanges : ustring;
|
||||
FDisplayHeaderFooter : boolean;
|
||||
FHeaderTemplate : ustring;
|
||||
FFooterTemplate : ustring;
|
||||
FGenerateTaggedPDF : boolean;
|
||||
FGenerateDocumentOutline : boolean;
|
||||
|
||||
function GetScalePct: double;
|
||||
function GetPaperWidthMM: double;
|
||||
@ -73,16 +74,16 @@ type
|
||||
/// <summary>
|
||||
/// Set to true for landscape mode or false for portrait mode.
|
||||
/// </summary>
|
||||
property Landscape : boolean read FLandscape write FLandscape;
|
||||
property Landscape : boolean read FLandscape write FLandscape;
|
||||
/// <summary>
|
||||
/// Set to true to print background graphics.
|
||||
/// </summary>
|
||||
property PrintBackground : boolean read FPrintBackground write FPrintBackground;
|
||||
property PrintBackground : boolean read FPrintBackground write FPrintBackground;
|
||||
/// <summary>
|
||||
/// Set to true to prefer page size as defined by css. Defaults to false,
|
||||
/// in which case the content will be scaled to fit the paper size.
|
||||
/// </summary>
|
||||
property PreferCSSPageSize : boolean read FPreferCSSPageSize write FPreferCSSPageSize;
|
||||
property PreferCSSPageSize : boolean read FPreferCSSPageSize write FPreferCSSPageSize;
|
||||
/// <summary>
|
||||
/// <para>Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are printed
|
||||
/// in the document order, not in the order specified, and no more than once.
|
||||
@ -92,12 +93,12 @@ type
|
||||
/// no pages to print, an error is reported. It is an error to specify a range
|
||||
/// with start greater than end.</para>
|
||||
/// </summary>
|
||||
property PageRanges : ustring read FPageRanges write FPageRanges;
|
||||
property PageRanges : ustring read FPageRanges write FPageRanges;
|
||||
/// <summary>
|
||||
/// Set to true to display the header and/or footer. Modify
|
||||
/// HeaderTemplate and/or FooterTemplate to customize the display.
|
||||
/// </summary>
|
||||
property DisplayHeaderFooter : boolean read FDisplayHeaderFooter write FDisplayHeaderFooter;
|
||||
property DisplayHeaderFooter : boolean read FDisplayHeaderFooter write FDisplayHeaderFooter;
|
||||
/// <summary>
|
||||
/// <para>HTML template for the print header. Only displayed if
|
||||
/// DisplayHeaderFooter is true. Should be valid HTML markup with
|
||||
@ -112,87 +113,91 @@ type
|
||||
/// <para>For example, "<span class=title></span>" would generate a span containing
|
||||
/// the title.</para>
|
||||
/// </summary>
|
||||
property HeaderTemplate : ustring read FHeaderTemplate write FHeaderTemplate;
|
||||
property HeaderTemplate : ustring read FHeaderTemplate write FHeaderTemplate;
|
||||
/// <summary>
|
||||
/// HTML template for the print footer. Only displayed if
|
||||
/// DisplayHeaderFooter is true. Uses the same format as
|
||||
/// HeaderTemplate.
|
||||
/// </summary>
|
||||
property FooterTemplate : ustring read FFooterTemplate write FFooterTemplate;
|
||||
property FooterTemplate : ustring read FFooterTemplate write FFooterTemplate;
|
||||
/// <summary>
|
||||
/// Set to true to generate tagged (accessible) PDF.
|
||||
/// </summary>
|
||||
property GenerateTaggedPDF : boolean read FGenerateTaggedPDF write FGenerateTaggedPDF;
|
||||
property GenerateTaggedPDF : boolean read FGenerateTaggedPDF write FGenerateTaggedPDF;
|
||||
/// <summary>
|
||||
/// Set to true to generate a document outline.
|
||||
/// </summary>
|
||||
property GenerateDocumentOutline : boolean read FGenerateDocumentOutline write FGenerateDocumentOutline;
|
||||
/// <summary>
|
||||
/// The percentage to scale the PDF by before printing (e.g. .5 is 50%).
|
||||
/// If this value is less than or equal to zero the default value of 1.0
|
||||
/// will be used.
|
||||
/// </summary>
|
||||
property Scale : double read FScale write FScale;
|
||||
property Scale : double read FScale write FScale;
|
||||
/// <summary>
|
||||
/// The percentage value to scale the PDF by before printing (e.g. 50 is 50%).
|
||||
/// </summary>
|
||||
property ScalePct : double read GetScalePct write SetScalePct;
|
||||
property ScalePct : double read GetScalePct write SetScalePct;
|
||||
/// <summary>
|
||||
/// Output paper width in inches. If either of these values is less than or
|
||||
/// equal to zero then the default paper size (letter, 8.5 x 11 inches) will
|
||||
/// be used.
|
||||
/// </summary>
|
||||
property PaperWidthInch : double read FPaperWidth write FPaperWidth;
|
||||
property PaperWidthInch : double read FPaperWidth write FPaperWidth;
|
||||
/// <summary>
|
||||
/// Output paper height in inches. If either of these values is less than or
|
||||
/// equal to zero then the default paper size (letter, 8.5 x 11 inches) will
|
||||
/// be used.
|
||||
/// </summary>
|
||||
property PaperHeightInch : double read FPaperHeight write FPaperHeight;
|
||||
property PaperHeightInch : double read FPaperHeight write FPaperHeight;
|
||||
/// <summary>
|
||||
/// Output paper width in mm.
|
||||
/// </summary>
|
||||
property PaperWidthMM : double read GetPaperWidthMM write SetPaperWidthMM;
|
||||
property PaperWidthMM : double read GetPaperWidthMM write SetPaperWidthMM;
|
||||
/// <summary>
|
||||
/// Output paper height in mm.
|
||||
/// </summary>
|
||||
property PaperHeightMM : double read GetPaperHeightMM write SetPaperHeightMM;
|
||||
property PaperHeightMM : double read GetPaperHeightMM write SetPaperHeightMM;
|
||||
/// <summary>
|
||||
/// Margin type.
|
||||
/// </summary>
|
||||
property MarginType : TCefPdfPrintMarginType read FMarginType write FMarginType;
|
||||
property MarginType : TCefPdfPrintMarginType read FMarginType write FMarginType;
|
||||
/// <summary>
|
||||
/// Top margin in inches. Only used if MarginType is set to
|
||||
/// PDF_PRINT_MARGIN_CUSTOM.
|
||||
/// </summary>
|
||||
property MarginTopInch : double read FMarginTop write FMarginTop;
|
||||
property MarginTopInch : double read FMarginTop write FMarginTop;
|
||||
/// <summary>
|
||||
/// Right margin in inches. Only used if MarginType is set to
|
||||
/// PDF_PRINT_MARGIN_CUSTOM.
|
||||
/// </summary>
|
||||
property MarginRightInch : double read FMarginRight write FMarginRight;
|
||||
property MarginRightInch : double read FMarginRight write FMarginRight;
|
||||
/// <summary>
|
||||
/// Bottom margin in inches. Only used if MarginType is set to
|
||||
/// PDF_PRINT_MARGIN_CUSTOM.
|
||||
/// </summary>
|
||||
property MarginBottomInch : double read FMarginBottom write FMarginBottom;
|
||||
property MarginBottomInch : double read FMarginBottom write FMarginBottom;
|
||||
/// <summary>
|
||||
/// Left margin in inches. Only used if MarginType is set to
|
||||
/// PDF_PRINT_MARGIN_CUSTOM.
|
||||
/// </summary>
|
||||
property MarginLeftInch : double read FMarginLeft write FMarginLeft;
|
||||
property MarginLeftInch : double read FMarginLeft write FMarginLeft;
|
||||
/// <summary>
|
||||
/// Top margin in mm.
|
||||
/// </summary>
|
||||
property MarginTopMM : double read GetMarginTopMM write SetMarginTopMM;
|
||||
property MarginTopMM : double read GetMarginTopMM write SetMarginTopMM;
|
||||
/// <summary>
|
||||
/// Right margin in mm.
|
||||
/// </summary>
|
||||
property MarginRightMM : double read GetMarginRightMM write SetMarginRightMM;
|
||||
property MarginRightMM : double read GetMarginRightMM write SetMarginRightMM;
|
||||
/// <summary>
|
||||
/// Bottom margin in mm.
|
||||
/// </summary>
|
||||
property MarginBottomMM : double read GetMarginBottomMM write SetMarginBottomMM;
|
||||
property MarginBottomMM : double read GetMarginBottomMM write SetMarginBottomMM;
|
||||
/// <summary>
|
||||
/// Left margin in mm.
|
||||
/// </summary>
|
||||
property MarginLeftMM : double read GetMarginLeftMM write SetMarginLeftMM;
|
||||
property MarginLeftMM : double read GetMarginLeftMM write SetMarginLeftMM;
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -205,22 +210,23 @@ const
|
||||
|
||||
constructor TPDFPrintOptions.Create;
|
||||
begin
|
||||
FLandscape := False;
|
||||
FPrintBackground := False;
|
||||
FScale := 0;
|
||||
FPaperWidth := 0;
|
||||
FPaperHeight := 0;
|
||||
FPreferCSSPageSize := False;
|
||||
FMarginType := PDF_PRINT_MARGIN_DEFAULT;
|
||||
FMarginTop := 0;
|
||||
FMarginRight := 0;
|
||||
FMarginBottom := 0;
|
||||
FMarginLeft := 0;
|
||||
FPageRanges := '';
|
||||
FDisplayHeaderFooter := False;
|
||||
FHeaderTemplate := '';
|
||||
FFooterTemplate := '';
|
||||
FGenerateTaggedPDF := False;
|
||||
FLandscape := False;
|
||||
FPrintBackground := False;
|
||||
FScale := 0;
|
||||
FPaperWidth := 0;
|
||||
FPaperHeight := 0;
|
||||
FPreferCSSPageSize := False;
|
||||
FMarginType := PDF_PRINT_MARGIN_DEFAULT;
|
||||
FMarginTop := 0;
|
||||
FMarginRight := 0;
|
||||
FMarginBottom := 0;
|
||||
FMarginLeft := 0;
|
||||
FPageRanges := '';
|
||||
FDisplayHeaderFooter := False;
|
||||
FHeaderTemplate := '';
|
||||
FFooterTemplate := '';
|
||||
FGenerateTaggedPDF := False;
|
||||
FGenerateDocumentOutline := False;
|
||||
end;
|
||||
|
||||
function TPDFPrintOptions.InchesToMM(const aInches: double): double;
|
||||
@ -329,22 +335,23 @@ end;
|
||||
|
||||
procedure TPDFPrintOptions.CopyToSettings(var aSettings : TCefPdfPrintSettings);
|
||||
begin
|
||||
aSettings.landscape := Ord(FLandscape);
|
||||
aSettings.print_background := Ord(FPrintBackground);
|
||||
aSettings.scale := FScale;
|
||||
aSettings.paper_width := FPaperWidth;
|
||||
aSettings.paper_height := FPaperHeight;
|
||||
aSettings.prefer_css_page_size := Ord(FPreferCSSPageSize);
|
||||
aSettings.margin_type := FMarginType;
|
||||
aSettings.margin_top := FMarginTop;
|
||||
aSettings.margin_right := FMarginRight;
|
||||
aSettings.margin_bottom := FMarginBottom;
|
||||
aSettings.margin_left := FMarginLeft;
|
||||
aSettings.page_ranges := CefString(FPageRanges);
|
||||
aSettings.display_header_footer := Ord(FDisplayHeaderFooter);
|
||||
aSettings.header_template := CefString(FHeaderTemplate);
|
||||
aSettings.footer_template := CefString(FFooterTemplate);
|
||||
aSettings.generate_tagged_pdf := Ord(FGenerateTaggedPDF);
|
||||
aSettings.landscape := Ord(FLandscape);
|
||||
aSettings.print_background := Ord(FPrintBackground);
|
||||
aSettings.scale := FScale;
|
||||
aSettings.paper_width := FPaperWidth;
|
||||
aSettings.paper_height := FPaperHeight;
|
||||
aSettings.prefer_css_page_size := Ord(FPreferCSSPageSize);
|
||||
aSettings.margin_type := FMarginType;
|
||||
aSettings.margin_top := FMarginTop;
|
||||
aSettings.margin_right := FMarginRight;
|
||||
aSettings.margin_bottom := FMarginBottom;
|
||||
aSettings.margin_left := FMarginLeft;
|
||||
aSettings.page_ranges := CefString(FPageRanges);
|
||||
aSettings.display_header_footer := Ord(FDisplayHeaderFooter);
|
||||
aSettings.header_template := CefString(FHeaderTemplate);
|
||||
aSettings.footer_template := CefString(FFooterTemplate);
|
||||
aSettings.generate_tagged_pdf := Ord(FGenerateTaggedPDF);
|
||||
aSettings.generate_document_outline := Ord(FGenerateDocumentOutline);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
@ -119,14 +119,15 @@ type
|
||||
function GetSelectionBackgroundColor : TCefColor;
|
||||
/// <summary>
|
||||
/// Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>",
|
||||
/// where: - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-
|
||||
/// sensitive
|
||||
/// where:
|
||||
/// - FONT_FAMILY_LIST is a comma-separated list of font family names,
|
||||
/// - STYLES is an optional space-separated list of style names (case-sensitive
|
||||
/// "Bold" and "Italic" are supported), and
|
||||
/// - SIZE is an integer font size in pixels with the suffix "px".
|
||||
///
|
||||
/// Here are examples of valid font description strings: - "Arial, Helvetica,
|
||||
/// Bold Italic 14px" - "Arial, 14px"
|
||||
/// Here are examples of valid font description strings:
|
||||
/// - "Arial, Helvetica, Bold Italic 14px"
|
||||
/// - "Arial, 14px"
|
||||
/// </summary>
|
||||
procedure SetFontList(const font_list: ustring);
|
||||
/// <summary>
|
||||
|
@ -43,7 +43,7 @@ type
|
||||
TCefTextfieldDelegateOwn = class(TCefViewDelegateOwn, ICefTextfieldDelegate)
|
||||
protected
|
||||
/// <summary>
|
||||
/// Called when |textfield| recieves a keyboard event. |event| contains
|
||||
/// Called when |textfield| receives a keyboard event. |event| contains
|
||||
/// information about the keyboard event. Return true (1) if the keyboard
|
||||
/// event was handled or false (0) otherwise for default handling.
|
||||
/// </summary>
|
||||
|
@ -2776,8 +2776,9 @@ type
|
||||
CEF_CPAIT_ZOOM,
|
||||
CEF_CPAIT_SAVE_IBAN,
|
||||
CEF_CPAIT_MANDATORY_REAUTH,
|
||||
CEF_CPAIT_PRICE_INSIGHTS
|
||||
{* CEF_CPAIT_MAX_VALUE = CEF_CPAIT_PRICE_INSIGHTS *}
|
||||
CEF_CPAIT_PRICE_INSIGHTS,
|
||||
CEF_CPAIT_PRICE_READ_ANYTHING
|
||||
{* CEF_CPAIT_MAX_VALUE = CEF_CPAIT_PRICE_READ_ANYTHING *}
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
@ -3906,6 +3907,10 @@ type
|
||||
/// Set to true (1) to generate tagged (accessible) PDF.
|
||||
/// </summary>
|
||||
generate_tagged_pdf : integer;
|
||||
/// <summary>
|
||||
/// Set to true (1) to generate a document outline.
|
||||
/// </summary>
|
||||
generate_document_outline : integer;
|
||||
end;
|
||||
|
||||
/// <summary>
|
||||
@ -4277,8 +4282,7 @@ type
|
||||
/// </summary>
|
||||
CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_LAST_PICKED_DIRECTORY,
|
||||
/// <summary>
|
||||
/// Controls access to the getDisplayMedia API when {preferCurrentTab: true}
|
||||
/// is specified.
|
||||
/// Controls access to the getDisplayMedia API.
|
||||
/// </summary>
|
||||
CEF_CONTENT_SETTING_TYPE_DISPLAY_CAPTURE,
|
||||
/// <summary>
|
||||
@ -4320,9 +4324,9 @@ type
|
||||
/// between a specified relying party and a specified identity provider for
|
||||
/// a specified account. When this is present it allows access to session
|
||||
/// management capabilities between the sites. This setting is associated
|
||||
/// with the relying party's origin.
|
||||
/// with the relying party's origin. Obsolete on Nov 2023.
|
||||
/// </summary>
|
||||
CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_ACTIVE_SESSION,
|
||||
CEF_CONTENT_SETTING_TYPE_DEPRECATED_FEDERATED_IDENTITY_ACTIVE_SESSION,
|
||||
/// <summary>
|
||||
/// Setting to indicate whether Chrome should automatically apply darkening to
|
||||
/// web content.
|
||||
@ -4438,6 +4442,11 @@ type
|
||||
/// heuristics.
|
||||
/// </summary>
|
||||
CEF_CONTENT_SETTING_TYPE_TPCD_HEURISTICS_GRANTS,
|
||||
/// <summary>
|
||||
/// Whether the FSA Persistent Permissions restore prompt is eligible to be
|
||||
/// shown to the user, for a given origin.
|
||||
/// </summary>
|
||||
CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_RESTORE_PERMISSION,
|
||||
CEF_CONTENT_SETTING_TYPE_NUM_TYPES
|
||||
);
|
||||
|
||||
@ -7709,7 +7718,7 @@ type
|
||||
get_window_icon : function(self: PCefWindow): PCefImage; stdcall;
|
||||
set_window_app_icon : procedure(self: PCefWindow; image: PCefImage); stdcall;
|
||||
get_window_app_icon : function(self: PCefWindow): PCefImage; stdcall;
|
||||
add_overlay_view : function(self: PCefWindow; view: PCefView; docking_mode: TCefDockingMode): PCefOverlayController; stdcall;
|
||||
add_overlay_view : function(self: PCefWindow; view: PCefView; docking_mode: TCefDockingMode; can_activate: integer): PCefOverlayController; stdcall;
|
||||
show_menu : procedure(self: PCefWindow; menu_model: PCefMenuModel; const screen_point: PCefPoint; anchor_position : TCefMenuAnchorPosition); stdcall;
|
||||
cancel_menu : procedure(self: PCefWindow); stdcall;
|
||||
get_display : function(self: PCefWindow): PCefDisplay; stdcall;
|
||||
|
@ -1,9 +1,9 @@
|
||||
CEF_SUPPORTED_VERSION_MAJOR = 120;
|
||||
CEF_SUPPORTED_VERSION_MINOR = 2;
|
||||
CEF_SUPPORTED_VERSION_RELEASE = 7;
|
||||
CEF_SUPPORTED_VERSION_MAJOR = 121;
|
||||
CEF_SUPPORTED_VERSION_MINOR = 3;
|
||||
CEF_SUPPORTED_VERSION_RELEASE = 2;
|
||||
CEF_SUPPORTED_VERSION_BUILD = 0;
|
||||
|
||||
CEF_CHROMEELF_VERSION_MAJOR = CEF_SUPPORTED_VERSION_MAJOR;
|
||||
CEF_CHROMEELF_VERSION_MINOR = 0;
|
||||
CEF_CHROMEELF_VERSION_RELEASE = 6099;
|
||||
CEF_CHROMEELF_VERSION_BUILD = 234;
|
||||
CEF_CHROMEELF_VERSION_RELEASE = 6167;
|
||||
CEF_CHROMEELF_VERSION_BUILD = 75;
|
||||
|
@ -173,8 +173,9 @@ type
|
||||
/// <summary>
|
||||
/// <para>Add a View that will be overlayed on the Window contents with absolute
|
||||
/// positioning and high z-order. Positioning is controlled by |docking_mode|
|
||||
/// as described below. The returned cef_overlay_controller_t object is used
|
||||
/// to control the overlay. Overlays are hidden by default.</para>
|
||||
/// as described below. Setting |can_activate| to true (1) will allow the
|
||||
/// overlay view to receive input focus. The returned cef_overlay_controller_t
|
||||
/// object is used to control the overlay. Overlays are hidden by default.</para>
|
||||
/// <para>With CEF_DOCKING_MODE_CUSTOM:</para>
|
||||
/// <code>
|
||||
/// 1. The overlay is initially hidden, sized to |view|'s preferred size,
|
||||
@ -200,7 +201,7 @@ type
|
||||
/// function last after all other child Views have been added so that the
|
||||
/// overlay displays as the top-most child of the Window.</para>
|
||||
/// </summary>
|
||||
function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode): ICefOverlayController;
|
||||
function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;
|
||||
|
||||
/// <summary>
|
||||
/// Show a menu with contents |menu_model|. |screen_point| specifies the menu
|
||||
@ -435,11 +436,12 @@ begin
|
||||
Result := TCefImageRef.UnWrap(PCefWindow(FData)^.get_window_app_icon(PCefWindow(FData)));
|
||||
end;
|
||||
|
||||
function TCefWindowRef.AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode): ICefOverlayController;
|
||||
function TCefWindowRef.AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;
|
||||
begin
|
||||
Result := TCefOverlayControllerRef.UnWrap(PCefWindow(FData)^.add_overlay_view(PCefWindow(FData),
|
||||
CefGetData(view),
|
||||
docking_mode));
|
||||
docking_mode,
|
||||
ord(can_activate)));
|
||||
end;
|
||||
|
||||
procedure TCefWindowRef.ShowMenu(const menu_model : ICefMenuModel;
|
||||
|
@ -161,8 +161,9 @@ type
|
||||
/// <summary>
|
||||
/// <para>Add a View that will be overlayed on the Window contents with absolute
|
||||
/// positioning and high z-order. Positioning is controlled by |docking_mode|
|
||||
/// as described below. The returned cef_overlay_controller_t object is used
|
||||
/// to control the overlay. Overlays are hidden by default.</para>
|
||||
/// as described below. Setting |can_activate| to true (1) will allow the
|
||||
/// overlay view to receive input focus. The returned cef_overlay_controller_t
|
||||
/// object is used to control the overlay. Overlays are hidden by default.</para>
|
||||
/// <para>With CEF_DOCKING_MODE_CUSTOM:</para>
|
||||
/// <code>
|
||||
/// 1. The overlay is initially hidden, sized to |view|'s preferred size,
|
||||
@ -186,7 +187,7 @@ type
|
||||
/// function last after all other child Views have been added so that the
|
||||
/// overlay displays as the top-most child of the Window.</para>
|
||||
/// </summary>
|
||||
function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode): ICefOverlayController;
|
||||
function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;
|
||||
/// <summary>
|
||||
/// Show a menu with contents |menu_model|. |screen_point| specifies the menu
|
||||
/// position in screen coordinates. |anchor_position| specifies how the menu
|
||||
@ -790,10 +791,10 @@ begin
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
function TCEFWindowComponent.AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode): ICefOverlayController;
|
||||
function TCEFWindowComponent.AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;
|
||||
begin
|
||||
if Initialized then
|
||||
Result := FWindow.AddOverlayView(view, docking_mode)
|
||||
Result := FWindow.AddOverlayView(view, docking_mode, can_activate)
|
||||
else
|
||||
Result := nil;
|
||||
end;
|
||||
|
@ -2,9 +2,9 @@
|
||||
"UpdateLazPackages" : [
|
||||
{
|
||||
"ForceNotify" : true,
|
||||
"InternalVersion" : 556,
|
||||
"InternalVersion" : 557,
|
||||
"Name" : "cef4delphi_lazarus.lpk",
|
||||
"Version" : "120.2.7"
|
||||
"Version" : "121.2.14"
|
||||
}
|
||||
],
|
||||
"UpdatePackageData" : {
|
||||
|
Loading…
Reference in New Issue
Block a user