Class TCefRenderHandlerOwn

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCefRenderHandlerOwn = class(TCefBaseRefCountedOwn, ICefRenderHandler)

Description

This item has no description.

Hierarchy

Overview

Methods

Protected procedure GetAccessibilityHandler(var aAccessibilityHandler : ICefAccessibilityHandler); virtual;
Protected function GetRootScreenRect(const browser: ICefBrowser; var rect: TCefRect): Boolean; virtual;
Protected procedure GetViewRect(const browser: ICefBrowser; var rect: TCefRect); virtual;
Protected function GetScreenPoint(const browser: ICefBrowser; viewX, viewY: Integer; var screenX, screenY: Integer): Boolean; virtual;
Protected function GetScreenInfo(const browser: ICefBrowser; var screenInfo: TCefScreenInfo): Boolean; virtual;
Protected procedure OnPopupShow(const browser: ICefBrowser; show: Boolean); virtual;
Protected procedure OnPopupSize(const browser: ICefBrowser; const rect: PCefRect); virtual;
Protected procedure OnPaint(const browser: ICefBrowser; kind: TCefPaintElementType; dirtyRectsCount: NativeUInt; const dirtyRects: PCefRectArray; const buffer: Pointer; width, height: Integer); virtual;
Protected procedure OnAcceleratedPaint(const browser: ICefBrowser; kind: TCefPaintElementType; dirtyRectsCount: NativeUInt; const dirtyRects: PCefRectArray; shared_handle: Pointer); virtual;
Protected procedure GetTouchHandleSize(const browser: ICefBrowser; orientation: TCefHorizontalAlignment; var size: TCefSize); virtual;
Protected procedure OnTouchHandleStateChanged(const browser: ICefBrowser; const state: TCefTouchHandleState); virtual;
Protected function OnStartDragging(const browser: ICefBrowser; const dragData: ICefDragData; allowedOps: TCefDragOperations; x, y: Integer): Boolean; virtual;
Protected procedure OnUpdateDragCursor(const browser: ICefBrowser; operation: TCefDragOperation); virtual;
Protected procedure OnScrollOffsetChanged(const browser: ICefBrowser; x, y: Double); virtual;
Protected procedure OnIMECompositionRangeChanged(const browser: ICefBrowser; const selected_range: PCefRange; character_boundsCount: NativeUInt; const character_bounds: PCefRect); virtual;
Protected procedure OnTextSelectionChanged(const browser: ICefBrowser; const selected_text: ustring; const selected_range: PCefRange); virtual;
Protected procedure OnVirtualKeyboardRequested(const browser: ICefBrowser; input_mode: TCefTextInpuMode); virtual;
Protected procedure RemoveReferences; virtual;
Public constructor Create; virtual;

Description

Methods

Protected procedure GetAccessibilityHandler(var aAccessibilityHandler : ICefAccessibilityHandler); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.GetAccessibilityHandler.

Return the handler for accessibility notifications. If no handler is provided the default implementation will be used.

Protected function GetRootScreenRect(const browser: ICefBrowser; var rect: TCefRect): Boolean; virtual;

This item has no description. Showing description inherited from ICefRenderHandler.GetRootScreenRect.

Called to retrieve the root window rectangle in screen DIP coordinates. Return true (1) if the rectangle was provided. If this function returns false (0) the rectangle from GetViewRect will be used.

Protected procedure GetViewRect(const browser: ICefBrowser; var rect: TCefRect); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.GetViewRect.

Called to retrieve the view rectangle in screen DIP coordinates. This function must always provide a non-NULL rectangle.

Protected function GetScreenPoint(const browser: ICefBrowser; viewX, viewY: Integer; var screenX, screenY: Integer): Boolean; virtual;

This item has no description. Showing description inherited from ICefRenderHandler.GetScreenPoint.

Called to retrieve the translation from view DIP coordinates to screen coordinates. Windows/Linux should provide screen device (pixel) coordinates and MacOS should provide screen DIP coordinates. Return true (1) if the requested coordinates were provided.

Protected function GetScreenInfo(const browser: ICefBrowser; var screenInfo: TCefScreenInfo): Boolean; virtual;

This item has no description. Showing description inherited from ICefRenderHandler.GetScreenInfo.

Called to allow the client to fill in the CefScreenInfo object with appropriate values. Return true (1) if the |screen_info| structure has been modified.

If the screen info rectangle is left NULL the rectangle from GetViewRect will be used. If the rectangle is still NULL or invalid popups may not be drawn correctly.

Protected procedure OnPopupShow(const browser: ICefBrowser; show: Boolean); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnPopupShow.

Called when the browser wants to show or hide the popup widget. The popup should be shown if |show| is true (1) and hidden if |show| is false (0).

Protected procedure OnPopupSize(const browser: ICefBrowser; const rect: PCefRect); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnPopupSize.

Called when the browser wants to move or resize the popup widget. |rect| contains the new location and size in view coordinates.

Protected procedure OnPaint(const browser: ICefBrowser; kind: TCefPaintElementType; dirtyRectsCount: NativeUInt; const dirtyRects: PCefRectArray; const buffer: Pointer; width, height: Integer); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnPaint.

Called when an element should be painted. Pixel values passed to this function are scaled relative to view coordinates based on the value of TCefScreenInfo.device_scale_factor returned from GetScreenInfo. |type| indicates whether the element is the view or the popup widget. |buffer| contains the pixel data for the whole image. |dirtyRects| contains the set of rectangles in pixel coordinates that need to be repainted. |buffer| will be |width|*|height|*4 bytes in size and represents a BGRA image with an upper-left origin. This function is only called when TCefWindowInfo.shared_texture_enabled is set to false (0).

Protected procedure OnAcceleratedPaint(const browser: ICefBrowser; kind: TCefPaintElementType; dirtyRectsCount: NativeUInt; const dirtyRects: PCefRectArray; shared_handle: Pointer); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnAcceleratedPaint.

Called when an element has been rendered to the shared texture handle. |type| indicates whether the element is the view or the popup widget. |dirtyRects| contains the set of rectangles in pixel coordinates that need to be repainted. |shared_handle| is the handle for a D3D11 Texture2D that can be accessed via ID3D11Device using the OpenSharedResource function. This function is only called when TCefWindowInfo.shared_texture_enabled is set to true (1), and is currently only supported on Windows.

Protected procedure GetTouchHandleSize(const browser: ICefBrowser; orientation: TCefHorizontalAlignment; var size: TCefSize); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.GetTouchHandleSize.

Called to retrieve the size of the touch handle for the specified |orientation|.

Protected procedure OnTouchHandleStateChanged(const browser: ICefBrowser; const state: TCefTouchHandleState); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnTouchHandleStateChanged.

Called when touch handle state is updated. The client is responsible for rendering the touch handles.

Protected function OnStartDragging(const browser: ICefBrowser; const dragData: ICefDragData; allowedOps: TCefDragOperations; x, y: Integer): Boolean; virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnStartDragging.

Called when the user starts dragging content in the web view. Contextual information about the dragged content is supplied by |drag_data|. (|x|, |y|) is the drag start location in screen coordinates. OS APIs that run a system message loop may be used within the StartDragging call.

Return false (0) to abort the drag operation. Don't call any of ICefBrowserHost.DragSource*Ended* functions after returning false (0).

Return true (1) to handle the drag operation. Call ICefBrowserHost.DragSourceEndedAt and DragSourceSystemDragEnded either synchronously or asynchronously to inform the web view that the drag operation has ended.

Protected procedure OnUpdateDragCursor(const browser: ICefBrowser; operation: TCefDragOperation); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnUpdateDragCursor.

Called when the web view wants to update the mouse cursor during a drag & drop operation. |operation| describes the allowed operation (none, move, copy, link).

Protected procedure OnScrollOffsetChanged(const browser: ICefBrowser; x, y: Double); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnScrollOffsetChanged.

Called when the scroll offset has changed.

Protected procedure OnIMECompositionRangeChanged(const browser: ICefBrowser; const selected_range: PCefRange; character_boundsCount: NativeUInt; const character_bounds: PCefRect); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnIMECompositionRangeChanged.

Called when the IME composition range has changed. |selected_range| is the range of characters that have been selected. |character_bounds| is the bounds of each character in view coordinates.

Protected procedure OnTextSelectionChanged(const browser: ICefBrowser; const selected_text: ustring; const selected_range: PCefRange); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnTextSelectionChanged.

Called when text selection has changed for the specified |browser|. |selected_text| is the currently selected text and |selected_range| is the character range.

Protected procedure OnVirtualKeyboardRequested(const browser: ICefBrowser; input_mode: TCefTextInpuMode); virtual;

This item has no description. Showing description inherited from ICefRenderHandler.OnVirtualKeyboardRequested.

Called when an on-screen keyboard should be shown or hidden for the specified |browser|. |input_mode| specifies what kind of keyboard should be opened. If |input_mode| is CEF_TEXT_INPUT_MODE_NONE, any existing keyboard for this browser should be hidden.

Protected procedure RemoveReferences; virtual;

This item has no description. Showing description inherited from ICefRenderHandler.RemoveReferences.

Custom procedure to clear all references.

Public constructor Create; virtual;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.