layout/xul/grid/nsGridRowGroupFrame.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 /* -*- 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 /**
michael@0 7
michael@0 8 Eric D Vaughan
michael@0 9 A frame that can have multiple children. Only one child may be displayed at one time. So the
michael@0 10 can be flipped though like a deck of cards.
michael@0 11
michael@0 12 **/
michael@0 13
michael@0 14 #ifndef nsGridRowGroupFrame_h___
michael@0 15 #define nsGridRowGroupFrame_h___
michael@0 16
michael@0 17 #include "mozilla/Attributes.h"
michael@0 18 #include "nsBoxFrame.h"
michael@0 19
michael@0 20 /**
michael@0 21 * A frame representing a grid row (or column) group, which is usually
michael@0 22 * an element that is a child of a grid and contains all the rows (or
michael@0 23 * all the columns). However, multiple levels of groups are allowed, so
michael@0 24 * the parent or child could instead be another group.
michael@0 25 */
michael@0 26 class nsGridRowGroupFrame : public nsBoxFrame
michael@0 27 {
michael@0 28 public:
michael@0 29 NS_DECL_FRAMEARENA_HELPERS
michael@0 30
michael@0 31 #ifdef DEBUG_FRAME_DUMP
michael@0 32 virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE
michael@0 33 {
michael@0 34 return MakeFrameName(NS_LITERAL_STRING("nsGridRowGroup"), aResult);
michael@0 35 }
michael@0 36 #endif
michael@0 37
michael@0 38 nsGridRowGroupFrame(nsIPresShell* aPresShell,
michael@0 39 nsStyleContext* aContext,
michael@0 40 nsBoxLayout* aLayoutManager):
michael@0 41 nsBoxFrame(aPresShell, aContext, false, aLayoutManager) {}
michael@0 42
michael@0 43 virtual nscoord GetFlex(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
michael@0 44
michael@0 45 }; // class nsGridRowGroupFrame
michael@0 46
michael@0 47
michael@0 48
michael@0 49 #endif
michael@0 50

mercurial