Exemplo n.º 1
0
        /// <summary>
        /// Retrieve this frame's display text 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 GetText(CfrStringVisitor visitor)
        {
            var call = new CfxFrameGetTextRemoteCall();

            call.@this   = RemotePtr.ptr;
            call.visitor = CfrObject.Unwrap(visitor).ptr;
            call.RequestExecution(RemotePtr.connection);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Retrieve this frame's display text 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 GetText(CfrStringVisitor visitor)
        {
            var connection = RemotePtr.connection;
            var call       = new CfxFrameGetTextRemoteCall();

            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);
        }