mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
9ad549aeef
r=sdagley a=chofmann. Add support for GetAttention API to nsIDOMWindow. r=vidur, a=chofmann. To do, make call to WebShell from nsIDOMWindow, this will come once travis lands some webshell code.
96 lines
3.6 KiB
Plaintext
96 lines
3.6 KiB
Plaintext
interface Window {
|
|
/* IID: { 0xa6cf906b, 0x15b3, 0x11d2, \
|
|
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } } */
|
|
readonly attribute Window window;
|
|
readonly attribute Window self;
|
|
readonly attribute Document document;
|
|
readonly attribute Navigator navigator;
|
|
readonly attribute Screen screen;
|
|
readonly attribute History history;
|
|
readonly attribute Window parent;
|
|
readonly attribute Window top;
|
|
readonly attribute Window content;
|
|
readonly attribute BarProp menubar;
|
|
readonly attribute BarProp toolbar;
|
|
readonly attribute BarProp locationbar;
|
|
readonly attribute BarProp personalbar;
|
|
readonly attribute BarProp statusbar;
|
|
readonly attribute BarProp scrollbars;
|
|
readonly attribute BarProp directories;
|
|
readonly attribute boolean closed;
|
|
readonly attribute WindowCollection frames;
|
|
readonly attribute xpidl nsIControllers controllers;
|
|
attribute Window opener;
|
|
attribute wstring status;
|
|
attribute wstring defaultStatus;
|
|
attribute wstring name;
|
|
attribute long innerWidth;
|
|
attribute long innerHeight;
|
|
attribute long outerWidth;
|
|
attribute long outerHeight;
|
|
attribute long screenX;
|
|
attribute long screenY;
|
|
attribute long pageXOffset;
|
|
attribute long pageYOffset;
|
|
readonly attribute long scrollX;
|
|
readonly attribute long scrollY;
|
|
|
|
void dump(in wstring str);
|
|
void alert(/* ... */);
|
|
boolean confirm(/* ... */);
|
|
DOMString prompt(/* ... */);
|
|
void focus();
|
|
void blur();
|
|
void back();
|
|
void forward();
|
|
void home();
|
|
void stop();
|
|
void print();
|
|
|
|
void moveTo(in long xPos, in long yPos);
|
|
void moveBy(in long xDif, in long yDif);
|
|
void resizeTo(in long width, in long height);
|
|
void resizeBy(in long widthDif, in long heightDif);
|
|
void sizeToContent();
|
|
void GetAttention();
|
|
void scroll(in long xScroll, in long yScroll);
|
|
void scrollTo(in long xScroll, in long yScroll);
|
|
void scrollBy(in long xScrollDif, in long yScrollDif);
|
|
|
|
void clearTimeout(in long timerID);
|
|
void clearInterval(in long timerID);
|
|
long setTimeout(/* ... */);
|
|
long setInterval(/* ... */);
|
|
|
|
void captureEvents(in long eventFlags);
|
|
void releaseEvents(in long eventFlags);
|
|
void routeEvent(in Event evt);
|
|
void enableExternalCapture();
|
|
void disableExternalCapture();
|
|
|
|
Window createPopup(in Element element, in Element popupContent,
|
|
in long xPos, in long yPos,
|
|
in DOMString popupType, in DOMString anchorAlignment,
|
|
in DOMString popupAlignment);
|
|
|
|
Window open(/* ... */);
|
|
Window openDialog(/* ... */);
|
|
noscript void close();
|
|
void close(/* ... */);
|
|
};
|
|
|
|
interface EventTarget {
|
|
/* IID: { 0x1c773b30, 0xd1cf, 0x11d2, \
|
|
{ 0xbd, 0x95, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 } } */
|
|
|
|
void addEventListener(in DOMString type, in function EventListener listener, in boolean useCapture);
|
|
void removeEventListener(in DOMString type, in function EventListener listener, in boolean useCapture);
|
|
};
|
|
|
|
interface AbstractView {
|
|
/* IID: { 0xf51ebade, 0x8b1a, 0x11d3, \
|
|
{ 0xaa, 0xe7, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 } } */
|
|
|
|
noscript readonly attribute Document document;
|
|
};
|