/src/mozilla-central/layout/xul/grid/nsGridRowLeafFrame.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | /** |
8 | | |
9 | | Eric D Vaughan |
10 | | A frame that can have multiple children. Only one child may be displayed at one time. So the |
11 | | can be flipped though like a deck of cards. |
12 | | |
13 | | **/ |
14 | | |
15 | | #ifndef nsGridRowLeafFrame_h___ |
16 | | #define nsGridRowLeafFrame_h___ |
17 | | |
18 | | #include "mozilla/Attributes.h" |
19 | | #include "nsBoxFrame.h" |
20 | | |
21 | | /** |
22 | | * A frame representing a grid row (or column). Grid row (and column) |
23 | | * elements are the children of row group (or column group) elements, |
24 | | * and their children are placed one to a cell. |
25 | | */ |
26 | | // XXXldb This needs a better name that indicates that it's for any grid |
27 | | // row. |
28 | | class nsGridRowLeafFrame : public nsBoxFrame |
29 | | { |
30 | | public: |
31 | | NS_DECL_FRAMEARENA_HELPERS(nsGridRowLeafFrame) |
32 | | |
33 | | friend nsIFrame* NS_NewGridRowLeafFrame(nsIPresShell* aPresShell, |
34 | | ComputedStyle* aStyle); |
35 | | |
36 | | #ifdef DEBUG_FRAME_DUMP |
37 | | virtual nsresult GetFrameName(nsAString& aResult) const override |
38 | | { |
39 | | return MakeFrameName(NS_LITERAL_STRING("nsGridRowLeaf"), aResult); |
40 | | } |
41 | | #endif |
42 | | |
43 | | nsGridRowLeafFrame(ComputedStyle* aStyle, |
44 | | bool aIsRoot, |
45 | | nsBoxLayout* aLayoutManager, |
46 | | ClassID aID = kClassID) : |
47 | 0 | nsBoxFrame(aStyle, aID, aIsRoot, aLayoutManager) {} |
48 | | |
49 | | virtual nsresult GetXULBorderAndPadding(nsMargin& aBorderAndPadding) override; |
50 | | |
51 | | }; // class nsGridRowLeafFrame |
52 | | |
53 | | |
54 | | |
55 | | #endif |
56 | | |