Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefWindowDelegate

CefBaseRefCounted
   |
   +--CefViewDelegate
         |
         +--CefPanelDelegate
               |
               +--CefWindowDelegate

   in cef_window_delegate.h

class CefWindowDelegate
extends CefPanelDelegate

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


Method Summary
 virtual bool CanClose( CefRefPtr< CefWindow > window )
          Return true if |window| can be closed.
 virtual bool CanMaximize( CefRefPtr< CefWindow > window )
          Return true if |window| can be maximized.
 virtual bool CanMinimize( CefRefPtr< CefWindow > window )
          Return true if |window| can be minimized.
 virtual bool CanResize( CefRefPtr< CefWindow > window )
          Return true if |window| can be resized.
 virtual CefRefPtr< CefWindow > GetParentWindow( CefRefPtr< CefWindow > window, bool* is_menu, bool* can_activate_menu )
          Return the parent for |window| or NULL if the |window| does not have a parent.
 virtual bool IsFrameless( CefRefPtr< CefWindow > window )
          Return true if |window| should be created without a frame or title bar.
 virtual bool OnAccelerator( CefRefPtr< CefWindow > window, int command_id )
          Called when a keyboard accelerator registered with CefWindow::SetAccelerator is triggered.
 virtual bool OnKeyEvent( CefRefPtr< CefWindow > window, const CefKeyEvent& event )
          Called after all other controls in the window have had a chance to handle the event.
 virtual void OnWindowCreated( CefRefPtr< CefWindow > window )
          Called when |window| is created.
 virtual void OnWindowDestroyed( CefRefPtr< CefWindow > window )
          Called when |window| is destroyed.
   
Methods inherited from class CefViewDelegate
GetPreferredSize, GetMinimumSize, GetMaximumSize, GetHeightForWidth, OnParentViewChanged, OnChildViewChanged, OnFocus, OnBlur
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

CanClose

public virtual bool CanClose( CefRefPtr< CefWindow > window );
Return true if |window| can be closed. This will be called for user- initiated window close actions and when CefWindow::Close() is called.

CanMaximize

public virtual bool CanMaximize( CefRefPtr< CefWindow > window );
Return true if |window| can be maximized.

CanMinimize

public virtual bool CanMinimize( CefRefPtr< CefWindow > window );
Return true if |window| can be minimized.

CanResize

public virtual bool CanResize( CefRefPtr< CefWindow > window );
Return true if |window| can be resized.

GetParentWindow

public virtual CefRefPtr< CefWindow > GetParentWindow( CefRefPtr< CefWindow > window, bool* is_menu, bool* can_activate_menu );
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 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 if |is_menu| is true and |window| should not be activated (given keyboard focus) when displayed.

IsFrameless

public virtual bool IsFrameless( CefRefPtr< CefWindow > window );
Return true if |window| should be created without a frame or title bar. The window will be resizable if CanResize() returns true. Use CefWindow::SetDraggableRegions() to specify draggable regions.

OnAccelerator

public virtual bool OnAccelerator( CefRefPtr< CefWindow > window, int command_id );
Called when a keyboard accelerator registered with CefWindow::SetAccelerator is triggered. Return true if the accelerator was handled or false otherwise.

OnKeyEvent

public virtual bool OnKeyEvent( CefRefPtr< CefWindow > window, const CefKeyEvent& event );
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 if the keyboard event was handled or false otherwise.

OnWindowCreated

public virtual void OnWindowCreated( CefRefPtr< CefWindow > window );
Called when |window| is created.

OnWindowDestroyed

public virtual void OnWindowDestroyed( CefRefPtr< CefWindow > window );
Called when |window| is destroyed. Release all references to |window| and do not attempt to execute any methods on |window| after this callback returns.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt