コード例 #1
0
        // void (*)(_cef_app_t* self, _cef_scheme_registrar_t* registrar)*
        private static unsafe void OnRegisterCustomSchemesImpl(cef_app_t *self, cef_scheme_registrar_t *registrar)
        {
            var instance = GetInstance((IntPtr)self) as CefApp;

            if (instance == null || ((ICefAppPrivate)instance).AvoidOnRegisterCustomSchemes())
            {
                return;
            }
            instance.OnRegisterCustomSchemes(CefSchemeRegistrar.Wrap(CefSchemeRegistrar.Create, registrar));
        }
コード例 #2
0
 /// <summary>
 /// Provides an opportunity to register custom schemes. Do not keep a reference
 /// to the |registrar| object. This function is called on the main thread for
 /// each process and the registered schemes should be the same across all
 /// processes.
 /// </summary>
 protected internal unsafe virtual void OnRegisterCustomSchemes(CefSchemeRegistrar registrar)
 {
 }
コード例 #3
0
 /// <summary>
 /// Provides an opportunity to register custom schemes. Do not keep a reference
 /// to the |registrar| object. This function is called on the main thread for
 /// each process and the registered schemes should be the same across all
 /// processes.
 /// </summary>
 public unsafe virtual void OnRegisterCustomSchemes(CefSchemeRegistrar registrar)
 {
 }