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:
Marshall Greenblatt
2011-01-26 15:12:49 +00:00
parent ca3a392c33
commit e8436018ef
10 changed files with 84 additions and 0 deletions

View File

@@ -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.

View File

@@ -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)(

View File

@@ -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
{