Example #1
0
        // void (*)(_cef_app_t* self, const cef_string_t* process_type, _cef_command_line_t* command_line)*
        private static unsafe void OnBeforeCommandLineProcessingImpl(cef_app_t *self, cef_string_t *process_type, cef_command_line_t *command_line)
        {
            var instance = GetInstance((IntPtr)self) as CefApp;

            if (instance == null || ((ICefAppPrivate)instance).AvoidOnBeforeCommandLineProcessing())
            {
                ReleaseIfNonNull((cef_base_ref_counted_t *)command_line);
                return;
            }
            instance.OnBeforeCommandLineProcessing(CefString.Read(process_type), CefCommandLine.Wrap(CefCommandLine.Create, command_line));
        }
        // void (*)(_cef_browser_process_handler_t* self, _cef_command_line_t* command_line)*
        private static unsafe void OnBeforeChildProcessLaunchImpl(cef_browser_process_handler_t *self, cef_command_line_t *command_line)
        {
            var instance = GetInstance((IntPtr)self) as CefBrowserProcessHandler;

            if (instance == null || ((ICefBrowserProcessHandlerPrivate)instance).AvoidOnBeforeChildProcessLaunch())
            {
                ReleaseIfNonNull((cef_base_ref_counted_t *)command_line);
                return;
            }
            instance.OnBeforeChildProcessLaunch(CefCommandLine.Wrap(CefCommandLine.Create, command_line));
        }
Example #3
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public unsafe virtual CefCommandLine Copy()
 {
     return(SafeCall(CefCommandLine.Wrap(CefCommandLine.Create, NativeInstance->Copy())));
 }