From 402da8d763f498babedcdaa26549a572c7a89f73 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Fri, 26 Feb 1999 01:17:12 +0000 Subject: [PATCH] rev the XPIDL generated headers --- .../ui/messenger/public/nsIDOMMsgAppCore.h | 24 ++++++++---- mailnews/ui/messenger/public/nsIMessenger.h | 39 ------------------- 2 files changed, 17 insertions(+), 46 deletions(-) diff --git a/mailnews/ui/messenger/public/nsIDOMMsgAppCore.h b/mailnews/ui/messenger/public/nsIDOMMsgAppCore.h index 8416e56703c..6a1383bc32a 100644 --- a/mailnews/ui/messenger/public/nsIDOMMsgAppCore.h +++ b/mailnews/ui/messenger/public/nsIDOMMsgAppCore.h @@ -7,8 +7,19 @@ #include "nsISupports.h" /* interface nsISupports */ #include "nsIDOMWindow.h" /* interface nsIDOMWindow */ +#include "nsID.h" /* interface nsID */ #include "nsIDOMBaseAppCore.h" /* interface nsIDOMBaseAppCore */ +#ifdef XPIDL_JS_STUBS +#include "jsapi.h" +#endif +#include "nsDebug.h" +#include "nsTraceRefcnt.h" +#include "nsID.h" +#include "nsIID.h" +#include "nsError.h" +#include "nsISupportsUtils.h" + /* starting interface nsIDOMMsgAppCore */ @@ -35,13 +46,12 @@ class nsIDOMMsgAppCore : public nsIDOMBaseAppCore { NS_IMETHOD SetWindow(nsIDOMWindow *ptr) = 0; /* void OpenURL (in string str); */ - NS_IMETHOD OpenURL(nsAutoString& str) = 0; + NS_IMETHOD OpenURL(char *str) = 0; + +#ifdef XPIDL_JS_STUBS + static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx); + static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIDOMMsgAppCore *priv); +#endif }; - -extern "C" NS_DOM -nsresult -NS_InitMsgAppCoreClass(nsIScriptContext *aContext, void **aPrototype, JSObject * aParentProto); - #endif /* __gen_nsIDOMMsgAppCore_h__ */ - diff --git a/mailnews/ui/messenger/public/nsIMessenger.h b/mailnews/ui/messenger/public/nsIMessenger.h index 8ba68c3bd05..e69de29bb2d 100644 --- a/mailnews/ui/messenger/public/nsIMessenger.h +++ b/mailnews/ui/messenger/public/nsIMessenger.h @@ -1,39 +0,0 @@ -/* - * DO NOT EDIT. THIS FILE IS GENERATED FROM nsIMessenger.idl - */ - -#ifndef __gen_nsIMessenger_h__ -#define __gen_nsIMessenger_h__ - -#include "nsISupports.h" /* interface nsISupports */ -#include "nsID.h" /* interface nsID */ -#include "nsDebug.h" -#include "nsTraceRefcnt.h" -#include "nsID.h" -#include "nsIID.h" -#include "nsError.h" -#include "nsISupportsUtils.h" - - -/* starting interface nsIMessenger */ - -/* {01883380-cab9-11d2-b7f6-00805f05ffa5} */ -#define NS_IMESSENGER_IID_STR "01883380-cab9-11d2-b7f6-00805f05ffa5" -#define NS_IMESSENGER_IID \ - {0x01883380, 0xcab9, 0x11d2, \ - { 0xb7, 0xf6, 0x00, 0x80, 0x5f, 0x05, 0xff, 0xa5 }} - -class nsIMessenger : public nsISupports { - public: - static const nsIID& IID() { - static nsIID iid = NS_IMESSENGER_IID; - return iid; - } - -#ifdef XPIDL_JS_STUBS - static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx); - static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIMessenger *priv); -#endif -}; - -#endif /* __gen_nsIMessenger_h__ */