Updated the debug object. This is not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@120829 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
91bcd3f99e
commit
d240581dbf
@ -19,7 +19,24 @@
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..\..\..\..
|
||||
DEPTH=..\..\..\..
|
||||
|
||||
REQUIRES= xpcom \
|
||||
dom \
|
||||
necko\
|
||||
string \
|
||||
widget \
|
||||
locale \
|
||||
view \
|
||||
pref \
|
||||
gfx2 \
|
||||
imglib2 \
|
||||
unicharutil \
|
||||
java \
|
||||
debug \
|
||||
plugin \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\config.mak>
|
||||
|
||||
MAKE_OBJ_TYPE = LIB
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
DEPTH=..\..\..
|
||||
MODULE = npdebug
|
||||
REQUIRES= xpcom \
|
||||
dom \
|
||||
dom \
|
||||
necko\
|
||||
string \
|
||||
widget \
|
||||
@ -34,6 +34,7 @@ REQUIRES= xpcom \
|
||||
unicharutil \
|
||||
java \
|
||||
debug \
|
||||
plugin \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\config.mak>
|
||||
@ -41,9 +42,9 @@ include <$(DEPTH)\config\config.mak>
|
||||
|
||||
|
||||
|
||||
XPIDLSRCS = \
|
||||
.\nsIDebugPlugin.idl \
|
||||
$(NULL)
|
||||
XPIDLSRCS = \
|
||||
.\nsIDebugPlugin.idl \
|
||||
$(NULL)
|
||||
|
||||
MAKE_OBJ_TYPE = DLL
|
||||
DLLNAME = npdebug
|
||||
@ -51,16 +52,17 @@ RESFILE = npdebug.res
|
||||
DEFFILE = npdebug.def
|
||||
DLL=.\$(OBJDIR)\$(DLLNAME).dll
|
||||
|
||||
CFLAGS = $(CFLAGS) -I.\include
|
||||
CFLAGS = $(CFLAGS) -I.\include
|
||||
|
||||
|
||||
OBJS = \
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\plugin.obj \
|
||||
.\$(OBJDIR)\nsScriptablePeer.obj \
|
||||
$(NULL)
|
||||
|
||||
LLIBS = \
|
||||
.\common\$(OBJDIR)\plugingate.lib \
|
||||
$(DIST)\lib\xpcom.lib \
|
||||
$(DIST)\lib\xpcom.lib \
|
||||
$(NULL)
|
||||
|
||||
WIN_LIBS = version.lib
|
||||
@ -71,12 +73,12 @@ include <$(DEPTH)\config\rules.mak>
|
||||
libs:: $(DLL)
|
||||
$(RM) $(XPDIST)\idl\nsIDebugPlugin.idl
|
||||
$(RM) $(XPDIST)\include\nsIDebugPlugin.h
|
||||
# $(RM) $(DIST)\bin\components\$(DLLNAME).xpt
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\plugins
|
||||
# $(RM) $(DIST)\bin\components\$(DLLNAME).xpt
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\plugins
|
||||
|
||||
|
||||
clobber::
|
||||
$(RM) *.sbr
|
||||
$(RM) *.sbr
|
||||
$(RM) $(XPDIST)\idl\nsIDebugPlugin.idl
|
||||
$(RM) $(XPDIST)\include\nsIDebugPlugin.h
|
||||
$(RM) $(DIST)\bin\components\$(DLLNAME).xpt
|
||||
|
||||
@ -45,6 +45,7 @@
|
||||
#include "nsISimpleEnumerator.h"
|
||||
#include "nsMemory.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsString.h"
|
||||
|
||||
// service manager which will give the access to all public browser services
|
||||
// we will use memory service as an illustration
|
||||
@ -198,7 +199,7 @@ nsXPIDLCString dirPath;
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsILocalFile> theDir = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID);
|
||||
rv = NS_InitFileFromURLSpec(theDir, aFilePath);
|
||||
rv = NS_InitFileFromURLSpec(theDir, nsDependentCString(aFilePath));
|
||||
|
||||
if (NS_FAILED(rv)){
|
||||
mIter = 0;
|
||||
@ -236,13 +237,20 @@ char* URLName;
|
||||
break;
|
||||
nsXPIDLCString filePath;
|
||||
char* afilepath;
|
||||
rv = dirEntry->GetPath(&afilepath);
|
||||
nsCAutoString path;
|
||||
|
||||
|
||||
rv = dirEntry->GetPath(path);
|
||||
if (NS_FAILED(rv))
|
||||
continue;
|
||||
|
||||
afilepath = ToNewCString(path);
|
||||
|
||||
if( strstr(afilepath,".html") != 0 ) {
|
||||
*aDirName = afilepath;
|
||||
NS_GetURLSpecFromFile(dirEntry,&URLName);
|
||||
nsCAutoString urlname;
|
||||
NS_GetURLSpecFromFile(dirEntry,urlname);
|
||||
URLName = ToNewCString(urlname);
|
||||
*aDirName = URLName;
|
||||
break;
|
||||
} else {
|
||||
|
||||
@ -36,8 +36,8 @@ function DumpFrames()
|
||||
alert(outputfilename);
|
||||
|
||||
|
||||
//var thewindow = window.open(filetopen);
|
||||
//embed.DumpLayout(thewindow,"s:/tests","filename");
|
||||
var thewindow = window.open(filetopen);
|
||||
embed.DumpLayout(thewindow,"s:/tests","filename");
|
||||
} while (filename!=null)
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user