private void RaiseOnLoadingStateChange(object sender, CfxOnLoadingStateChangeEventArgs e) { var handler = m_OnLoadingStateChange; if (handler != null) { InvokeCallback(() => { handler(this, e); }); } }
internal static void EventCall(object sender, CfxOnLoadingStateChangeEventArgs e) { var call = new CfxOnLoadingStateChangeBrowserProcessCall(); call.sender = RemoteProxy.Wrap((CfxBase)sender); call.eventArgsId = AddEventArgs(e); call.RequestExecution(RemoteClient.connection); RemoveEventArgs(call.eventArgsId); }
internal static void on_loading_state_change(IntPtr gcHandlePtr, IntPtr browser, out int browser_release, int isLoading, int canGoBack, int canGoForward) { var self = (CfxLoadHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { browser_release = 1; return; } var e = new CfxOnLoadingStateChangeEventArgs(browser, isLoading, canGoBack, canGoForward); self.m_OnLoadingStateChange?.Invoke(self, e); e.m_isInvalid = true; browser_release = e.m_browser_wrapped == null? 1 : 0; }
internal static void on_loading_state_change(IntPtr gcHandlePtr, IntPtr browser, int isLoading, int canGoBack, int canGoForward) { var self = (CfxLoadHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { return; } var e = new CfxOnLoadingStateChangeEventArgs(browser, isLoading, canGoBack, canGoForward); var eventHandler = self.m_OnLoadingStateChange; if (eventHandler != null) { eventHandler(self, e); } e.m_isInvalid = true; if (e.m_browser_wrapped == null) { CfxApi.cfx_release(e.m_browser); } }
private void RaiseOnLoadingStateChange(object sender, CfxOnLoadingStateChangeEventArgs e) { var handler = m_OnLoadingStateChange; if (handler != null) { InvokeCallback(() => { handler(this, e); }); } }
internal static void EventCall(object sender, CfxOnLoadingStateChangeEventArgs e) { var call = new CfxOnLoadingStateChangeBrowserProcessCall(); call.sender = RemoteProxy.Wrap((CfxBase)sender); call.eventArgsId = AddEventArgs(e); call.RequestExecution(RemoteClient.connection); RemoveEventArgs(call.eventArgsId); }