/// <summary> /// Called when the browser receives a status message. /// |text| contains the text that will be displayed in the status message and |type| indicates the status message type. /// </summary> private void on_status_message(cef_display_handler_t* self, cef_browser_t* browser, /*const*/ cef_string_t* value, cef_handler_statustype_t type) { ThrowIfObjectDisposed(); // TODO: we can do not expose this event if same message arrived -> no needed creating proxy, but if we do not create proxy we must call releaseref // also this optimization can be done if we store state per-browser, not per-handler // or we can do it per-handler var m_browser = CefBrowser.From(browser); var m_value = cef_string_t.ToString(value); var m_type = (CefHandlerStatusType)type; this.OnStatusMessage(m_browser, m_value, m_type); }
/// <summary> /// Called when the browser receives a status message. /// |text| contains the text that will be displayed in the status message and |type| indicates the status message type. /// </summary> private void on_status_message(cef_display_handler_t *self, cef_browser_t *browser, /*const*/ cef_string_t *value, cef_handler_statustype_t type) { ThrowIfObjectDisposed(); // TODO: we can do not expose this event if same message arrived -> no needed creating proxy, but if we do not create proxy we must call releaseref // also this optimization can be done if we store state per-browser, not per-handler // or we can do it per-handler var m_browser = CefBrowser.From(browser); var m_value = cef_string_t.ToString(value); var m_type = (CefHandlerStatusType)type; this.OnStatusMessage(m_browser, m_value, m_type); }