84230 - DOM Inspector revival, rs=hyatt

This commit is contained in:
hewitt%netscape.com 2006-05-17 02:22:15 +00:00
parent 80118f3400
commit fa7a1245de
6 changed files with 72 additions and 22 deletions

View File

@ -1,5 +1,4 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
@ -14,10 +13,11 @@
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Joe Hewitt <hewitt@netscape.com> (original author)
*/
#include "nsISupports.idl"
@ -29,7 +29,7 @@ interface nsIDOMWindowInternal;
[scriptable, uuid(7B4A099F-6F6E-4565-977B-FB622ADBFF49)]
interface inIFlasher : nsISupports
{
void drawElementOutline(in nsIDOMElement aElement, in nsIDOMWindowInternal aWindow, in wstring aColor, in long aThickness);
void repaintElement(in nsIDOMElement aElement, in nsIDOMWindowInternal aWindow);
void drawElementOutline(in nsIDOMElement aElement, in wstring aColor, in long aThickness);
void repaintElement(in nsIDOMElement aElement);
};

View File

@ -30,15 +30,13 @@
class inDOMUtils : public inIDOMUtils
{
public:
inDOMUtils();
~inDOMUtils();
protected:
public:
NS_DECL_ISUPPORTS
NS_DECL_INIDOMUTILS
inDOMUtils();
virtual ~inDOMUtils();
};
#endif // __inDOMUtils_h__

View File

@ -0,0 +1,54 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Joe Hewitt <hewitt@netscape.com> (original author)
*/
#ifndef __inDeepTreeWalker_h___
#define __inDeepTreeWalker_h___
#include "inIDeepTreeWalker.h"
#include "nsCOMPtr.h"
#include "nsIDOMNode.h"
#include "nsVoidArray.h"
class inDeepTreeWalker : public inIDeepTreeWalker
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMTREEWALKER
NS_DECL_INIDEEPTREEWALKER
inDeepTreeWalker();
~inDeepTreeWalker();
protected:
void PushNode(nsIDOMNode* aNode);
PRBool mShowAnonymousContent;
PRBool mShowSubDocuments;
nsCOMPtr<nsIDOMNode> mRoot;
nsCOMPtr<nsIDOMNode> mCurrentNode;
PRUint32 mWhatToShow;
nsAutoVoidArray mStack;
};
#endif // __inDeepTreeWalker_h___

View File

@ -40,13 +40,13 @@ public:
NS_DECL_INIFILESEARCH
inFileSearch();
~inFileSearch();
virtual ~inFileSearch();
protected:
// inISearchProcess related
PRBool mIsActive;
PRInt32 mResultCount;
nsIFile* mLastResult;
nsCOMPtr<nsIFile> mLastResult;
nsCOMPtr<nsISupportsArray> mResults;
PRBool mHoldResults;
nsAutoString* mBasePath;

View File

@ -39,8 +39,11 @@
class inFlasher : public inIFlasher
{
public:
NS_DECL_ISUPPORTS
NS_DECL_INIFLASHER
inFlasher();
~inFlasher();
virtual ~inFlasher();
protected:
nsIFrame* GetFrameFor(nsIDOMElement* aElement, nsIPresShell* aShell);
@ -50,11 +53,6 @@ protected:
PRUint32 aThickness, float aP2T, nsIRenderingContext* aRenderContext);
NS_IMETHOD DrawLine(nscoord aX, nscoord aY, nscoord aLength, PRUint32 aThickness,
PRBool aDir, PRBool aBounds, float aP2T, nsIRenderingContext* aRenderContext);
public:
NS_DECL_ISUPPORTS
NS_DECL_INIFLASHER
};
#endif // __inFlasher_h__

View File

@ -1,5 +1,4 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
@ -14,10 +13,11 @@
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Copyright (C) 2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Joe Hewitt <hewitt@netscape.com> (original author)
*/
#ifndef __inSearchLoop_h__