Exemplo n.º 1
0
        public uint CreateAndGetID(CefV8Value iJSObject)
        {
            return _CefV8Context.Evaluate(() =>
            {
                var value = iJSObject.GetValue("_globalId_");
                if (value.IsUInt) return value.GetUIntValue();

                iJSObject.SetValue("_globalId_", CefV8Value.CreateUInt(++_Count), CefV8PropertyAttribute.DontDelete | CefV8PropertyAttribute.ReadOnly | CefV8PropertyAttribute.DontEnum);
                return _Count;
            });
        }
Exemplo n.º 2
0
 public uint GetID(CefV8Value iJSObject)
 {
     return _CefV8Context.Evaluate(() => iJSObject.GetValue("_globalId_").GetUIntValue());
 }
Exemplo n.º 3
0
        public uint GetID(CefV8Value iJSObject)
        {
            if (iJSObject == null) return 0;

            return _CefV8Context.Evaluate(() => iJSObject.GetValue("_MappedId").GetUIntValue());
        }