зеркало из https://github.com/mozilla/gecko-dev.git
Bug 119032 - converting nsISelectElement to idl so it can be used from js. r=varga, sr=jst.
This commit is contained in:
Родитель
8d83ebe7ba
Коммит
0c1b36eec5
|
@ -686,6 +686,7 @@ sub BuildClientDist()
|
||||||
InstallFromManifest(":mozilla:content:events:public:MANIFEST", "$distdirectory:content:");
|
InstallFromManifest(":mozilla:content:events:public:MANIFEST", "$distdirectory:content:");
|
||||||
InstallFromManifest(":mozilla:content:events:src:MANIFEST", "$distdirectory:content:");
|
InstallFromManifest(":mozilla:content:events:src:MANIFEST", "$distdirectory:content:");
|
||||||
InstallFromManifest(":mozilla:content:html:content:public:MANIFEST", "$distdirectory:content:");
|
InstallFromManifest(":mozilla:content:html:content:public:MANIFEST", "$distdirectory:content:");
|
||||||
|
InstallFromManifest(":mozilla:content:html:content:public:MANIFEST_IDL", "$distdirectory:idl:");
|
||||||
InstallFromManifest(":mozilla:content:html:content:src:MANIFEST", "$distdirectory:content:");
|
InstallFromManifest(":mozilla:content:html:content:src:MANIFEST", "$distdirectory:content:");
|
||||||
InstallFromManifest(":mozilla:content:html:document:public:MANIFEST", "$distdirectory:content:");
|
InstallFromManifest(":mozilla:content:html:document:public:MANIFEST", "$distdirectory:content:");
|
||||||
InstallFromManifest(":mozilla:content:html:document:src:MANIFEST", "$distdirectory:content:");
|
InstallFromManifest(":mozilla:content:html:document:src:MANIFEST", "$distdirectory:content:");
|
||||||
|
|
|
@ -5,6 +5,5 @@ nsIForm.h
|
||||||
nsIFormControl.h
|
nsIFormControl.h
|
||||||
nsILink.h
|
nsILink.h
|
||||||
nsIOptionElement.h
|
nsIOptionElement.h
|
||||||
nsISelectElement.h
|
|
||||||
nsIScriptElement.h
|
nsIScriptElement.h
|
||||||
nsITextControlElement.h
|
nsITextControlElement.h
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#
|
||||||
|
# This is a list of local files which get copied to the mozilla:dist:idl directory
|
||||||
|
#
|
||||||
|
|
||||||
|
nsISelectElement.idl
|
|
@ -28,13 +28,16 @@ include $(DEPTH)/config/autoconf.mk
|
||||||
|
|
||||||
MODULE = content
|
MODULE = content
|
||||||
|
|
||||||
|
XPIDLSRCS = \
|
||||||
|
nsISelectElement.idl \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
EXPORTS = \
|
EXPORTS = \
|
||||||
nsIFormControl.h \
|
nsIFormControl.h \
|
||||||
nsIForm.h \
|
nsIForm.h \
|
||||||
nsILink.h \
|
nsILink.h \
|
||||||
nsIOptionElement.h \
|
nsIOptionElement.h \
|
||||||
nsITextControlElement.h \
|
nsITextControlElement.h \
|
||||||
nsISelectElement.h \
|
|
||||||
nsIScriptElement.h \
|
nsIScriptElement.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,15 @@
|
||||||
|
|
||||||
DEPTH=..\..\..\..
|
DEPTH=..\..\..\..
|
||||||
|
|
||||||
|
XPIDLSRCS = \
|
||||||
|
.\nsISelectElement.idl \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
EXPORTS= \
|
EXPORTS= \
|
||||||
nsIFormControl.h \
|
nsIFormControl.h \
|
||||||
nsIForm.h \
|
nsIForm.h \
|
||||||
nsILink.h \
|
nsILink.h \
|
||||||
nsIOptionElement.h \
|
nsIOptionElement.h \
|
||||||
nsISelectElement.h \
|
|
||||||
nsIScriptElement.h \
|
nsIScriptElement.h \
|
||||||
nsITextControlElement.h \
|
nsITextControlElement.h \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
|
@ -35,19 +35,13 @@
|
||||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
#ifndef nsISelectElement_h___
|
|
||||||
#define nsISelectElement_h___
|
|
||||||
|
|
||||||
#include "nsISupports.h"
|
#include "nsISupports.idl"
|
||||||
|
|
||||||
// IID for the nsISelect interface
|
interface nsIContent;
|
||||||
#define NS_ISELECTELEMENT_IID \
|
interface nsIDOMHTMLOptionElement;
|
||||||
{ 0xa6cf90f6, 0x15b3, 0x11d2, \
|
interface nsIPresContext;
|
||||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
interface nsIPresState;
|
||||||
|
|
||||||
class nsIDOMHTMLOptionElement;
|
|
||||||
class nsIPresContext;
|
|
||||||
class nsIPresState;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface is used to notify a SELECT when OPTION
|
* This interface is used to notify a SELECT when OPTION
|
||||||
|
@ -56,90 +50,85 @@ class nsIPresState;
|
||||||
* interfaces are the ones to use to access and enumerate
|
* interfaces are the ones to use to access and enumerate
|
||||||
* OPTIONs within a SELECT element.
|
* OPTIONs within a SELECT element.
|
||||||
*/
|
*/
|
||||||
class nsISelectElement : public nsISupports {
|
|
||||||
public:
|
|
||||||
|
|
||||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISELECTELEMENT_IID)
|
[scriptable, uuid(a6cf90f6-15b3-11d2-932e-00805f8add32)]
|
||||||
|
interface nsISelectElement : nsISupports
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To be called when stuff is added under a child of
|
* To be called when stuff is added under a child of
|
||||||
* the select--but *before* they are actually added.
|
* the select--but *before* they are actually added.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD WillAddOptions(nsIContent* aOptions,
|
[noscript] void willAddOptions(in nsIContent aOptions,
|
||||||
nsIContent* aParent,
|
in nsIContent aParent,
|
||||||
PRInt32 aContentIndex) = 0;
|
in long aContentIndex);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To be called when stuff is removed under a child of
|
* To be called when stuff is removed under a child of
|
||||||
* the select--but *before* they are actually removed.
|
* the select--but *before* they are actually removed.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD WillRemoveOptions(nsIContent* aParent,
|
[noscript] void willRemoveOptions(in nsIContent aParent,
|
||||||
PRInt32 aContentIndex) = 0;
|
in long aContentIndex);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An OPTION element has been added to the SELECT's
|
* An OPTION element has been added to the SELECT's
|
||||||
* subtree.
|
* subtree.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD AddOption(nsIContent* aContent) = 0;
|
[noscript] void addOption(in nsIContent aContent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An OPTION element has been deleted from the SELECT's
|
* An OPTION element has been deleted from the SELECT's
|
||||||
* subtree.
|
* subtree.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD RemoveOption(nsIContent* aContent) = 0;
|
[noscript] void removeOption(in nsIContent aContent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates that we're done adding child content
|
* Indicates that we're done adding child content
|
||||||
* to the select during document loading.
|
* to the select during document loading.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD DoneAddingContent(PRBool aIsDone) = 0;
|
void doneAddingContent(in boolean aIsDone);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether we're done adding child content
|
* Returns whether we're done adding child content
|
||||||
* to the select during document loading.
|
* to the select during document loading.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD IsDoneAddingContent(PRBool * aIsDone) = 0;
|
boolean isDoneAddingContent();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether we're the option is selected
|
* Returns whether we're the option is selected
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD IsOptionSelected(nsIDOMHTMLOptionElement* anOption,
|
boolean isOptionSelected(in nsIDOMHTMLOptionElement aOption);
|
||||||
PRBool* aIsSelected) = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an option selected or delselected
|
* Sets an option selected or delselected
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD SetOptionSelected(nsIDOMHTMLOptionElement* anOption,
|
void setOptionSelected(in nsIDOMHTMLOptionElement aOption,
|
||||||
PRBool aIsSelected) = 0;
|
in boolean aIsSelected);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether an option is disabled (even if it's part of an optgroup)
|
* Checks whether an option is disabled (even if it's part of an optgroup)
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD IsOptionDisabled(PRInt32 aIndex, PRBool* aIsDisabled) = 0;
|
boolean isOptionDisabled(in long aIndex);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets multiple options (or just sets startIndex if select is single)
|
* Sets multiple options (or just sets startIndex if select is single)
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD SetOptionsSelectedByIndex(PRInt32 aStartIndex,
|
boolean setOptionsSelectedByIndex(in long aStartIndex,
|
||||||
PRInt32 aEndIndex,
|
in long aEndIndex,
|
||||||
PRBool aIsSelected,
|
in boolean aIsSelected,
|
||||||
PRBool aClearAll,
|
in boolean aClearAll,
|
||||||
PRBool aSetDisabled,
|
in boolean aSetDisabled);
|
||||||
PRBool* aChangedSomething) = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when an option is disabled
|
* Called when an option is disabled
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD OnOptionDisabled(nsIDOMHTMLOptionElement* anOption) = 0;
|
void onOptionDisabled(in nsIDOMHTMLOptionElement aOption);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called to save/restore to/from pres. state
|
* Called to save/restore to/from pres. state
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD SaveState(nsIPresContext* aPresContext,
|
[noscript] void saveState(in nsIPresContext aPresContext,
|
||||||
nsIPresState** aState) = 0;
|
out nsIPresState aState);
|
||||||
NS_IMETHOD RestoreState(nsIPresContext* aPresContext,
|
[noscript] void restoreState(in nsIPresContext aPresContext,
|
||||||
nsIPresState* aState) = 0;
|
in nsIPresState aState);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // nsISelectElement_h___
|
|
||||||
|
|
|
@ -876,6 +876,13 @@
|
||||||
<FILEKIND>Text</FILEKIND>
|
<FILEKIND>Text</FILEKIND>
|
||||||
<FILEFLAGS></FILEFLAGS>
|
<FILEFLAGS></FILEFLAGS>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
<FILE>
|
||||||
|
<PATHTYPE>Name</PATHTYPE>
|
||||||
|
<PATH>nsISelectElement.idl</PATH>
|
||||||
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
|
<FILEKIND>Text</FILEKIND>
|
||||||
|
<FILEFLAGS></FILEFLAGS>
|
||||||
|
</FILE>
|
||||||
</FILELIST>
|
</FILELIST>
|
||||||
<LINKORDER>
|
<LINKORDER>
|
||||||
<FILEREF>
|
<FILEREF>
|
||||||
|
@ -968,6 +975,11 @@
|
||||||
<PATH>nsIScriptLoaderObserver.idl</PATH>
|
<PATH>nsIScriptLoaderObserver.idl</PATH>
|
||||||
<PATHFORMAT>MacOS</PATHFORMAT>
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
</FILEREF>
|
</FILEREF>
|
||||||
|
<FILEREF>
|
||||||
|
<PATHTYPE>Name</PATHTYPE>
|
||||||
|
<PATH>nsISelectElement.idl</PATH>
|
||||||
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
|
</FILEREF>
|
||||||
</LINKORDER>
|
</LINKORDER>
|
||||||
</TARGET>
|
</TARGET>
|
||||||
<TARGET>
|
<TARGET>
|
||||||
|
@ -1793,6 +1805,13 @@
|
||||||
<FILEKIND>Text</FILEKIND>
|
<FILEKIND>Text</FILEKIND>
|
||||||
<FILEFLAGS></FILEFLAGS>
|
<FILEFLAGS></FILEFLAGS>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
<FILE>
|
||||||
|
<PATHTYPE>Name</PATHTYPE>
|
||||||
|
<PATH>nsISelectElement.idl</PATH>
|
||||||
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
|
<FILEKIND>Text</FILEKIND>
|
||||||
|
<FILEFLAGS></FILEFLAGS>
|
||||||
|
</FILE>
|
||||||
</FILELIST>
|
</FILELIST>
|
||||||
<LINKORDER>
|
<LINKORDER>
|
||||||
<FILEREF>
|
<FILEREF>
|
||||||
|
@ -1885,6 +1904,11 @@
|
||||||
<PATH>nsIScriptLoaderObserver.idl</PATH>
|
<PATH>nsIScriptLoaderObserver.idl</PATH>
|
||||||
<PATHFORMAT>MacOS</PATHFORMAT>
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
</FILEREF>
|
</FILEREF>
|
||||||
|
<FILEREF>
|
||||||
|
<PATHTYPE>Name</PATHTYPE>
|
||||||
|
<PATH>nsISelectElement.idl</PATH>
|
||||||
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
|
</FILEREF>
|
||||||
</LINKORDER>
|
</LINKORDER>
|
||||||
</TARGET>
|
</TARGET>
|
||||||
</TARGETLIST>
|
</TARGETLIST>
|
||||||
|
@ -2003,6 +2027,12 @@
|
||||||
<PATH>nsIScriptLoaderObserver.idl</PATH>
|
<PATH>nsIScriptLoaderObserver.idl</PATH>
|
||||||
<PATHFORMAT>MacOS</PATHFORMAT>
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
</FILEREF>
|
</FILEREF>
|
||||||
|
<FILEREF>
|
||||||
|
<TARGETNAME>headers</TARGETNAME>
|
||||||
|
<PATHTYPE>Name</PATHTYPE>
|
||||||
|
<PATH>nsISelectElement.idl</PATH>
|
||||||
|
<PATHFORMAT>MacOS</PATHFORMAT>
|
||||||
|
</FILEREF>
|
||||||
</GROUPLIST>
|
</GROUPLIST>
|
||||||
|
|
||||||
</PROJECT>
|
</PROJECT>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче