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