Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIDOMWindow.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIDOMWindow.d Mon Mar 02 14:44:16 2009 +0100 @@ -0,0 +1,46 @@ +module org.eclipse.swt.internal.mozilla.nsIDOMWindow; + +import org.eclipse.swt.internal.mozilla.Common; +import org.eclipse.swt.internal.mozilla.nsID; +import org.eclipse.swt.internal.mozilla.nsISupports; + +import org.eclipse.swt.internal.mozilla.nsIDOMWindowCollection; +import org.eclipse.swt.internal.mozilla.nsIDOMDocument; +import org.eclipse.swt.internal.mozilla.nsIDOMBarProp; +import org.eclipse.swt.internal.mozilla.nsISelection; +import org.eclipse.swt.internal.mozilla.nsStringAPI; + +alias PRUint64 DOMTimeStamp; + +const char[] NS_IDOMWINDOW_IID_STR = "a6cf906b-15b3-11d2-932e-00805f8add32"; + +const nsIID NS_IDOMWINDOW_IID= + {0xa6cf906b, 0x15b3, 0x11d2, + [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]}; + +interface nsIDOMWindow : nsISupports { + + static const char[] IID_STR = NS_IDOMWINDOW_IID_STR; + static const nsIID IID = NS_IDOMWINDOW_IID; + +extern(System): + nsresult GetDocument(nsIDOMDocument *aDocument); + nsresult GetParent(nsIDOMWindow *aParent); + nsresult GetTop(nsIDOMWindow *aTop); + nsresult GetScrollbars(nsIDOMBarProp *aScrollbars); + nsresult GetFrames(nsIDOMWindowCollection *aFrames); + nsresult GetName(nsAString * aName); + nsresult SetName(nsAString * aName); + nsresult GetTextZoom(float *aTextZoom); + nsresult SetTextZoom(float aTextZoom); + nsresult GetScrollX(PRInt32 *aScrollX); + nsresult GetScrollY(PRInt32 *aScrollY); + nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll); + nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif); + nsresult GetSelection(nsISelection *_retval); + nsresult ScrollByLines(PRInt32 numLines); + nsresult ScrollByPages(PRInt32 numPages); + nsresult SizeToContent(); + +} +