Exemple #1
0
        /// <summary>
        /// Retrieve this frame's HTML source as a string sent to the specified
        /// visitor.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_frame_capi.h">cef/include/capi/cef_frame_capi.h</see>.
        /// </remarks>
        public void GetSource(CfrStringVisitor visitor)
        {
            var call = new CfxFrameGetSourceRemoteCall();

            call.@this   = RemotePtr.ptr;
            call.visitor = CfrObject.Unwrap(visitor).ptr;
            call.RequestExecution(RemotePtr.connection);
        }
Exemple #2
0
        /// <summary>
        /// Retrieve this frame's HTML source as a string sent to the specified
        /// visitor.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_frame_capi.h">cef/include/capi/cef_frame_capi.h</see>.
        /// </remarks>
        public void GetSource(CfrStringVisitor visitor)
        {
            var connection = RemotePtr.connection;
            var call       = new CfxFrameGetSourceRemoteCall();

            call.@this = RemotePtr.ptr;
            if (!CfrObject.CheckConnection(visitor, connection))
            {
                throw new ArgumentException("Render process connection mismatch.", "visitor");
            }
            call.visitor = CfrObject.Unwrap(visitor).ptr;
            call.RequestExecution(connection);
        }