layout/xul/nsListItemFrame.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/nsListItemFrame.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "mozilla/Attributes.h"
    1.10 +#include "nsGridRowLeafFrame.h"
    1.11 +
    1.12 +nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell,
    1.13 +                              nsStyleContext *aContext);
    1.14 +
    1.15 +class nsListItemFrame : public nsGridRowLeafFrame
    1.16 +{
    1.17 +public:
    1.18 +  NS_DECL_FRAMEARENA_HELPERS
    1.19 +
    1.20 +  friend nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell,
    1.21 +                                       nsStyleContext *aContext);
    1.22 +
    1.23 +  // overridden so that children of listitems don't handle mouse events,
    1.24 +  // unless allowevents="true" is specified on the listitem
    1.25 +  virtual void BuildDisplayListForChildren(nsDisplayListBuilder*   aBuilder,
    1.26 +                                           const nsRect&           aDirtyRect,
    1.27 +                                           const nsDisplayListSet& aLists) MOZ_OVERRIDE;
    1.28 +
    1.29 +  virtual nsSize GetPrefSize(nsBoxLayoutState& aState) MOZ_OVERRIDE;
    1.30 +
    1.31 +protected:
    1.32 +  nsListItemFrame(nsIPresShell* aPresShell,
    1.33 +                  nsStyleContext *aContext,
    1.34 +                  bool aIsRoot = false,
    1.35 +                  nsBoxLayout* aLayoutManager = nullptr);
    1.36 +  virtual ~nsListItemFrame();
    1.37 +
    1.38 +}; // class nsListItemFrame

mercurial