internal static void RaiseOnRegisterCustomSchemes(CfxOnRegisterCustomSchemesEventArgs e) { if (OnRegisterCustomSchemes != null) { OnRegisterCustomSchemes.Invoke(e); } }
internal static void EventCall(object sender, CfxOnRegisterCustomSchemesEventArgs e) { var call = new CfxOnRegisterCustomSchemesBrowserProcessCall(); call.sender = RemoteProxy.Wrap((CfxBase)sender); call.eventArgsId = AddEventArgs(e); call.RequestExecution(RemoteClient.connection); RemoveEventArgs(call.eventArgsId); }
internal static void RaiseOnRegisterCustomSchemes(CfxOnRegisterCustomSchemesEventArgs e) { var handler = OnRegisterCustomSchemes; if (handler != null) { handler(e); } }
private void ChromiumWebBrowser_OnRegisterCustomSchemes(CfxOnRegisterCustomSchemesEventArgs e) { // e.Registrar.AddCustomScheme("pack", false, false, false, false, false, false); //e.Registrar.AddCustomScheme("pack", false, false, false, true, true, false); //e.Registrar.AddCustomScheme("pack", false, false, false, true, true, true); //e.Registrar.AddCustomScheme("pack", false, true, false, false, false, false); //e.Registrar.AddCustomScheme("pack", false, false, false, true, false, true); //e.Registrar.AddCustomScheme("pack", false, false, false, false, false, true); var ok = e.Registrar.AddCustomScheme("pack", false, true, false, false, false, true); }
internal static void on_register_custom_schemes(IntPtr gcHandlePtr, IntPtr registrar, out int registrar_release) { var self = (CfxApp)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { registrar_release = 1; return; } var e = new CfxOnRegisterCustomSchemesEventArgs(registrar); self.m_OnRegisterCustomSchemes?.Invoke(self, e); e.m_isInvalid = true; registrar_release = e.m_registrar_wrapped == null? 1 : 0; }
internal static void on_register_custom_schemes(IntPtr gcHandlePtr, IntPtr registrar) { var self = (CfxApp)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { return; } var e = new CfxOnRegisterCustomSchemesEventArgs(); e.m_registrar = registrar; self.m_OnRegisterCustomSchemes?.Invoke(self, e); e.m_isInvalid = true; if (e.m_registrar_wrapped != null) { e.m_registrar_wrapped.Dispose(); } }
internal static void on_register_custom_schemes(IntPtr gcHandlePtr, IntPtr registrar) { var self = (CfxApp)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { return; } var e = new CfxOnRegisterCustomSchemesEventArgs(registrar); var eventHandler = self.m_OnRegisterCustomSchemes; if (eventHandler != null) { eventHandler(self, e); } e.m_isInvalid = true; if (e.m_registrar_wrapped == null) { CfxApi.cfx_release(e.m_registrar); } }
internal static void RaiseOnRegisterCustomSchemes(CfxOnRegisterCustomSchemesEventArgs e) { OnRegisterCustomSchemes?.Invoke(e); }