gecko-dev/layout/inspector/inDeepTreeWalker.h
Carsten "Tomcat" Book 08d815245e Backed out changeset 1dcb339812d1 (bug 945091) for mochitest-8 bustage on a CLOSED TREE
--HG--
rename : layout/inspector/inICSSValueSearch.idl => layout/inspector/public/inICSSValueSearch.idl
rename : layout/inspector/inIDOMUtils.idl => layout/inspector/public/inIDOMUtils.idl
rename : layout/inspector/inIDOMView.idl => layout/inspector/public/inIDOMView.idl
rename : layout/inspector/inIDeepTreeWalker.idl => layout/inspector/public/inIDeepTreeWalker.idl
rename : layout/inspector/inIFlasher.idl => layout/inspector/public/inIFlasher.idl
rename : layout/inspector/inISearchObserver.idl => layout/inspector/public/inISearchObserver.idl
rename : layout/inspector/inISearchProcess.idl => layout/inspector/public/inISearchProcess.idl
rename : layout/inspector/nsIDOMFontFace.idl => layout/inspector/public/nsIDOMFontFace.idl
rename : layout/inspector/nsIDOMFontFaceList.idl => layout/inspector/public/nsIDOMFontFaceList.idl
rename : layout/inspector/inCSSValueSearch.cpp => layout/inspector/src/inCSSValueSearch.cpp
rename : layout/inspector/inCSSValueSearch.h => layout/inspector/src/inCSSValueSearch.h
rename : layout/inspector/inDOMUtils.cpp => layout/inspector/src/inDOMUtils.cpp
rename : layout/inspector/inDOMUtils.h => layout/inspector/src/inDOMUtils.h
rename : layout/inspector/inDOMView.cpp => layout/inspector/src/inDOMView.cpp
rename : layout/inspector/inDOMView.h => layout/inspector/src/inDOMView.h
rename : layout/inspector/inDeepTreeWalker.cpp => layout/inspector/src/inDeepTreeWalker.cpp
rename : layout/inspector/inDeepTreeWalker.h => layout/inspector/src/inDeepTreeWalker.h
rename : layout/inspector/inFlasher.cpp => layout/inspector/src/inFlasher.cpp
rename : layout/inspector/inFlasher.h => layout/inspector/src/inFlasher.h
rename : layout/inspector/inLayoutUtils.cpp => layout/inspector/src/inLayoutUtils.cpp
rename : layout/inspector/inLayoutUtils.h => layout/inspector/src/inLayoutUtils.h
rename : layout/inspector/inSearchLoop.cpp => layout/inspector/src/inSearchLoop.cpp
rename : layout/inspector/inSearchLoop.h => layout/inspector/src/inSearchLoop.h
rename : layout/inspector/moz.build => layout/inspector/src/moz.build
rename : layout/inspector/nsFontFace.cpp => layout/inspector/src/nsFontFace.cpp
rename : layout/inspector/nsFontFace.h => layout/inspector/src/nsFontFace.h
rename : layout/inspector/nsFontFaceList.cpp => layout/inspector/src/nsFontFaceList.cpp
rename : layout/inspector/nsFontFaceList.h => layout/inspector/src/nsFontFaceList.h
2013-12-04 09:24:09 +01:00

56 lines
1.3 KiB
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef __inDeepTreeWalker_h___
#define __inDeepTreeWalker_h___
#include "inIDeepTreeWalker.h"
#include "nsCOMPtr.h"
#include "nsIDOMNode.h"
#include "nsTArray.h"
class inIDOMUtils;
////////////////////////////////////////////////////
struct DeepTreeStackItem
{
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIDOMNodeList> kids;
uint32_t lastIndex; // Index one bigger than the index of whatever
// kid we're currently at in |kids|.
};
////////////////////////////////////////////////////
class inDeepTreeWalker : public inIDeepTreeWalker
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMTREEWALKER
NS_DECL_INIDEEPTREEWALKER
inDeepTreeWalker();
virtual ~inDeepTreeWalker();
protected:
void PushNode(nsIDOMNode* aNode);
bool mShowAnonymousContent;
bool mShowSubDocuments;
nsCOMPtr<nsIDOMNode> mRoot;
nsCOMPtr<nsIDOMNode> mCurrentNode;
uint32_t mWhatToShow;
nsAutoTArray<DeepTreeStackItem, 8> mStack;
nsCOMPtr<inIDOMUtils> mDOMUtils;
};
// {BFCB82C2-5611-4318-90D6-BAF4A7864252}
#define IN_DEEPTREEWALKER_CID \
{ 0xbfcb82c2, 0x5611, 0x4318, { 0x90, 0xd6, 0xba, 0xf4, 0xa7, 0x86, 0x42, 0x52 } }
#endif // __inDeepTreeWalker_h___