michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsListBoxLayout_h___ michael@0: #define nsListBoxLayout_h___ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsGridRowGroupLayout.h" michael@0: michael@0: class nsIFrame; michael@0: typedef class nsIFrame nsIFrame; michael@0: class nsBoxLayoutState; michael@0: michael@0: class nsListBoxLayout : public nsGridRowGroupLayout michael@0: { michael@0: public: michael@0: nsListBoxLayout(); michael@0: michael@0: // nsBoxLayout michael@0: NS_IMETHOD Layout(nsIFrame* aBox, nsBoxLayoutState& aState) MOZ_OVERRIDE; michael@0: virtual nsSize GetPrefSize(nsIFrame* aBox, nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE; michael@0: virtual nsSize GetMinSize(nsIFrame* aBox, nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE; michael@0: virtual nsSize GetMaxSize(nsIFrame* aBox, nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE; michael@0: michael@0: protected: michael@0: NS_IMETHOD LayoutInternal(nsIFrame* aBox, nsBoxLayoutState& aState); michael@0: }; michael@0: michael@0: #endif michael@0: