/src/mozilla-central/layout/xul/grid/nsGridRowGroupFrame.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 nsGridRowGroupFrame_h___ |
16 | | #define nsGridRowGroupFrame_h___ |
17 | | |
18 | | #include "mozilla/Attributes.h" |
19 | | #include "nsBoxFrame.h" |
20 | | |
21 | | /** |
22 | | * A frame representing a grid row (or column) group, which is usually |
23 | | * an element that is a child of a grid and contains all the rows (or |
24 | | * all the columns). However, multiple levels of groups are allowed, so |
25 | | * the parent or child could instead be another group. |
26 | | */ |
27 | | class nsGridRowGroupFrame final : public nsBoxFrame |
28 | | { |
29 | | public: |
30 | | NS_DECL_FRAMEARENA_HELPERS(nsGridRowGroupFrame) |
31 | | |
32 | | #ifdef DEBUG_FRAME_DUMP |
33 | | virtual nsresult GetFrameName(nsAString& aResult) const override |
34 | | { |
35 | | return MakeFrameName(NS_LITERAL_STRING("nsGridRowGroup"), aResult); |
36 | | } |
37 | | #endif |
38 | | |
39 | | nsGridRowGroupFrame(ComputedStyle* aStyle, |
40 | | nsBoxLayout* aLayoutManager): |
41 | 0 | nsBoxFrame(aStyle, kClassID, false, aLayoutManager) {} |
42 | | |
43 | | virtual nscoord GetXULFlex() override; |
44 | | |
45 | | }; // class nsGridRowGroupFrame |
46 | | |
47 | | |
48 | | |
49 | | #endif |
50 | | |