Add [noscript] to a number of non-scriptable attributes in [scriptable] interfaces. (They're not scriptable, because they refer to native types.) This is in preparation for a new compile-time check in xpidl to require the [noscript] annotation for attributes, as it is required for methods.

Preparatory to fix to 11454.

r=jband
This commit is contained in:
mccabe%netscape.com 2000-03-17 23:47:48 +00:00
parent 78211d202e
commit a1a082d9b2
8 changed files with 11 additions and 11 deletions

View File

@ -101,18 +101,18 @@ interface nsIDocShell : nsISupports
/*
Presentation context for the currently loaded document. This may be null.
*/
readonly attribute nsIPresContext presContext;
[noscript] readonly attribute nsIPresContext presContext;
/*
Presentation context for the currently loaded document. This may be null.
*/
readonly attribute nsIPresShell presShell;
[noscript] readonly attribute nsIPresShell presShell;
/*
Content Viewer that is currently loaded for this DocShell. This may change
as the underlying content changes.
*/
readonly attribute nsIContentViewer contentViewer;
[noscript] readonly attribute nsIContentViewer contentViewer;
/*
This attribute allows chrome to tie in to handle DOM events that may be of

View File

@ -37,7 +37,7 @@ interface nsIAbDirectory : nsISupports {
attribute wstring dirName;
attribute unsigned long lastModifiedDate;
attribute DIR_Server server;
[noscript] attribute DIR_Server server;
readonly attribute string dirFilePath;
readonly attribute nsIEnumerator childNodes;

View File

@ -39,7 +39,7 @@
[scriptable, uuid(A4186D8B-1DD0-11d3-A303-001083003D0C)]
interface nsIAddrDatabase : nsIAddrDBAnnouncer {
attribute nsFileSpec dbPath;
[noscript] attribute nsFileSpec dbPath;
[noscript] void open(in nsFileSpec folderName, in boolean create,
out nsIAddrDatabase pCardDB, in boolean upgrading);
void close(in boolean forceCommit);

View File

@ -52,7 +52,7 @@ interface nsIMsgFilter : nsISupports {
out boolean BooleanAND,
out string arbitraryHeader);
attribute nsMsgSearchScopeTerm scope;
[noscript] attribute nsMsgSearchScopeTerm scope;
[noscript] void SetAction(in nsMsgRuleActionType type, in voidStar value);
[noscript] void GetAction(out nsMsgRuleActionType type, out voidStar value);

View File

@ -53,7 +53,7 @@ interface nsIMailboxUrl : nsISupports {
attribute nsIStreamListener mailboxCopyHandler;
// mailbox URL state
readonly attribute nsFileSpecPtr fileSpec;
[noscript] readonly attribute nsFileSpecPtr fileSpec;
// a message db header for that message.
readonly attribute nsIMsgDBHdr messageHeader;

View File

@ -154,7 +154,7 @@ interface nsIBaseWindow : nsISupports
On controls that don't support widgets, setting this will return a
NS_ERROR_NOT_IMPLEMENTED error.
*/
attribute nsIWidget parentWidget;
[noscript] attribute nsIWidget parentWidget;
/*
This is the native window parent of the control.
@ -179,7 +179,7 @@ interface nsIBaseWindow : nsISupports
on the object, this may return the parent widget in which this object
lives if it has not had to create it's own widget.
*/
readonly attribute nsIWidget mainWidget;
[noscript] readonly attribute nsIWidget mainWidget;
/**
* Give the window focus.

View File

@ -49,7 +49,7 @@ interface nsIDragSession : nsISupports
* Sets the current width and height if the drag target area.
* It will contain the current size of the Frame that the drag is currently in
*/
attribute nsSize targetSize;
[noscript] attribute nsSize targetSize;
/**
* Get the number items that were dropped

View File

@ -47,7 +47,7 @@ interface nsISearchContext : nsISupports {
attribute boolean searchBackwards;
attribute boolean caseSensitive;
attribute boolean wrapSearch;
readonly attribute nsIWebShell targetWebShell;
[noscript] readonly attribute nsIWebShell targetWebShell;
attribute nsIDOMWindow findDialog;
void ConvertToWeakReference();
void ConvertToOwningReference();