2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsListBoxLayout_h___
|
|
|
|
#define nsListBoxLayout_h___
|
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsGridRowGroupLayout.h"
|
|
|
|
|
2012-08-05 20:00:56 -07:00
|
|
|
class nsIFrame;
|
2012-08-05 20:00:57 -07:00
|
|
|
typedef class nsIFrame nsIFrame;
|
2007-03-22 10:30:00 -07:00
|
|
|
class nsBoxLayoutState;
|
|
|
|
|
|
|
|
class nsListBoxLayout : public nsGridRowGroupLayout
|
|
|
|
{
|
|
|
|
public:
|
2009-01-19 10:31:33 -08:00
|
|
|
nsListBoxLayout();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-07-11 07:05:10 -07:00
|
|
|
// nsBoxLayout
|
2012-09-14 09:10:08 -07:00
|
|
|
NS_IMETHOD Layout(nsIFrame* aBox, nsBoxLayoutState& aState) MOZ_OVERRIDE;
|
|
|
|
virtual nsSize GetPrefSize(nsIFrame* aBox, nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
2013-05-14 09:33:23 -07:00
|
|
|
virtual nsSize GetMinSize(nsIFrame* aBox, nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
2012-09-14 09:10:08 -07:00
|
|
|
virtual nsSize GetMaxSize(nsIFrame* aBox, nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
protected:
|
2012-08-05 20:00:57 -07:00
|
|
|
NS_IMETHOD LayoutInternal(nsIFrame* aBox, nsBoxLayoutState& aState);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|