public static cef_settings_t* Alloc()
 {
     var ptr = (cef_settings_t*)Marshal.AllocHGlobal(_sizeof);
     *ptr = new cef_settings_t();
     ptr->size = (UIntPtr)_sizeof;
     return ptr;
 }
        public static cef_settings_t *Alloc()
        {
            var ptr = (cef_settings_t *)Marshal.AllocHGlobal(_sizeof);

            *ptr = new cef_settings_t();
            ptr->size = (UIntPtr)_sizeof;
            return(ptr);
        }
 internal static void Free(cef_settings_t* ptr)
 {
     Clear((cef_settings_t*)ptr);
     cef_settings_t.Free((cef_settings_t*)ptr);
 }
 private static void Clear(cef_settings_t* ptr)
 {
     libcef.string_clear(&ptr->browser_subprocess_path);
     libcef.string_clear(&ptr->cache_path);
     libcef.string_clear(&ptr->user_agent);
     libcef.string_clear(&ptr->product_version);
     libcef.string_clear(&ptr->locale);
     libcef.string_clear(&ptr->log_file);
     libcef.string_clear(&ptr->javascript_flags);
     libcef.string_clear(&ptr->resources_dir_path);
     libcef.string_clear(&ptr->locales_dir_path);
 }
Exemple #5
0
 public static extern int initialize(cef_main_args_t* args, cef_settings_t* settings, cef_app_t* application, void* windows_sandbox_info);
 public static void Free(cef_settings_t* ptr)
 {
     Marshal.FreeHGlobal((IntPtr)ptr);
 }
 public static extern int initialize(cef_main_args_t* args, cef_settings_t* settings, cef_app_t* application);