Interface cleanup, not part of the build.

This commit is contained in:
jst%netscape.com 2001-02-09 11:20:07 +00:00
Родитель 83e0281435
Коммит 74cc0ceb7a
4 изменённых файлов: 71 добавлений и 47 удалений

Просмотреть файл

@ -22,7 +22,7 @@
#include "domstubs.idl"
[scriptable, uuid(a6cf906d-15b3-11d2-932e-00805f8add32)]
interface Location : nsISupports
interface nsIDOMLocation : nsISupports
{
attribute DOMString hash;
attribute DOMString host;
@ -33,8 +33,9 @@ interface Location : nsISupports
attribute DOMString protocol;
attribute DOMString search;
// XXX is this needed?
[noscript] void reload(in boolean forceget);
[noscript] void replace(in DOMString url);
void replace(in DOMString url);
void assign(in DOMString url);
DOMString toString();

Просмотреть файл

@ -25,5 +25,4 @@
interface nsIDOMNSLocation : nsISupports
{
void reload(/* ... */);
void replace(/* ... */);
};

Просмотреть файл

@ -21,6 +21,9 @@
#include "domstubs.idl"
interface nsISelection;
[scriptable, uuid(a6cf906b-15b3-11d2-932e-00805f8add32)]
interface nsIDOMWindow : nsISupports
{
@ -28,10 +31,10 @@ interface nsIDOMWindow : nsISupports
readonly attribute nsIDOMWindow parent;
/* [replaceable] readonly attribute nsIDOMWindow top; */
[noscript] readonly attribute nsIDOMWindow top;
readonly attribute nsIDOMWindow top;
/* [replaceable] readonly attribute nsIDOMBarProp scrollbars; */
[noscript] readonly attribute nsIDOMBarProp scrollbars;
readonly attribute nsIDOMBarProp scrollbars;
readonly attribute nsIDOMWindowCollection frames;

Просмотреть файл

@ -21,77 +21,84 @@
#include "nsIDOMWindow.idl"
interface nsISidebar;
interface nsIPrompt;
interface nsIControllers;
interface nsIDOMLocation;
interface nsISupportsArray;
[scriptable, uuid(9c911860-7dd9-11d4-9a83-000064657374)]
interface nsIDOMWindowInternal : nsIDOMWindow
{
readonly attribute nsIDOMWindowInternal window;
readonly attribute nsIDOMWindowInternal self;
readonly attribute nsIDOMNavigator navigator;
readonly attribute nsIDOMScreen screen;
readonly attribute nsIDOMHistory history;
readonly attribute nsIDOMWindowInternal window;
readonly attribute nsIDOMWindowInternal self;
readonly attribute nsIDOMNavigator navigator;
readonly attribute nsIDOMScreen screen;
readonly attribute nsIDOMHistory history;
/* Wwhhhhhaaaaaaaaggghh, this is an invalid name in IDL
* [replaceable] _content;
*/
[noscript] readonly attribute nsIDOMWindowInternal content;
readonly attribute nsIDOMWindow content;
/* [replaceable] sidebar; */
[noscript] readonly attribute nsISidebar sidebar;
readonly attribute nsISidebar sidebar;
/* [replaceable] prompter; */
[noscript] readonly attribute nsIPrompt prompter;
readonly attribute nsIPrompt prompter;
/* [replaceable] menubar; */
[noscript] readonly attribute nsIDOMBarProp menubar;
readonly attribute nsIDOMBarProp menubar;
/* [replaceable] toolbar; */
[noscript] readonly attribute nsIDOMBarProp toolbar;
readonly attribute nsIDOMBarProp toolbar;
/* [replaceable] locationbar; */
[noscript] readonly attribute nsIDOMBarProp locationbar;
readonly attribute nsIDOMBarProp locationbar;
/* [replaceable] personalbar; */
[noscript] readonly attribute nsIDOMBarProp personalbar;
readonly attribute nsIDOMBarProp personalbar;
/* [replaceable] statusbar; */
[noscript] readonly attribute nsIDOMBarProp statusbar;
readonly attribute nsIDOMBarProp statusbar;
/* [replaceable] directories; */
[noscript] readonly attribute nsIDOMBarProp directories;
readonly attribute boolean closed;
readonly attribute nsIDOMCrypto crypto;
readonly attribute nsIDOMPkcs11 pkcs11;
readonly attribute nsIDOMBarProp directories;
readonly attribute boolean closed;
readonly attribute nsIDOMCrypto crypto;
readonly attribute nsIDOMPkcs11 pkcs11;
/* [replaceable] controllers; */
[noscript] readonly attribute nsIControllers controllers;
attribute nsIDOMWindowInternal opener;
attribute DOMString status;
attribute DOMString defaultStatus;
// Can't do this! attribute jsval location;
attribute DOMString title;
readonly attribute nsIControllers controllers;
attribute nsIDOMWindowInternal opener;
attribute DOMString status;
attribute DOMString defaultStatus;
// XXX: IMO the below attributes should be readonly!!!
attribute long innerWidth;
attribute long innerHeight;
attribute long outerWidth;
attribute long outerHeight;
attribute long screenX;
attribute long screenY;
attribute long pageXOffset;
attribute long pageYOffset;
// XXX: The setter that takes a string argument needs to be special
// cased!
readonly attribute nsIDOMLocation location;
attribute DOMString title;
attribute long innerWidth;
attribute long innerHeight;
attribute long outerWidth;
attribute long outerHeight;
attribute long screenX;
attribute long screenY;
readonly attribute long pageXOffset;
readonly attribute long pageYOffset;
/* [replaceable] length; */
[noscript] readonly attribute unsigned long length;
readonly attribute unsigned long length;
// Make these 4 methods JS only?
void dump(in DOMString str);
void alert(in DOMString text /*, ... */);
boolean confirm(in DOMString text /*, ... */);
// XXX prompt() should be changed back to return a string once
// the DOM APIs allow us to return null js values for a string.
// in the meantime, this is the only way to do that:
// XXX jsval prompt(/* ... */);
// XXX prompt() should return a null string if cancel is pressed
DOMString prompt(in DOMString data /*, ... */);
void focus();
void blur();
@ -116,6 +123,10 @@ interface nsIDOMWindowInternal : nsIDOMWindow
long setTimeout(/* ... */);
long setInterval(/* ... */);
// This method is here for backwards compatibility with 4.x only,
// it's implementation is a nop
void setResizable(in boolean resizable);
void captureEvents(in long eventFlags);
void releaseEvents(in long eventFlags);
void routeEvent(in nsIDOMEvent evt);
@ -123,12 +134,22 @@ interface nsIDOMWindowInternal : nsIDOMWindow
void disableExternalCapture();
void setCursor(in DOMString cursor);
nsIDOMWindowInternal open(/* ... */);
nsIDOMWindowInternal openDialog(/* ... */);
void close(/* ... */);
[noscript] nsIDOMWindow open(in DOMString url, in DOMString name,
in DOMString options);
void close();
void updateCommands(in DOMString action);
DOMString escape(in DOMString str);
DOMString unescape(in DOMString str);
};
[scriptable, uuid(8aefcae2-1dd2-11b2-8967-a710b365f144)]
interface nsIDOMWindowInternalEx : nsIDOMWindowInternal
{
// This method is subject to change so *don't* use it unless you're
// prepared to change your code when this method changes.
[noscript] nsIDOMWindow openDialog(in DOMString url, in DOMString name,
in DOMString options,
in nsISupportsArray argsArray);
};