LCOV - code coverage report
Current view: top level - layout/xul - nsSplitterFrame.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 4 25.0 %
Date: 2017-07-14 16:53:18 Functions: 1 4 25.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : //
       7             : // nsSplitterFrame
       8             : //
       9             : 
      10             : #ifndef nsSplitterFrame_h__
      11             : #define nsSplitterFrame_h__
      12             : 
      13             : 
      14             : #include "mozilla/Attributes.h"
      15             : #include "nsBoxFrame.h"
      16             : 
      17             : class nsSplitterFrameInner;
      18             : 
      19             : nsIFrame* NS_NewSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
      20             : 
      21           0 : class nsSplitterFrame final : public nsBoxFrame
      22             : {
      23             : public:
      24           3 :   NS_DECL_FRAMEARENA_HELPERS(nsSplitterFrame)
      25             : 
      26             :   explicit nsSplitterFrame(nsStyleContext* aContext);
      27             :   virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
      28             : 
      29             : #ifdef DEBUG_FRAME_DUMP
      30           0 :   virtual nsresult GetFrameName(nsAString& aResult) const override {
      31           0 :     return MakeFrameName(NS_LITERAL_STRING("SplitterFrame"), aResult);
      32             :   }
      33             : #endif
      34             : 
      35             :   // nsIFrame overrides
      36             :   virtual nsresult AttributeChanged(int32_t aNameSpaceID,
      37             :                                     nsIAtom* aAttribute,
      38             :                                     int32_t aModType) override;
      39             : 
      40             :   virtual void Init(nsIContent*       aContent,
      41             :                     nsContainerFrame* aParent,
      42             :                     nsIFrame*         aPrevInFlow) override;
      43             : 
      44             :   virtual nsresult GetCursor(const nsPoint&    aPoint,
      45             :                              nsIFrame::Cursor& aCursor) override;
      46             : 
      47             :   NS_IMETHOD DoXULLayout(nsBoxLayoutState& aBoxLayoutState) override;
      48             : 
      49             :   NS_IMETHOD HandlePress(nsPresContext* aPresContext,
      50             :                          mozilla::WidgetGUIEvent* aEvent,
      51             :                          nsEventStatus* aEventStatus) override;
      52             : 
      53             :   NS_IMETHOD HandleMultiplePress(nsPresContext* aPresContext,
      54             :                                  mozilla::WidgetGUIEvent* aEvent,
      55             :                                  nsEventStatus* aEventStatus,
      56             :                                  bool aControlHeld) override;
      57             : 
      58             :   NS_IMETHOD HandleDrag(nsPresContext* aPresContext,
      59             :                         mozilla::WidgetGUIEvent* aEvent,
      60             :                         nsEventStatus* aEventStatus) override;
      61             : 
      62             :   NS_IMETHOD HandleRelease(nsPresContext* aPresContext,
      63             :                            mozilla::WidgetGUIEvent* aEvent,
      64             :                            nsEventStatus* aEventStatus) override;
      65             : 
      66             :   virtual nsresult HandleEvent(nsPresContext* aPresContext,
      67             :                                mozilla::WidgetGUIEvent* aEvent,
      68             :                                nsEventStatus* aEventStatus) override;
      69             : 
      70             :   virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
      71             :                                 const nsRect&           aDirtyRect,
      72             :                                 const nsDisplayListSet& aLists) override;
      73             : 
      74             :   virtual void GetInitialOrientation(bool& aIsHorizontal) override;
      75             : 
      76             : private:
      77             : 
      78             :   friend class nsSplitterFrameInner;
      79             :   nsSplitterFrameInner* mInner;
      80             : 
      81             : }; // class nsSplitterFrame
      82             : 
      83             : #endif

Generated by: LCOV version 1.13