1 module org.eclipse.swt.internal.mozilla.nsIDOMWindow; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 import org.eclipse.swt.internal.mozilla.nsIDOMWindowCollection; 10 import org.eclipse.swt.internal.mozilla.nsIDOMDocument; 11 import org.eclipse.swt.internal.mozilla.nsIDOMBarProp; 12 import org.eclipse.swt.internal.mozilla.nsISelection; 13 import org.eclipse.swt.internal.mozilla.nsStringAPI; 14 15 alias PRUint64 DOMTimeStamp; 16 17 const char[] NS_IDOMWINDOW_IID_STR = "a6cf906b-15b3-11d2-932e-00805f8add32"; 18 19 const nsIID NS_IDOMWINDOW_IID= 20 {0xa6cf906b, 0x15b3, 0x11d2, 21 [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]}; 22 23 interface nsIDOMWindow : nsISupports { 24 25 static const char[] IID_STR = NS_IDOMWINDOW_IID_STR; 26 static const nsIID IID = NS_IDOMWINDOW_IID; 27 28 extern(System): 29 nsresult GetDocument(nsIDOMDocument *aDocument); 30 nsresult GetParent(nsIDOMWindow *aParent); 31 nsresult GetTop(nsIDOMWindow *aTop); 32 nsresult GetScrollbars(nsIDOMBarProp *aScrollbars); 33 nsresult GetFrames(nsIDOMWindowCollection *aFrames); 34 nsresult GetName(nsAString * aName); 35 nsresult SetName(nsAString * aName); 36 nsresult GetTextZoom(float *aTextZoom); 37 nsresult SetTextZoom(float aTextZoom); 38 nsresult GetScrollX(PRInt32 *aScrollX); 39 nsresult GetScrollY(PRInt32 *aScrollY); 40 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll); 41 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif); 42 nsresult GetSelection(nsISelection *_retval); 43 nsresult ScrollByLines(PRInt32 numLines); 44 nsresult ScrollByPages(PRInt32 numPages); 45 nsresult SizeToContent(); 46 47 } 48