comparison dwt/browser/Download_1_8.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children d8635bb48c7c
comparison
equal deleted inserted replaced
6:b903c16b6f48 7:e831403a80a9
65 65
66 download = new XPCOMObject (new int[] {2, 0, 0, 4, 6, 3, 4, 3, is32 ? 10 : 6, is32 ? 8 : 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}) { 66 download = new XPCOMObject (new int[] {2, 0, 0, 4, 6, 3, 4, 3, is32 ? 10 : 6, is32 ? 8 : 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}) {
67 public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);} 67 public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);}
68 public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} 68 public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();}
69 public int /*long*/ method2 (int /*long*/[] args) {return Release ();} 69 public int /*long*/ method2 (int /*long*/[] args) {return Release ();}
70 public int /*long*/ method3 (int /*long*/[] args) {return OnStateChange (args[0], args[1], (int)/*64*/args[2], (int)/*64*/args[3]);} 70 public int /*long*/ method3 (int /*long*/[] args) {return OnStateChange (args[0], args[1], cast(int)/*64*/args[2], cast(int)/*64*/args[3]);}
71 public int /*long*/ method4 (int /*long*/[] args) {return OnProgressChange (args[0], args[1], (int)/*64*/args[2], (int)/*64*/args[3], (int)/*64*/args[4], (int)/*64*/args[5]);} 71 public int /*long*/ method4 (int /*long*/[] args) {return OnProgressChange (args[0], args[1], cast(int)/*64*/args[2], cast(int)/*64*/args[3], cast(int)/*64*/args[4], cast(int)/*64*/args[5]);}
72 public int /*long*/ method5 (int /*long*/[] args) {return OnLocationChange (args[0], args[1], args[2]);} 72 public int /*long*/ method5 (int /*long*/[] args) {return OnLocationChange (args[0], args[1], args[2]);}
73 public int /*long*/ method6 (int /*long*/[] args) {return OnStatusChange (args[0], args[1], (int)/*64*/args[2], args[3]);} 73 public int /*long*/ method6 (int /*long*/[] args) {return OnStatusChange (args[0], args[1], cast(int)/*64*/args[2], args[3]);}
74 public int /*long*/ method7 (int /*long*/[] args) {return OnSecurityChange (args[0], args[1], (int)/*64*/args[2]);} 74 public int /*long*/ method7 (int /*long*/[] args) {return OnSecurityChange (args[0], args[1], cast(int)/*64*/args[2]);}
75 public int /*long*/ method8 (int /*long*/[] args) { 75 public int /*long*/ method8 (int /*long*/[] args) {
76 if (args.length is 10) { 76 if (args.length is 10) {
77 return OnProgressChange64_32 (args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]); 77 return OnProgressChange64_32 (args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]);
78 } else { 78 } else {
79 return OnProgressChange64 (args[0], args[1], args[2], args[3], args[4], args[5]); 79 return OnProgressChange64 (args[0], args[1], args[2], args[3], args[4], args[5]);
100 100
101 progressDialog = new XPCOMObject (new int[] {2, 0, 0, 4, 6, 3, 4, 3, is32 ? 10 : 6, is32 ? 8 : 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}) { 101 progressDialog = new XPCOMObject (new int[] {2, 0, 0, 4, 6, 3, 4, 3, is32 ? 10 : 6, is32 ? 8 : 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}) {
102 public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);} 102 public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);}
103 public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} 103 public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();}
104 public int /*long*/ method2 (int /*long*/[] args) {return Release ();} 104 public int /*long*/ method2 (int /*long*/[] args) {return Release ();}
105 public int /*long*/ method3 (int /*long*/[] args) {return OnStateChange (args[0], args[1], (int)/*64*/args[2], (int)/*64*/args[3]);} 105 public int /*long*/ method3 (int /*long*/[] args) {return OnStateChange (args[0], args[1], cast(int)/*64*/args[2], cast(int)/*64*/args[3]);}
106 public int /*long*/ method4 (int /*long*/[] args) {return OnProgressChange (args[0], args[1], (int)/*64*/args[2], (int)/*64*/args[3], (int)/*64*/args[4], (int)/*64*/args[5]);} 106 public int /*long*/ method4 (int /*long*/[] args) {return OnProgressChange (args[0], args[1], cast(int)/*64*/args[2], cast(int)/*64*/args[3], cast(int)/*64*/args[4], cast(int)/*64*/args[5]);}
107 public int /*long*/ method5 (int /*long*/[] args) {return OnLocationChange (args[0], args[1], args[2]);} 107 public int /*long*/ method5 (int /*long*/[] args) {return OnLocationChange (args[0], args[1], args[2]);}
108 public int /*long*/ method6 (int /*long*/[] args) {return OnStatusChange (args[0], args[1], (int)/*64*/args[2], args[3]);} 108 public int /*long*/ method6 (int /*long*/[] args) {return OnStatusChange (args[0], args[1], cast(int)/*64*/args[2], args[3]);}
109 public int /*long*/ method7 (int /*long*/[] args) {return OnSecurityChange (args[0], args[1], (int)/*64*/args[2]);} 109 public int /*long*/ method7 (int /*long*/[] args) {return OnSecurityChange (args[0], args[1], cast(int)/*64*/args[2]);}
110 public int /*long*/ method8 (int /*long*/[] args) { 110 public int /*long*/ method8 (int /*long*/[] args) {
111 if (args.length is 10) { 111 if (args.length is 10) {
112 return OnProgressChange64_32 (args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]); 112 return OnProgressChange64_32 (args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]);
113 } else { 113 } else {
114 return OnProgressChange64 (args[0], args[1], args[2], args[3], args[4], args[5]); 114 return OnProgressChange64 (args[0], args[1], args[2], args[3], args[4], args[5]);
131 public int /*long*/ method17 (int /*long*/[] args) {return GetDisplayName (args[0]);} 131 public int /*long*/ method17 (int /*long*/[] args) {return GetDisplayName (args[0]);}
132 public int /*long*/ method18 (int /*long*/[] args) {return GetStartTime (args[0]);} 132 public int /*long*/ method18 (int /*long*/[] args) {return GetStartTime (args[0]);}
133 public int /*long*/ method19 (int /*long*/[] args) {return GetMIMEInfo (args[0]);} 133 public int /*long*/ method19 (int /*long*/[] args) {return GetMIMEInfo (args[0]);}
134 public int /*long*/ method20 (int /*long*/[] args) {return Open (args[0]);} 134 public int /*long*/ method20 (int /*long*/[] args) {return Open (args[0]);}
135 public int /*long*/ method21 (int /*long*/[] args) {return GetCancelDownloadOnClose (args[0]);} 135 public int /*long*/ method21 (int /*long*/[] args) {return GetCancelDownloadOnClose (args[0]);}
136 public int /*long*/ method22 (int /*long*/[] args) {return SetCancelDownloadOnClose ((int)/*64*/args[0]);} 136 public int /*long*/ method22 (int /*long*/[] args) {return SetCancelDownloadOnClose (cast(int)/*64*/args[0]);}
137 public int /*long*/ method23 (int /*long*/[] args) {return GetObserver (args[0]);} 137 public int /*long*/ method23 (int /*long*/[] args) {return GetObserver (args[0]);}
138 public int /*long*/ method24 (int /*long*/[] args) {return SetObserver (args[0]);} 138 public int /*long*/ method24 (int /*long*/[] args) {return SetObserver (args[0]);}
139 public int /*long*/ method25 (int /*long*/[] args) {return GetDialog (args[0]);} 139 public int /*long*/ method25 (int /*long*/[] args) {return GetDialog (args[0]);}
140 public int /*long*/ method26 (int /*long*/[] args) {return SetDialog (args[0]);} 140 public int /*long*/ method26 (int /*long*/[] args) {return SetDialog (args[0]);}
141 }; 141 };
142 142
143 webProgressListener = new XPCOMObject (new int[] {2, 0, 0, 4, 6, 3, 4, 3}) { 143 webProgressListener = new XPCOMObject (new int[] {2, 0, 0, 4, 6, 3, 4, 3}) {
144 public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);} 144 public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);}
145 public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} 145 public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();}
146 public int /*long*/ method2 (int /*long*/[] args) {return Release ();} 146 public int /*long*/ method2 (int /*long*/[] args) {return Release ();}
147 public int /*long*/ method3 (int /*long*/[] args) {return OnStateChange (args[0], args[1], (int)/*64*/args[2], (int)/*64*/args[3]);} 147 public int /*long*/ method3 (int /*long*/[] args) {return OnStateChange (args[0], args[1], cast(int)/*64*/args[2], cast(int)/*64*/args[3]);}
148 public int /*long*/ method4 (int /*long*/[] args) {return OnProgressChange (args[0], args[1], (int)/*64*/args[2], (int)/*64*/args[3], (int)/*64*/args[4], (int)/*64*/args[5]);} 148 public int /*long*/ method4 (int /*long*/[] args) {return OnProgressChange (args[0], args[1], cast(int)/*64*/args[2], cast(int)/*64*/args[3], cast(int)/*64*/args[4], cast(int)/*64*/args[5]);}
149 public int /*long*/ method5 (int /*long*/[] args) {return OnLocationChange (args[0], args[1], args[2]);} 149 public int /*long*/ method5 (int /*long*/[] args) {return OnLocationChange (args[0], args[1], args[2]);}
150 public int /*long*/ method6 (int /*long*/[] args) {return OnStatusChange (args[0], args[1], (int)/*64*/args[2], args[3]);} 150 public int /*long*/ method6 (int /*long*/[] args) {return OnStatusChange (args[0], args[1], cast(int)/*64*/args[2], args[3]);}
151 public int /*long*/ method7 (int /*long*/[] args) {return OnSecurityChange (args[0], args[1], (int)/*64*/args[2]);} 151 public int /*long*/ method7 (int /*long*/[] args) {return OnSecurityChange (args[0], args[1], cast(int)/*64*/args[2]);}
152 }; 152 };
153 } 153 }
154 154
155 void disposeCOMInterfaces() { 155 void disposeCOMInterfaces() {
156 if (supports !is null) { 156 if (supports !is null) {