public static void Free(cef_window_info_t_mac *ptr)
 {
     if (ptr != null)
     {
         libcef.string_clear(&ptr->window_name);
         Marshal.FreeHGlobal((IntPtr)ptr);
     }
 }
        public CefWindowInfoMacImpl(cef_window_info_t* ptr)
            : base(false)
        {
            if (CefRuntime.Platform != CefRuntimePlatform.MacOSX)
                throw new InvalidOperationException();

            _self = (cef_window_info_t_mac*)ptr;
        }
Example #3
0
        public CefWindowInfoMacImpl(cef_window_info_t *ptr)
            : base(false)
        {
            if (CefRuntime.Platform != CefRuntimePlatform.MacOS)
            {
                throw new InvalidOperationException();
            }

            _self = (cef_window_info_t_mac *)ptr;
        }
Example #4
0
 protected internal override void DisposeNativePointer()
 {
     cef_window_info_t_mac.Free(_self);
     _self = null;
 }
Example #5
0
 public CefWindowInfoMacImpl()
     : base(true)
 {
     _self = cef_window_info_t_mac.Alloc();
 }
 protected internal override void DisposeNativePointer()
 {
     cef_window_info_t_mac.Free(_self);
     _self = null;
 }
 public CefWindowInfoMacImpl()
     : base(true)
 {
     _self = cef_window_info_t_mac.Alloc();
 }