Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefDisplayHandler

CefBaseRefCounted
   |
   +--CefDisplayHandler

   in cef_display_handler.h

class CefDisplayHandler
extends CefBaseRefCounted

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


Method Summary
 virtual void OnAddressChange( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& url )
          Called when a frame's address has changed.
 virtual bool OnAutoResize( CefRefPtr< CefBrowser > browser, const CefSize& new_size )
          Called when auto-resize is enabled via CefBrowserHost::SetAutoResizeEnabled and the contents have auto-resized.
 virtual bool OnConsoleMessage( CefRefPtr< CefBrowser > browser, cef_log_severity_t level, const CefString& message, const CefString& source, int line )
          Called to display a console message.
 virtual void OnFaviconURLChange( CefRefPtr< CefBrowser > browser, const std::vector< CefString >& icon_urls )
          Called when the page icon changes.
 virtual void OnFullscreenModeChange( CefRefPtr< CefBrowser > browser, bool fullscreen )
          Called when web content in the page has toggled fullscreen mode.
 virtual void OnLoadingProgressChange( CefRefPtr< CefBrowser > browser, double progress )
          Called when the overall page loading progress has changed.
 virtual void OnStatusMessage( CefRefPtr< CefBrowser > browser, const CefString& value )
          Called when the browser receives a status message.
 virtual void OnTitleChange( CefRefPtr< CefBrowser > browser, const CefString& title )
          Called when the page title changes.
 virtual bool OnTooltip( CefRefPtr< CefBrowser > browser, CefString& text )
          Called when the browser is about to display a tooltip.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

OnAddressChange

public virtual void OnAddressChange( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& url );
Called when a frame's address has changed.

OnAutoResize

public virtual bool OnAutoResize( CefRefPtr< CefBrowser > browser, const CefSize& new_size );
Called when auto-resize is enabled via CefBrowserHost::SetAutoResizeEnabled and the contents have auto-resized. |new_size| will be the desired size in view coordinates. Return true if the resize was handled or false for default handling.

OnConsoleMessage

public virtual bool OnConsoleMessage( CefRefPtr< CefBrowser > browser, cef_log_severity_t level, const CefString& message, const CefString& source, int line );
Called to display a console message. Return true to stop the message from being output to the console.

OnFaviconURLChange

public virtual void OnFaviconURLChange( CefRefPtr< CefBrowser > browser, const std::vector< CefString >& icon_urls );
Called when the page icon changes.

OnFullscreenModeChange

public virtual void OnFullscreenModeChange( CefRefPtr< CefBrowser > browser, bool fullscreen );
Called when web content in the page has toggled fullscreen mode. If |fullscreen| is true the content will automatically be sized to fill the browser content area. If |fullscreen| is false the content will automatically return to its original size and position. The client is responsible for resizing the browser if desired.

OnLoadingProgressChange

public virtual void OnLoadingProgressChange( CefRefPtr< CefBrowser > browser, double progress );
Called when the overall page loading progress has changed. |progress| ranges from 0.0 to 1.0.

OnStatusMessage

public virtual void OnStatusMessage( CefRefPtr< CefBrowser > browser, const CefString& value );
Called when the browser receives a status message. |value| contains the text that will be displayed in the status message.

OnTitleChange

public virtual void OnTitleChange( CefRefPtr< CefBrowser > browser, const CefString& title );
Called when the page title changes.

OnTooltip

public virtual bool OnTooltip( CefRefPtr< CefBrowser > browser, CefString& text );
Called when the browser is about to display a tooltip. |text| contains the text that will be displayed in the tooltip. To handle the display of the tooltip yourself return true. Otherwise, you can optionally modify |text| and then return false to allow the browser to display the tooltip. When window rendering is disabled the application is responsible for drawing tooltips and the return value is ignored.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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