示例#1
0
        /// <summary>
        /// Returns the current (top) context object in the V8 context stack.
        /// </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 static CfrV8Context GetCurrentContext()
        {
            var call = new CfxV8ContextGetCurrentContextRenderProcessCall();

            call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
            return(CfrV8Context.Wrap(call.__retval));
        }
示例#2
0
 /// <summary>
 /// Returns the current (top) context object in the V8 context stack.
 /// </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 static CfrV8Context GetCurrentContext()
 {
     var call = new CfxV8ContextGetCurrentContextRenderProcessCall();
     call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
     return CfrV8Context.Wrap(call.__retval);
 }