internal CfxBrowserProcessHandler RetrieveBrowserProcessHandler() { var h = m_GetBrowserProcessHandler; if(h != null) { var e = new CfxGetBrowserProcessHandlerEventArgs(); h(this, e); return e.m_returnValue; } else { return null; } }
/// <summary> /// Retrieves the CfxBrowserProcessHandler provided by the event handler attached to the GetBrowserProcessHandler event, if any. /// Returns null if no event handler is attached. /// </summary> public CfxBrowserProcessHandler RetrieveBrowserProcessHandler() { var h = m_GetBrowserProcessHandler; if (h != null) { var e = new CfxGetBrowserProcessHandlerEventArgs(); h(this, e); return(e.m_returnValue); } else { return(null); } }
internal static void get_browser_process_handler(IntPtr gcHandlePtr, out IntPtr __retval) { var self = (CfxApp)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { __retval = default(IntPtr); return; } var e = new CfxGetBrowserProcessHandlerEventArgs(); self.m_GetBrowserProcessHandler?.Invoke(self, e); e.m_isInvalid = true; __retval = CfxBrowserProcessHandler.Unwrap(e.m_returnValue); }