layout/xul/nsSplitterFrame.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/nsSplitterFrame.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,83 @@
     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 +//
    1.10 +// nsSplitterFrame
    1.11 +//
    1.12 +
    1.13 +#ifndef nsSplitterFrame_h__
    1.14 +#define nsSplitterFrame_h__
    1.15 +
    1.16 +
    1.17 +#include "mozilla/Attributes.h"
    1.18 +#include "nsBoxFrame.h"
    1.19 +
    1.20 +class nsSplitterFrameInner;
    1.21 +
    1.22 +nsIFrame* NS_NewSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    1.23 +
    1.24 +class nsSplitterFrame : public nsBoxFrame
    1.25 +{
    1.26 +public:
    1.27 +  NS_DECL_FRAMEARENA_HELPERS
    1.28 +
    1.29 +  nsSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    1.30 +  virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
    1.31 +
    1.32 +#ifdef DEBUG_FRAME_DUMP
    1.33 +  virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE {
    1.34 +    return MakeFrameName(NS_LITERAL_STRING("SplitterFrame"), aResult);
    1.35 +  }
    1.36 +#endif
    1.37 +
    1.38 +  // nsIFrame overrides
    1.39 +  virtual nsresult AttributeChanged(int32_t aNameSpaceID,
    1.40 +                                    nsIAtom* aAttribute,
    1.41 +                                    int32_t aModType) MOZ_OVERRIDE;
    1.42 +
    1.43 +  virtual void Init(nsIContent*      aContent,
    1.44 +                    nsIFrame*        aParent,
    1.45 +                    nsIFrame*        aPrevInFlow) MOZ_OVERRIDE;
    1.46 +
    1.47 +  virtual nsresult GetCursor(const nsPoint&    aPoint,
    1.48 +                             nsIFrame::Cursor& aCursor) MOZ_OVERRIDE;
    1.49 +
    1.50 +  NS_IMETHOD DoLayout(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
    1.51 +
    1.52 +  NS_IMETHOD HandlePress(nsPresContext* aPresContext,
    1.53 +                         mozilla::WidgetGUIEvent* aEvent,
    1.54 +                         nsEventStatus* aEventStatus) MOZ_OVERRIDE;
    1.55 +
    1.56 +  NS_IMETHOD HandleMultiplePress(nsPresContext* aPresContext,
    1.57 +                                 mozilla::WidgetGUIEvent* aEvent,
    1.58 +                                 nsEventStatus* aEventStatus,
    1.59 +                                 bool aControlHeld) MOZ_OVERRIDE;
    1.60 +
    1.61 +  NS_IMETHOD HandleDrag(nsPresContext* aPresContext,
    1.62 +                        mozilla::WidgetGUIEvent* aEvent,
    1.63 +                        nsEventStatus* aEventStatus) MOZ_OVERRIDE;
    1.64 +
    1.65 +  NS_IMETHOD HandleRelease(nsPresContext* aPresContext,
    1.66 +                           mozilla::WidgetGUIEvent* aEvent,
    1.67 +                           nsEventStatus* aEventStatus) MOZ_OVERRIDE;
    1.68 +
    1.69 +  virtual nsresult HandleEvent(nsPresContext* aPresContext,
    1.70 +                               mozilla::WidgetGUIEvent* aEvent,
    1.71 +                               nsEventStatus* aEventStatus) MOZ_OVERRIDE;
    1.72 +
    1.73 +  virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
    1.74 +                                const nsRect&           aDirtyRect,
    1.75 +                                const nsDisplayListSet& aLists) MOZ_OVERRIDE;
    1.76 +
    1.77 +  virtual void GetInitialOrientation(bool& aIsHorizontal) MOZ_OVERRIDE; 
    1.78 +
    1.79 +private:
    1.80 +
    1.81 +  friend class nsSplitterFrameInner;
    1.82 +  nsSplitterFrameInner* mInner;
    1.83 +
    1.84 +}; // class nsSplitterFrame
    1.85 +
    1.86 +#endif

mercurial