1. hindlemail
  2. CreateXulRunnerWrappers

Commits

hindlet  committed 5807c69

Upgrade to firefox 11

  • Participants
  • Parent commits dddbf33
  • Branches default

Comments (0)

Files changed (4)

File CreateXulRunnerWrappers.suo

Binary file modified.

File CreateXulRunnerWrappers/CreateXulRunnerWrappers.csproj.user

View file
 <?xml version="1.0" encoding="utf-8"?>
 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
-    <StartArguments>"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\firefox betas - 10.0b4"</StartArguments>
+    <StartArguments>"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\firefox betas - 11.0b5"</StartArguments>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
-    <StartArguments>"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\firefox betas - 10.0b4"</StartArguments>
+    <StartArguments>"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\firefox betas - 11.0b5"</StartArguments>
   </PropertyGroup>
 </Project>

File CreateXulRunnerWrappers/Program.cs

View file
 			string idlImpExecutable = @"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\IDLImp\bin\Debug\IDLImp.exe";
 			string configfiles = @"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\IDLImp\XpComTypeMappings\IDLImp.xml";
 			string targetNamespace = "Gecko";
-			string outputDirectory = @"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\geckofx-10.0\Skybound.Gecko\Generated";
+			string outputDirectory = @"C:\Users\hindlet\Documents\Visual Studio 2010\Projects\geckofx-11.0\Skybound.Gecko\Generated";
 			
 
 			string usage = String.Format("{0} <Path to idl's>", System.IO.Path.GetFileName(Application.ExecutablePath));
 			Console.WriteLine("Looking for idl files in {0}", args[0]);
 			string[] idlFiles = Directory.GetFiles(args[0], "*.idl", SearchOption.AllDirectories);
 			Console.WriteLine("Found {0} idl files", idlFiles.Length);
-
+			
 			if (idlFiles.Length == 0)
 				return;
 
 
 		}
 
+		static Dictionary<string, string> _interfaceToFileMap;
+
 		// TODO refactor made automatic by asking storing all interfaces in
 		// cs file.
 		public static string MapInterfaceToFile(string interfaceName)
 		{
-			Dictionary<string, string> interfaceToFileMap = new Dictionary<string, string>();
-			interfaceToFileMap.Add("nsIHandlerApp", "nsIMIMEInfo");
-			interfaceToFileMap.Add("nsIXULChromeRegistry", "nsIChromeRegistry");
-			interfaceToFileMap.Add("nsIXPointerResult", "nsIXPointer");
-			interfaceToFileMap.Add("nsIDOMSVGTextPositionElement", "nsIDOMSVGTextPositionElem");
-			interfaceToFileMap.Add("nsICacheEntryInfo", "nsICacheVisitor");
-			interfaceToFileMap.Add("nsIDOMXULLabeledControlElement", "nsIDOMXULLabeledControlEl");
-			interfaceToFileMap.Add("nsIDOMSVGTextPositioningElement", "nsIDOMSVGTextPositionElem");
-			interfaceToFileMap.Add("nsIDOMXULSelectControlElement", "nsIDOMXULSelectCntrlEl");
+			if (_interfaceToFileMap == null)
+			{
+				_interfaceToFileMap = new Dictionary<string, string>();
+				_interfaceToFileMap.Add("nsIHandlerApp", "nsIMIMEInfo");
+				_interfaceToFileMap.Add("nsIXULChromeRegistry", "nsIChromeRegistry");
+				_interfaceToFileMap.Add("nsIXPointerResult", "nsIXPointer");
+				_interfaceToFileMap.Add("nsIDOMSVGTextPositionElement", "nsIDOMSVGTextPositionElem");
+				_interfaceToFileMap.Add("nsICacheEntryInfo", "nsICacheVisitor");
+				_interfaceToFileMap.Add("nsIDOMXULLabeledControlElement", "nsIDOMXULLabeledControlEl");
+				_interfaceToFileMap.Add("nsIDOMSVGTextPositioningElement", "nsIDOMSVGTextPositionElem");
+				_interfaceToFileMap.Add("nsIDOMXULSelectControlElement", "nsIDOMXULSelectCntrlEl");
+				_interfaceToFileMap.Add("nsIEventInit", "nsIDOMEvent");
+				_interfaceToFileMap.Add("nsIUIEventInit", "nsIDOMUIEvent");
+			}
 
 			string result;
-			if (interfaceToFileMap.TryGetValue(interfaceName, out result))
+			if (_interfaceToFileMap.TryGetValue(interfaceName, out result))
 				return result;
 
 			return interfaceName;

File CreateXulRunnerWrappers/bin/Debug/CreateXulRunnerWrappers.pdb

Binary file modified.