Jacek Caban : mshtml: Remove no longer used interfaces.
Alexandre Julliard
julliard at winehq.org
Wed Nov 5 09:37:51 CST 2008
Module: wine
Branch: master
Commit: d9f097adf9618de5e9a20b43a84c5ed25ee67136
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9f097adf9618de5e9a20b43a84c5ed25ee67136
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Nov 4 20:18:43 2008 +0100
mshtml: Remove no longer used interfaces.
---
dlls/mshtml/mshtml_private.h | 2 -
dlls/mshtml/nsembed.c | 38 ----------
dlls/mshtml/nsiface.idl | 162 +-----------------------------------------
3 files changed, 2 insertions(+), 200 deletions(-)
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index 888669f..6c6ab33 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -524,8 +524,6 @@ void nsAString_Finish(nsAString*);
nsIInputStream *create_nsstream(const char*,PRInt32);
nsICommandParams *create_nscommand_params(void);
-nsIMutableArray *create_nsarray(void);
-nsIWritableVariant *create_nsvariant(void);
void nsnode_to_nsstring(nsIDOMNode*,nsAString*);
void get_editor_controller(NSContainer*);
void init_nsevents(NSContainer*);
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index 1734541..2cddbdf 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -604,44 +604,6 @@ nsIInputStream *create_nsstream(const char *data, PRInt32 data_len)
return (nsIInputStream*)ret;
}
-nsIMutableArray *create_nsarray(void)
-{
- nsIMutableArray *ret;
- nsresult nsres;
-
- if(!pCompMgr)
- return NULL;
-
- nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr,
- NS_ARRAY_CONTRACTID, NULL, &IID_nsIMutableArray,
- (void**)&ret);
- if(NS_FAILED(nsres)) {
- ERR("Could not get nsIArray: %08x\n", nsres);
- return NULL;
- }
-
- return ret;
-}
-
-nsIWritableVariant *create_nsvariant(void)
-{
- nsIWritableVariant *ret;
- nsresult nsres;
-
- if(!pCompMgr)
- return NULL;
-
- nsres = nsIComponentManager_CreateInstanceByContractID(pCompMgr,
- NS_VARIANT_CONTRACTID, NULL, &IID_nsIWritableVariant,
- (void**)&ret);
- if(NS_FAILED(nsres)) {
- ERR("Could not get nsIWritableVariant: %08x\n", nsres);
- return NULL;
- }
-
- return ret;
-}
-
nsICommandParams *create_nscommand_params(void)
{
nsICommandParams *ret = NULL;
diff --git a/dlls/mshtml/nsiface.idl b/dlls/mshtml/nsiface.idl
index 21f8cd7..5953143 100644
--- a/dlls/mshtml/nsiface.idl
+++ b/dlls/mshtml/nsiface.idl
@@ -242,142 +242,6 @@ interface nsISimpleEnumerator : nsISupports
[
object,
- uuid(114744d9-c369-456e-b55a-52fe52880d2d),
- local
- /* NOT_FROZEN */
-]
-interface nsIArray : nsISupports
-{
- nsresult GetLength(PRUint32 *aLength);
- nsresult QueryElementAt(PRUint32 index, const nsIID *uuid, void **result);
- nsresult IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval);
- nsresult Enumerate(nsISimpleEnumerator **_retval);
-}
-
-[
- object,
- uuid(af059da0-c85b-40ec-af07-ae4bfdc192cc),
- local
- /* NOT_FROZEN */
-]
-interface nsIMutableArray : nsIArray
-{
- nsresult AppendElement(nsISupports *element, PRBool weak);
- nsresult RemoveElementAt(PRUint32 index);
- nsresult InsertElementAt(nsISupports *element, PRUint32 index, PRBool weak);
- nsresult Clear();
-}
-
-[
- object,
- uuid(4d12e540-83d7-11d5-90ed-0010a4e73d9a),
- local
- /* NOT_FROZEN */
-]
-interface nsIVariant : nsISupports
-{
- enum nsDataType {
- TYPE_INT8,
- TYPE_INT16,
- TYPE_INT32,
- TYPE_INT64,
- TYPE_UINT8,
- TYPE_UINT16,
- TYPE_UINT32,
- TYPE_UINT64,
- TYPE_FLOAT,
- TYPE_DOUBLE,
- TYPE_BOOL,
- TYPE_CHAR,
- TYPE_WCHAR,
- TYPE_VOID,
- TYPE_ID,
- TYPE_DOMSTRING,
- TYPE_CHAR_STR,
- TYPE_WCHAR_STR,
- TYPE_INTERFACE,
- TYPE_INTERFACE_IS,
- TYPE_ARRAY,
- TYPE_STRING_SIZE_IS,
- TYPE_WSTRING_SIZE_IS,
- TYPE_UTF8STRING,
- TYPE_CSTRING,
- TYPE_ASTRING,
- TYPE_AMPTY_ARRAY,
- TYPE_EMPTY
- };
-
- nsresult GetDataType(PRUint16 *aDataType);
- nsresult GetAsInt8(PRUint8 *_retval);
- nsresult GetAsInt16(PRInt16 *_retval);
- nsresult GetAsInt32(PRInt32 *_retval);
- nsresult GetAsInt64(PRInt64 *_retval);
- nsresult GetAsUint8(PRUint8 *_retval);
- nsresult GetAsUint16(PRUint16 *_retval);
- nsresult GetAsUint32(PRUint32 *_retval);
- nsresult GetAsUint64(PRUint64 *_retval);
- nsresult GetAsFloat(float *_retval);
- nsresult GetAsDouble(double *_retval);
- nsresult GetAsBool(PRBool *_retval);
- nsresult GetAsChar(char *_retval);
- nsresult GetAsWChar(PRUnichar *_retval);
- nsresult GetAsID(nsID *retval);
- nsresult GetAsAString(nsAString *_retval);
- nsresult GetAsDOMString(nsAString *_retval);
- nsresult GetAsACString(nsACString *_retval);
- nsresult GetAsAUTF8String(nsACString *_retval);
- nsresult GetAsString(char **_retval);
- nsresult GetAsWString(PRUnichar **_retval);
- nsresult GetAsISupports(nsISupports **_retval);
- nsresult GetAsInterface(nsIID * *iid, void **iface);
- nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
- nsresult GetAsStringWithSize(PRUint32 *size, char **str);
- nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
-}
-
-[
- object,
- uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
- local
- /* NOT_FROZEN */
-]
-interface nsIWritableVariant : nsIVariant
-{
- nsresult GetWritable(PRBool *aWritable);
- nsresult SetWritable(PRBool aWritable);
- nsresult SetAsInt8(PRUint8 aValue);
- nsresult SetAsInt16(PRInt16 aValue);
- nsresult SetAsInt32(PRInt32 aValue);
- nsresult SetAsInt64(PRInt64 aValue);
- nsresult SetAsUint8(PRUint8 aValue);
- nsresult SetAsUint16(PRUint16 aValue);
- nsresult SetAsUint32(PRUint32 aValue);
- nsresult SetAsUint64(PRUint64 aValue);
- nsresult SetAsFloat(float aValue);
- nsresult SetAsDouble(double aValue);
- nsresult SetAsBool(PRBool aValue);
- nsresult SetAsChar(char aValue);
- nsresult SetAsWChar(PRUnichar aValue);
- nsresult SetAsID(const nsID *aValue);
- nsresult SetAsAString(const nsAString *aValue);
- nsresult SetAsDOMString(const nsAString *aValue);
- nsresult SetAsACString(const nsACString *aValue);
- nsresult SetAsAUTF8String(const nsACString *aValue);
- nsresult SetAsString(const char *aValue);
- nsresult SetAsWString(const PRUnichar *aValue);
- nsresult SetAsISupports(nsISupports *aValue);
- nsresult SetAsInterface(const nsIID *iid, void *iface);
- nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
- nsresult SetAsStringWithSize(PRUint32 size, const char *str);
- nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
- nsresult SetAsVoid();
- nsresult SetAsEmpty();
- nsresult SetAsEmptyArray();
- nsresult SetFromVariant(nsIVariant *aValue);
-}
-
-[
- object,
uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
local
/* FROZEN */
@@ -2352,32 +2216,9 @@ interface nsIContentSerializer : nsISupports
[
object,
- uuid(68b97c56-2289-48ac-a9e1-72c30fd3dba2),
- local
-]
-interface nsIScriptContainer : nsISupports
-{
- typedef void *JSObject;
-
- nsresult GetContext(void **aContext);
- nsresult GetGlobalObject(void **aGlobalObject);
- nsresult CompileScript(const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject,
- nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void **_retval);
- nsresult ExecuteScript(void *aScriptObject, void *aScopeObject, nsAString *aRetVal, PRBool *aIsUndefined);
- nsresult CompileFunction(void *aTarget, const nsACString *aName, PRUint32 aArgCount,
- const char **aArgArray, const nsAString *aBody, const char *aURL, PRInt32 aLineNo,
- PRBool aShared, void* *_retval);
- nsresult CallFunction(nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv,
- nsIVariant **_retval);
- nsresult BindEventHandler(nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler);
- nsresult HoldScriptObject(void *aObject);
- nsresult DropScriptObject(void *aObject);
-}
-
-[
- object,
uuid(D4882FFB-E927-408b-96BE-D4391B456FA9),
local
+ /* NOT_FROZEN */
]
interface nsIEditor : nsISupports
{
@@ -2461,6 +2302,7 @@ interface nsIEditor : nsISupports
object,
uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
local
+ /* NOT_FROZEN */
]
interface nsIHTMLEditor : nsISupports
{
More information about the wine-cvs
mailing list