layout/inspector/inDeepTreeWalker.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef __inDeepTreeWalker_h___
michael@0 6 #define __inDeepTreeWalker_h___
michael@0 7
michael@0 8 #include "inIDeepTreeWalker.h"
michael@0 9
michael@0 10 #include "nsCOMPtr.h"
michael@0 11 #include "nsIDOMNode.h"
michael@0 12 #include "nsTArray.h"
michael@0 13
michael@0 14 class inIDOMUtils;
michael@0 15
michael@0 16 ////////////////////////////////////////////////////
michael@0 17
michael@0 18 struct DeepTreeStackItem
michael@0 19 {
michael@0 20 nsCOMPtr<nsIDOMNode> node;
michael@0 21 nsCOMPtr<nsIDOMNodeList> kids;
michael@0 22 uint32_t lastIndex; // Index one bigger than the index of whatever
michael@0 23 // kid we're currently at in |kids|.
michael@0 24 };
michael@0 25
michael@0 26 ////////////////////////////////////////////////////
michael@0 27
michael@0 28 class inDeepTreeWalker : public inIDeepTreeWalker
michael@0 29 {
michael@0 30 public:
michael@0 31 NS_DECL_ISUPPORTS
michael@0 32 NS_DECL_NSIDOMTREEWALKER
michael@0 33 NS_DECL_INIDEEPTREEWALKER
michael@0 34
michael@0 35 inDeepTreeWalker();
michael@0 36 virtual ~inDeepTreeWalker();
michael@0 37
michael@0 38 protected:
michael@0 39 void PushNode(nsIDOMNode* aNode);
michael@0 40
michael@0 41 bool mShowAnonymousContent;
michael@0 42 bool mShowSubDocuments;
michael@0 43 nsCOMPtr<nsIDOMNode> mRoot;
michael@0 44 nsCOMPtr<nsIDOMNode> mCurrentNode;
michael@0 45 uint32_t mWhatToShow;
michael@0 46
michael@0 47 nsAutoTArray<DeepTreeStackItem, 8> mStack;
michael@0 48 nsCOMPtr<inIDOMUtils> mDOMUtils;
michael@0 49 };
michael@0 50
michael@0 51 // {BFCB82C2-5611-4318-90D6-BAF4A7864252}
michael@0 52 #define IN_DEEPTREEWALKER_CID \
michael@0 53 { 0xbfcb82c2, 0x5611, 0x4318, { 0x90, 0xd6, 0xba, 0xf4, 0xa7, 0x86, 0x42, 0x52 } }
michael@0 54
michael@0 55 #endif // __inDeepTreeWalker_h___

mercurial