mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Hooked up debugging robot to viewer shell
This commit is contained in:
parent
4d1413640a
commit
5854af95fa
@ -23,6 +23,7 @@ PROGRAM = .\$(OBJDIR)\viewer.exe
|
||||
RESFILE = viewer.res
|
||||
|
||||
MISCDEP= \
|
||||
$(DIST)\lib\DebugRobot.lib \
|
||||
$(DIST)\lib\raptorweb.lib \
|
||||
$(DIST)\lib\xpcom32.lib \
|
||||
$(LIBNSPR) \
|
||||
@ -35,12 +36,13 @@ OBJS = \
|
||||
.\$(OBJDIR)\nsDocLoader.obj \
|
||||
$(NULL)
|
||||
|
||||
LINCS=-I$(PUBLIC)\raptor -I$(PUBLIC)\xpcom -I$(PUBLIC)\dom -I$(PUBLIC)\js
|
||||
LINCS=-I$(PUBLIC)\raptor -I$(PUBLIC)\xpcom -I$(PUBLIC)\dom -I$(PUBLIC)\js -I$(PUBLIC)\netlib
|
||||
MYLIBS= \
|
||||
$(DIST)\lib\raptorbase.lib \
|
||||
$(DIST)\lib\raptorgfx.lib \
|
||||
$(DIST)\lib\raptorhtml.lib \
|
||||
$(DIST)\lib\raptorweb.lib \
|
||||
$(DIST)\lib\DebugRobot.lib \
|
||||
$(DIST)\lib\xpcom32.lib \
|
||||
$(DIST)\lib\js3240.lib \
|
||||
$(LIBNSPR) \
|
||||
|
@ -42,6 +42,7 @@
|
||||
#define VIEWER_DUMP_FRAMES 40023
|
||||
#define VIEWER_DUMP_VIEWS 40024
|
||||
#define VIEWER_DUMP_STYLE 40025
|
||||
#define VIEWER_DEBUGROBOT 40026
|
||||
|
||||
// Note: must be in ascending sequential order
|
||||
#define VIEWER_ONE_COLUMN 40031
|
||||
|
@ -65,6 +65,8 @@ VIEWER MENU DISCARDABLE
|
||||
MENUITEM "Dump &Frames", VIEWER_DUMP_FRAMES
|
||||
MENUITEM "Dump &Views", VIEWER_DUMP_VIEWS
|
||||
MENUITEM "Dump &Style", VIEWER_DUMP_STYLE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Debu&g Robot", VIEWER_DEBUGROBOT
|
||||
}
|
||||
POPUP "&Tools"
|
||||
{
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "nsIPresContext.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDocumentObserver.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsUnitConversion.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsCRT.h"
|
||||
@ -49,6 +50,9 @@
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsDocLoader.h"
|
||||
|
||||
// DebugRobot call
|
||||
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList);
|
||||
|
||||
// Selection Repaint includes
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIFrame.h"
|
||||
@ -458,7 +462,17 @@ WndProc(HWND hWnd, UINT msg, WPARAM param, LPARAM lparam)
|
||||
wd->ww->DumpStyle();
|
||||
}
|
||||
break;
|
||||
|
||||
case VIEWER_DEBUGROBOT:
|
||||
if ((nsnull != wd) && (nsnull != wd->ww)) {
|
||||
nsIDocument* doc = wd->ww->GetDocument();
|
||||
if (nsnull!=doc) {
|
||||
const char * str = doc->GetDocumentURL()->GetSpec();
|
||||
nsVoidArray * gWorkList = new nsVoidArray();
|
||||
gWorkList->AppendElement(new nsString(str));
|
||||
DebugRobot(gWorkList);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case VIEWER_ONE_COLUMN:
|
||||
case VIEWER_TWO_COLUMN:
|
||||
case VIEWER_THREE_COLUMN:
|
||||
|
Loading…
x
Reference in New Issue
Block a user