comparison dwt/internal/cocoa/WebPolicyDecisionListener.d @ 45:d8635bb48c7c

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents 30a762abda2a
children
comparison
equal deleted inserted replaced
44:ca5e494f2bbf 45:d8635bb48c7c
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 *
11 * Port to the D programming language:
12 * Jacob Carlborg <doob@me.com>
10 *******************************************************************************/ 13 *******************************************************************************/
11 module dwt.internal.cocoa; 14 module dwt.internal.cocoa.WebPolicyDecisionListener;
15
16 import dwt.dwthelper.utils;
17 import cocoa = dwt.internal.cocoa.id;
18 import dwt.internal.cocoa.NSObject;
19 import dwt.internal.cocoa.OS;
20 import objc = dwt.internal.objc.runtime;
12 21
13 public class WebPolicyDecisionListener : NSObject { 22 public class WebPolicyDecisionListener : NSObject {
14 23
15 public WebPolicyDecisionListener(int id) { 24 public this() {
25 super();
26 }
27
28 public this(objc.id id) {
29 super(id);
30 }
31
32 public this(cocoa.id id) {
16 super(id); 33 super(id);
17 } 34 }
18 35
19 public void download() { 36 public void download() {
20 OS.objc_msgSend(id, OS.sel_download); 37 OS.objc_msgSend(id, OS.sel_download);