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

(default)
Class CefJSDialogHandler

CefBase
   |
   +--CefJSDialogHandler

   in cef_jsdialog_handler.h

class CefJSDialogHandler
extends CefBase

Implement this interface to handle events related to JavaScript dialogs. The methods of this class will be called on the UI thread.


Method Summary
 virtual bool OnJSAlert( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& message )
          Called to run a JavaScript alert message.
 virtual bool OnJSConfirm( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& message, bool& retval )
          Called to run a JavaScript confirm request.
 virtual bool OnJSPrompt( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& message, const CefString& defaultValue, bool& retval, CefString& result )
          Called to run a JavaScript prompt request.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

OnJSAlert

public virtual bool OnJSAlert( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& message );
Called to run a JavaScript alert message. Return false to display the default alert or true if you displayed a custom alert.

OnJSConfirm

public virtual bool OnJSConfirm( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& message, bool& retval );
Called to run a JavaScript confirm request. Return false to display the default alert or true if you displayed a custom alert. If you handled the alert set |retval| to true if the user accepted the confirmation.

OnJSPrompt

public virtual bool OnJSPrompt( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const CefString& message, const CefString& defaultValue, bool& retval, CefString& result );
Called to run a JavaScript prompt request. Return false to display the default prompt or true if you displayed a custom prompt. If you handled the prompt set |retval| to true if the user accepted the prompt and request and |result| to the resulting value.

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

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