Interface ICefWindowDelegate

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type ICefWindowDelegate = interface(ICefPanelDelegate)

Description

Implement this interface to handle window events. The functions of this interface will be called on the browser process UI thread unless otherwise indicated.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/views/cef_window_delegate_capi.h">CEF source file: /include/capi/views/cef_window_delegate_capi.h (cef_window_delegate_t))

Hierarchy

Overview

Methods

Public procedure OnWindowCreated(const window_: ICefWindow);
Public procedure OnWindowClosing(const window_: ICefWindow);
Public procedure OnWindowDestroyed(const window_: ICefWindow);
Public procedure OnWindowActivationChanged(const window_: ICefWindow; active: boolean);
Public procedure OnWindowBoundsChanged(const window_: ICefWindow; const new_bounds: TCefRect);
Public procedure OnWindowFullscreenTransition(const window_: ICefWindow; is_completed: boolean);
Public procedure OnGetParentWindow(const window_: ICefWindow; var is_menu, can_activate_menu: boolean; var aResult : ICefWindow);
Public procedure OnIsWindowModalDialog(const window_: ICefWindow; var aResult: boolean);
Public procedure OnGetInitialBounds(const window_: ICefWindow; var aResult : TCefRect);
Public procedure OnGetInitialShowState(const window_: ICefWindow; var aResult : TCefShowState);
Public procedure OnIsFrameless(const window_: ICefWindow; var aResult : boolean);
Public procedure OnWithStandardWindowButtons(const window_: ICefWindow; var aResult : boolean);
Public procedure OnGetTitlebarHeight(const window_: ICefWindow; var titlebar_height: Single; var aResult : boolean);
Public procedure OnCanResize(const window_: ICefWindow; var aResult : boolean);
Public procedure OnCanMaximize(const window_: ICefWindow; var aResult : boolean);
Public procedure OnCanMinimize(const window_: ICefWindow; var aResult : boolean);
Public procedure OnCanClose(const window_: ICefWindow; var aResult : boolean);
Public procedure OnAccelerator(const window_: ICefWindow; command_id: Integer; var aResult : boolean);
Public procedure OnKeyEvent(const window_: ICefWindow; const event: TCefKeyEvent; var aResult : boolean);

Description

Methods

Public procedure OnWindowCreated(const window_: ICefWindow);

Called when |window| is created.

Attributes
GUID['{52D4EE2C-303B-42B6-A35F-30D03834A23F}']
Public procedure OnWindowClosing(const window_: ICefWindow);

Called when |window| is closing.

Public procedure OnWindowDestroyed(const window_: ICefWindow);

Called when |window| is destroyed. Release all references to |window| and do not attempt to execute any functions on |window| after this callback returns.

Public procedure OnWindowActivationChanged(const window_: ICefWindow; active: boolean);

Called when |window| is activated or deactivated.

Public procedure OnWindowBoundsChanged(const window_: ICefWindow; const new_bounds: TCefRect);

Called when |window| bounds have changed. |new_bounds| will be in DIP screen coordinates.

Public procedure OnWindowFullscreenTransition(const window_: ICefWindow; is_completed: boolean);

Called when |window| is transitioning to or from fullscreen mode. On MacOS the transition occurs asynchronously with |is_competed| set to false (0) when the transition starts and true (1) after the transition completes. On other platforms the transition occurs synchronously with |is_completed| set to true (1) after the transition completes. With the Alloy runtime you must also implement ICefDisplayHandler.OnFullscreenModeChange to handle fullscreen transitions initiated by browser content.

Public procedure OnGetParentWindow(const window_: ICefWindow; var is_menu, can_activate_menu: boolean; var aResult : ICefWindow);

Return the parent for |window| or NULL if the |window| does not have a parent. Windows with parents will not get a taskbar button. Set |is_menu| to true (1) if |window| will be displayed as a menu, in which case it will not be clipped to the parent window bounds. Set |can_activate_menu| to false (0) if |is_menu| is true (1) and |window| should not be activated (given keyboard focus) when displayed.

Public procedure OnIsWindowModalDialog(const window_: ICefWindow; var aResult: boolean);

Return true (1) if |window| should be created as a window modal dialog. Only called when a Window is returned via get_parent_window() with |is_menu| set to false (0). All controls in the parent Window will be disabled while |window| is visible. This functionality is not supported by all Linux window managers. Alternately, use ICefWindow.ShowAsBrowserModalDialog() for a browser modal dialog that works on all platforms.

Public procedure OnGetInitialBounds(const window_: ICefWindow; var aResult : TCefRect);

Return the initial bounds for |window| in density independent pixel (DIP) coordinates. If this function returns an NULL CefRect then GetPreferredSize() will be called to retrieve the size, and the window will be placed on the screen with origin (0,0). This function can be used in combination with ICefView.GetBoundsInScreen() to restore the previous window bounds.

Public procedure OnGetInitialShowState(const window_: ICefWindow; var aResult : TCefShowState);

Return the initial show state for |window|.

Public procedure OnIsFrameless(const window_: ICefWindow; var aResult : boolean);

Return true (1) if |window| should be created without a frame or title bar. The window will be resizable if can_resize() returns true (1). Use ICefWindow.SetDraggableRegions() to specify draggable regions.

Public procedure OnWithStandardWindowButtons(const window_: ICefWindow; var aResult : boolean);

Return true (1) if |window| should be created with standard window buttons like close, minimize and zoom. This function is only supported on macOS.

Public procedure OnGetTitlebarHeight(const window_: ICefWindow; var titlebar_height: Single; var aResult : boolean);

Return whether the titlebar height should be overridden, and sets the height of the titlebar in |titlebar_height|. On macOS, it can also be used to adjust the vertical position of the traffic light buttons in frameless windows. The buttons will be positioned halfway down the titlebar at a height of |titlebar_height| / 2.

Public procedure OnCanResize(const window_: ICefWindow; var aResult : boolean);

Return true (1) if |window| can be resized.

Public procedure OnCanMaximize(const window_: ICefWindow; var aResult : boolean);

Return true (1) if |window| can be maximized.

Public procedure OnCanMinimize(const window_: ICefWindow; var aResult : boolean);

Return true (1) if |window| can be minimized.

Public procedure OnCanClose(const window_: ICefWindow; var aResult : boolean);

Return true (1) if |window| can be closed. This will be called for user- initiated window close actions and when ICefWindow.close() is called.

Public procedure OnAccelerator(const window_: ICefWindow; command_id: Integer; var aResult : boolean);

Called when a keyboard accelerator registered with ICefWindow.SetAccelerator is triggered. Return true (1) if the accelerator was handled or false (0) otherwise.

Public procedure OnKeyEvent(const window_: ICefWindow; const event: TCefKeyEvent; var aResult : boolean);

Called after all other controls in the window have had a chance to handle the event. |event| contains information about the keyboard event. Return true (1) if the keyboard event was handled or false (0) otherwise.


Generated by PasDoc 0.16.0-snapshot.