layout/xul/tree/nsTreeColFrame.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "mozilla/Attributes.h"
michael@0 7 #include "nsBoxFrame.h"
michael@0 8
michael@0 9 class nsITreeBoxObject;
michael@0 10
michael@0 11 nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
michael@0 12 nsStyleContext* aContext);
michael@0 13
michael@0 14 class nsTreeColFrame : public nsBoxFrame
michael@0 15 {
michael@0 16 public:
michael@0 17 NS_DECL_FRAMEARENA_HELPERS
michael@0 18
michael@0 19 nsTreeColFrame(nsIPresShell* aPresShell,
michael@0 20 nsStyleContext* aContext):
michael@0 21 nsBoxFrame(aPresShell, aContext) {}
michael@0 22
michael@0 23 virtual void Init(nsIContent* aContent,
michael@0 24 nsIFrame* aParent,
michael@0 25 nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
michael@0 26
michael@0 27 virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
michael@0 28
michael@0 29 virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
michael@0 30 const nsRect& aDirtyRect,
michael@0 31 const nsDisplayListSet& aLists) MOZ_OVERRIDE;
michael@0 32
michael@0 33 virtual nsresult AttributeChanged(int32_t aNameSpaceID,
michael@0 34 nsIAtom* aAttribute,
michael@0 35 int32_t aModType) MOZ_OVERRIDE;
michael@0 36
michael@0 37 virtual void SetBounds(nsBoxLayoutState& aBoxLayoutState, const nsRect& aRect,
michael@0 38 bool aRemoveOverflowArea = false) MOZ_OVERRIDE;
michael@0 39
michael@0 40 friend nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
michael@0 41 nsStyleContext* aContext);
michael@0 42
michael@0 43 protected:
michael@0 44 virtual ~nsTreeColFrame();
michael@0 45
michael@0 46 /**
michael@0 47 * @return the tree box object of the tree this column belongs to, or nullptr.
michael@0 48 */
michael@0 49 nsITreeBoxObject* GetTreeBoxObject();
michael@0 50
michael@0 51 /**
michael@0 52 * Helper method that gets the nsITreeColumns object this column belongs to
michael@0 53 * and calls InvalidateColumns() on it.
michael@0 54 */
michael@0 55 void InvalidateColumns(bool aCanWalkFrameTree = true);
michael@0 56 };

mercurial