Mercurial > projects > dwt-mac
diff dwt/browser/MozillaDelegate.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | db5a898b2119 |
children | 540fa4e9974a |
line wrap: on
line diff
--- a/dwt/browser/MozillaDelegate.d Tue Oct 21 15:20:04 2008 +0200 +++ b/dwt/browser/MozillaDelegate.d Mon Dec 01 17:07:00 2008 +0100 @@ -1,5 +1,5 @@ -/******************************************************************************* - * Copyright (c) 2003, 2007 IBM Corporation and others. +/******************************************************************************* + * Copyright (c) 2003, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,7 +9,7 @@ * IBM Corporation - initial API and implementation * * Port to the D programming language: - * Jacob Carlborg <jacob.carlborg@gmail.com> + * Jacob Carlborg <doob@me.com> *******************************************************************************/ module dwt.browser.MozillaDelegate; @@ -31,7 +31,7 @@ this.browser = browser; } - static Browser findBrowser (int handle) { +static Browser findBrowser (int /*long*/ handle) { Display display = Display.getCurrent(); return cast(Browser) display.findWidget(handle); } @@ -51,7 +51,7 @@ // OS.CFRelease (cfString); // } // return chars; - + // TODO implement mbcsToWcs //return new String(buffer).toCharArray(); commented by Jacob Carlborg return cast(char[]) buffer.dup; // FIXME } @@ -74,6 +74,7 @@ // OS.CFRelease (cfString); // } // return buffer; + // TODO implement wcsToMbcs if (terminate) str ~= "\0"; @@ -81,7 +82,7 @@ return cast(byte[]) str.dup; // FIXME } - int getHandle () { +int /*long*/ getHandle () { return browser.view.id; } @@ -130,7 +131,7 @@ return false; } - void onDispose (int embedHandle) { +void onDispose (int /*long*/ embedHandle) { if (listener !is null) { browser.getDisplay().removeFilter(DWT.FocusIn, listener); browser.getShell().removeListener(DWT.Deactivate, listener); @@ -139,7 +140,7 @@ browser = null; } - void setSize (int embedHandle, int width, int height) { +void setSize (int /*long*/ embedHandle, int width, int height) { // TODO }