mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefHandler::HandleStatus for status messages, mouse over URLs and keyboard focus URLs (issue #61).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@169 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -842,6 +842,17 @@ public:
|
||||
/*--cef()--*/
|
||||
virtual RetVal HandleTooltip(CefRefPtr<CefBrowser> browser,
|
||||
CefString& text) =0;
|
||||
|
||||
// Status message types.
|
||||
typedef cef_handler_statustype_t StatusType;
|
||||
|
||||
// Event called when the browser has a status message. |text| contains the
|
||||
// text that will be displayed in the status message and |type| indicates the
|
||||
// status message type. The return value is currently ignored.
|
||||
/*--cef()--*/
|
||||
virtual RetVal HandleStatus(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& value,
|
||||
StatusType type) =0;
|
||||
|
||||
// Called to display a console message. Return RV_HANDLED to stop the message
|
||||
// from being output to the console.
|
||||
|
@@ -618,6 +618,13 @@ typedef struct _cef_handler_t
|
||||
enum cef_retval_t (CEF_CALLBACK *handle_tooltip)(struct _cef_handler_t* self,
|
||||
struct _cef_browser_t* browser, cef_string_t* text);
|
||||
|
||||
// Event called when the browser has a status message. |text| contains the
|
||||
// text that will be displayed in the status message and |type| indicates the
|
||||
// status message type. The return value is currently ignored.
|
||||
enum cef_retval_t (CEF_CALLBACK *handle_status)(struct _cef_handler_t* self,
|
||||
struct _cef_browser_t* browser, const cef_string_t* value,
|
||||
enum cef_handler_statustype_t type);
|
||||
|
||||
// Called to display a console message. Return RV_HANDLED to stop the message
|
||||
// from being output to the console.
|
||||
enum cef_retval_t (CEF_CALLBACK *handle_console_message)(
|
||||
|
@@ -515,6 +515,14 @@ enum cef_xml_node_type_t
|
||||
XML_NODE_COMMENT,
|
||||
};
|
||||
|
||||
// Status message types.
|
||||
enum cef_handler_statustype_t
|
||||
{
|
||||
STATUSTYPE_TEXT = 0,
|
||||
STATUSTYPE_MOUSEOVER_URL,
|
||||
STATUSTYPE_KEYBOARD_FOCUS_URL,
|
||||
};
|
||||
|
||||
// Popup window features.
|
||||
typedef struct _cef_popup_features_t
|
||||
{
|
||||
|
Reference in New Issue
Block a user