Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 439
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefLifeSpanHandler

CefBase
   |
   +--CefLifeSpanHandler

   in cef.h

class CefLifeSpanHandler
extends CefBase

Implement this interface to handle events related to browser life span. The methods of this class will be called on the UI thread.


Method Summary
 virtual bool DoClose( CefRefPtr< CefBrowser > browser )
          Called when a window has recieved a request to close.
 virtual void OnAfterCreated( CefRefPtr< CefBrowser > browser )
          Called after a new window is created.
 virtual void OnBeforeClose( CefRefPtr< CefBrowser > browser )
          Called just before a window is closed.
 virtual bool OnBeforePopup( CefRefPtr< CefBrowser > parentBrowser, const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo, const CefString& url, CefRefPtr< CefClient >& client, CefBrowserSettings& settings )
          Called before a new popup window is created.
 virtual bool RunModal( CefRefPtr< CefBrowser > browser )
          Called when a modal window is about to display and the modal loop should begin running.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

DoClose

public virtual bool DoClose( CefRefPtr< CefBrowser > browser );
Called when a window has recieved a request to close. Return false to proceed with the window close or true to cancel the window close. If this is a modal window and a custom modal loop implementation was provided in RunModal() this callback should be used to restore the opener window to a usable state.

OnAfterCreated

public virtual void OnAfterCreated( CefRefPtr< CefBrowser > browser );
Called after a new window is created.

OnBeforeClose

public virtual void OnBeforeClose( CefRefPtr< CefBrowser > browser );
Called just before a window is closed. If this is a modal window and a custom modal loop implementation was provided in RunModal() this callback should be used to exit the custom modal loop.

OnBeforePopup

public virtual bool OnBeforePopup( CefRefPtr< CefBrowser > parentBrowser, const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo, const CefString& url, CefRefPtr< CefClient >& client, CefBrowserSettings& settings );
Called before a new popup window is created. The |parentBrowser| parameter will point to the parent browser window. The |popupFeatures| parameter will contain information about the style of popup window requested. Return false to have the framework create the new popup window based on the parameters in |windowInfo|. Return true to cancel creation of the popup window. By default, a newly created popup window will have the same client and settings as the parent window. To change the client for the new window modify the object that |client| points to. To change the settings for the new window modify the |settings| structure.

RunModal

public virtual bool RunModal( CefRefPtr< CefBrowser > browser );
Called when a modal window is about to display and the modal loop should begin running. Return false to use the default modal loop implementation or true to use a custom implementation.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 439
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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