Пример #1
0
        static public unsafe CefInitState Initialize()
        {
            CefWin.WriteDebugLine("cef_execute_process");
            App.AddRef();//why ? need add_ref for this function?
            int res = cef_execute_process(MainArgs.Ptr, App.Ptr, SendBoxInfo);

            if (res >= 0)
            {
                return(CefInitState.SubProcess);
            }

            CefWin.WriteDebugLine("cef_initialize");
            App.AddRef();//why ? need add_ref for this function?
            res = cef_initialize(MainArgs.Ptr, Settings.Ptr, App.Ptr, SendBoxInfo);

            if (res != 0)
            {
                return(CefInitState.Initialized);
            }

            return(CefInitState.Failed);
        }
Пример #2
0
 static public void Trace(string msg)
 {
     CefWin.WriteDebugLine(" * * * " + msg);
 }