C#调用WebKit.NET 源码和


C#调用WebKit.NET浏览网页,操作DOM
资源截图
代码片段和文件信息
/*
 * Copyright (c) 2009 Peter Nelson (charn.opcode@gmail.com)
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms with or without
 * modification are permitted provided that the following conditions are met:
 * 
 * * Redistributions of source code must retain the above copyright notice 
 *   this list of conditions and the following disclaimer.
 * * Redistributions in binary form must reproduce the above copyright notice 
 *   this list of conditions and the following disclaimer in the documentation 
 *   and/or other materials provided with the distribution.
 *   
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 
 * LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR 
 * CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS 
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN 
 * CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE 
 * POSSIBILITY OF SUCH DAMAGE.
*/

/* TypeNormalizer.cs -- this tool is used during the WebKit .NET build
 * process to replace references to _RemotableHandle with int32 in 
 * WebKit.Interop.dll.  This is required as it appears that MIDL would prefer
 * that we marshal values of type HDC to a reference to some undocumented 
 * _RemotableHandle structure which doesn‘t appear to work correctly.
 * Since an HDC on Win32 is simply a (void *) we can treat it as an int32
 * here. 
 *
 * TODO: Fix these to IntPtrs for 64-bit compat
*/

using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;

class TypeNormalizer
{
    static int Main(string[] args)
    {
        if (args.Length != 1)
        {
            Console.WriteLine(“No file specified“);
            return 1;
        }
        string file = File.ReadAllText(args[0]);
        file = file.Replace(“valuetype WebKit.Interop._RemotableHandle&“ “int32“);
        File.WriteAllText(args[0] file);
        return 0;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-src
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-srcin
     文件           0  2010-08-28 22:47  WebKit.NET-0.5-srcin.gitignore
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-srcdocs
     文件           0  2010-08-28 22:47  WebKit.NET-0.5-srcdocs.gitignore
     文件        1462  2010-08-28 22:47  WebKit.NET-0.5-srcLICENSE.txt
     文件         834  2010-08-28 22:47  WebKit.NET-0.5-srcREADME.txt
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-src ools
     文件        2473  2010-08-28 22:47  WebKit.NET-0.5-src oolsTypeNormalizer.cs
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-srcwebkit
     文件        1754  2010-08-28 22:47  WebKit.NET-0.5-srcWebKit.NET.sln
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-srcWebKitBrowser
     文件        2758  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserDoc.shfbproj
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-srcWebKitBrowserTest
     文件         120  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestapp.config
     文件        2169  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestDownloadForm.cs
     文件        3756  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestDownloadForm.Designer.cs
     文件        5814  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestDownloadForm.resx
     文件       10059  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestMainForm.cs
     文件       17911  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestMainForm.Designer.cs
     文件        6012  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestMainForm.resx
     文件        3770  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestNavigationBar.cs
     文件        9976  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestNavigationBar.Designer.cs
     文件        5814  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestNavigationBar.resx
     文件        1928  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestProgram.cs
     目录           0  2010-08-28 22:55  WebKit.NET-0.5-srcWebKitBrowserTestProperties
     文件        2930  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestPropertiesAssemblyInfo.cs
     文件        2863  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestPropertiesResources.Designer.cs
     文件        5612  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestPropertiesResources.resx
     文件        1102  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestPropertiesSettings.Designer.cs
     文件         249  2010-08-28 22:47  WebKit.NET-0.5-srcWebKitBrowserTestPropertiesSettings.settings
............此处省略326个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)