Implement CefDisplayHandler OnStatusMessage and OnConsoleMessage callbacks (issue #662).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@772 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-09-07 21:01:27 +00:00
parent 6834d879d3
commit 0d086ee6fb
8 changed files with 39 additions and 23 deletions

View File

@@ -91,8 +91,7 @@ typedef struct _cef_display_handler_t {
// status message type.
///
void (CEF_CALLBACK *on_status_message)(struct _cef_display_handler_t* self,
struct _cef_browser_t* browser, const cef_string_t* value,
enum cef_handler_statustype_t type);
struct _cef_browser_t* browser, const cef_string_t* value);
///
// Called to display a console message. Return true (1) to stop the message

View File

@@ -49,8 +49,6 @@
/*--cef(source=client)--*/
class CefDisplayHandler : public virtual CefBase {
public:
typedef cef_handler_statustype_t StatusType;
///
// Called when the loading state has changed.
///
@@ -92,8 +90,7 @@ class CefDisplayHandler : public virtual CefBase {
///
/*--cef(optional_param=value)--*/
virtual void OnStatusMessage(CefRefPtr<CefBrowser> browser,
const CefString& value,
StatusType type) {}
const CefString& value) {}
///
// Called to display a console message. Return true to stop the message from

View File

@@ -1199,15 +1199,6 @@ 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.
///