mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
Added Option constructor and resultant nsIDOMOption interface
This commit is contained in:
parent
93b1c98df6
commit
84919aed9a
@ -18,6 +18,7 @@
|
||||
|
||||
nsIScriptContext.h
|
||||
nsIJSScriptObject.h
|
||||
nsIJSNativeInitializer.h
|
||||
nsIScriptObjectOwner.h
|
||||
nsIScriptContextOwner.h
|
||||
nsIScriptGlobalObject.h
|
||||
|
@ -30,6 +30,7 @@ EXPORTS = \
|
||||
nsIScriptContext.h \
|
||||
nsIScriptContextOwner.h \
|
||||
nsIJSScriptObject.h \
|
||||
nsIJSNativeInitializer.h \
|
||||
nsIScriptEventListener.h \
|
||||
nsIScriptObjectOwner.h \
|
||||
nsIScriptGlobalObject.h \
|
||||
|
@ -61,3 +61,4 @@ nsIDOMHTMLUListElement.h
|
||||
nsIDOMImage.h
|
||||
nsIDOMNSHTMLButtonElement.h
|
||||
nsIDOMNSHTMLDocument.h
|
||||
nsIDOMOption.h
|
||||
|
@ -85,6 +85,7 @@ EXPORTS = \
|
||||
nsIDOMImage.h \
|
||||
nsIDOMNSHTMLButtonElement.h \
|
||||
nsIDOMNSHTMLDocument.h \
|
||||
nsIDOMOption.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
@ -82,7 +82,8 @@ EXPORTS2= \
|
||||
nsIDOMHTMLUListElement.h \
|
||||
nsIDOMImage.h \
|
||||
nsIDOMNSHTMLButtonElement.h \
|
||||
nsIDOMNSHTMLDocument.h
|
||||
nsIDOMNSHTMLDocument.h \
|
||||
nsIDOMOption.h
|
||||
|
||||
MODULE=dom
|
||||
|
||||
|
45
dom/public/html/nsIDOMOption.h
Normal file
45
dom/public/html/nsIDOMOption.h
Normal file
@ -0,0 +1,45 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMOption_h__
|
||||
#define nsIDOMOption_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMOPTION_IID \
|
||||
{ 0xa6cf90f3, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMOption : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMOPTION_IID; return iid; }
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMOPTION \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMOPTION(_to) \
|
||||
|
||||
|
||||
#endif // nsIDOMOption_h__
|
@ -23,7 +23,6 @@ MODULE=raptor
|
||||
IDLSRCS= Navigator.idl Location.idl WindowCollection.idl Screen.idl History.idl \
|
||||
PluginArray.idl MimeTypeArray.idl Plugin.idl MimeType.idl
|
||||
|
||||
|
||||
GLOBAL_IDLSRC= Window.idl
|
||||
|
||||
XPCOM_DESTDIR=$(DEPTH)\dom\public\base
|
||||
|
@ -2,6 +2,8 @@
|
||||
/* IID: { 0xa6cf9092, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } } */
|
||||
|
||||
void HTMLOptionElement();
|
||||
|
||||
readonly attribute HTMLFormElement form;
|
||||
attribute boolean defaultSelected;
|
||||
readonly attribute DOMString text;
|
||||
@ -11,3 +13,10 @@
|
||||
readonly attribute boolean selected;
|
||||
attribute DOMString value;
|
||||
};
|
||||
|
||||
interface Option {
|
||||
/* IID: { 0xa6cf90f3, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } } */
|
||||
|
||||
void Option();
|
||||
};
|
||||
|
@ -22,6 +22,7 @@ DIRS=base coreDom coreEvents range events html css
|
||||
DEFINES=-D_IMPL_NS_DOM
|
||||
EXPORTS=nsIScriptContext.h \
|
||||
nsIJSScriptObject.h \
|
||||
nsIJSNativeInitializer.h \
|
||||
nsIScriptObjectOwner.h \
|
||||
nsIScriptGlobalObject.h \
|
||||
nsIScriptContextOwner.h \
|
||||
|
46
dom/public/nsIJSNativeInitializer.h
Normal file
46
dom/public/nsIJSNativeInitializer.h
Normal file
@ -0,0 +1,46 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nsIJSNativeInitializer_h__
|
||||
#define nsIJSNativeInitializer_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "jsapi.h"
|
||||
|
||||
#define NS_IJSNATIVEINITIALIZER_IID \
|
||||
{0xa6cf90f4, 0x15b3, 0x11d2, \
|
||||
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
|
||||
|
||||
/**
|
||||
* A JavaScript specific interface used to initialize new
|
||||
* native objects, created as a result of calling a
|
||||
* JavaScript constructor. The arguments are passed in
|
||||
* their raw form as jsval's.
|
||||
*/
|
||||
|
||||
class nsIJSNativeInitializer : public nsISupports {
|
||||
public:
|
||||
/**
|
||||
* Intialize a newly created native instance using the parameters
|
||||
* passed into the JavaScript constructor.
|
||||
*/
|
||||
NS_IMETHOD Initialize(JSContext* cx, PRUint32 argc, jsval *argv) = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif // nsIJSNativeInitializer_h__
|
@ -28,7 +28,7 @@
|
||||
{0xb7, 0x24, 0x00, 0x60, 0x08, 0x91, 0xd8, 0xc9} }
|
||||
|
||||
/**
|
||||
* A java script specific interface.
|
||||
* A JavaScript specific interface.
|
||||
* <P>
|
||||
* It's implemented by an object that has to execute specific java script
|
||||
* behavior like the array semantic.
|
||||
@ -36,6 +36,7 @@
|
||||
* It is used by the script runtime to collect information about an object
|
||||
*/
|
||||
class nsIJSScriptObject : public nsISupports {
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IJSSCRIPTOBJECT_IID; return iid; }
|
||||
public:
|
||||
virtual PRBool AddProperty(JSContext *aContext, jsval aID,
|
||||
jsval *aVp) = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user