michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: michael@0: /* This Source Code is subject to the terms of the Mozilla Public License michael@0: * version 2.0 (the "License"). You can obtain a copy of the License at michael@0: * http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* rendering object for CSS "display: grid" */ michael@0: michael@0: #ifndef nsGridContainerFrame_h___ michael@0: #define nsGridContainerFrame_h___ michael@0: michael@0: #include "nsContainerFrame.h" michael@0: michael@0: nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell, michael@0: nsStyleContext* aContext); michael@0: michael@0: typedef nsContainerFrame nsGridContainerFrameSuper; michael@0: michael@0: class nsGridContainerFrame : public nsGridContainerFrameSuper { michael@0: michael@0: NS_DECL_FRAMEARENA_HELPERS michael@0: NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame) michael@0: NS_DECL_QUERYFRAME michael@0: michael@0: // Factory method: michael@0: friend nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell, michael@0: nsStyleContext* aContext); michael@0: michael@0: public: michael@0: // nsIFrame overrides michael@0: virtual nsIAtom* GetType() const MOZ_OVERRIDE; michael@0: #ifdef DEBUG_FRAME_DUMP michael@0: virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE; michael@0: #endif michael@0: michael@0: protected: michael@0: // Protected constructor & destructor michael@0: nsGridContainerFrame(nsStyleContext* aContext) : nsGridContainerFrameSuper(aContext) {} michael@0: virtual ~nsGridContainerFrame(); michael@0: }; michael@0: michael@0: #endif /* nsGridContainerFrame_h___ */