Ejemplo n.º 1
0
 internal static IntPtr Unwrap(CfxBase cfxBase)
 {
     if (cfxBase == null) {
         return IntPtr.Zero;
     } else {
         return cfxBase.NativePtr;
     }
 }
Ejemplo n.º 2
0
 static internal IntPtr Unwrap(CfxBase cfxBase)
 {
     if (cfxBase == null)
     {
         return(IntPtr.Zero);
     }
     else
     {
         return(cfxBase.NativePtr);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets the user data for this object and returns true (1) on success. Returns
 /// false (0) if this function is called incorrectly. This function can only be
 /// called on user created objects.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_v8_capi.h">cef/include/capi/cef_v8_capi.h</see>.
 /// </remarks>
 public bool SetUserData(CfxBase userData)
 {
     return(0 != CfxApi.cfx_v8value_set_user_data(NativePtr, CfxBase.Unwrap(userData)));
 }
Ejemplo n.º 4
0
 internal void Add(CfxBase obj)
 {
     // always locked by caller
     cache.Add(obj.nativePtrUnchecked, new WeakReference(obj, false));
 }