2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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/. */
|
1999-06-30 22:17:43 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// nsSplitterFrame
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef nsSplitterFrame_h__
|
|
|
|
#define nsSplitterFrame_h__
|
|
|
|
|
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-06-30 22:17:43 +00:00
|
|
|
#include "nsBoxFrame.h"
|
|
|
|
|
1) implememted box reflow coelescing.
2) implemented gfx scrollbars for list boxes
3) fixed progess meter to be an animated gif
4) fixed bugs 23521, 24721, 19114, 20546, 24385, 24457, 23156, 20226, 22543
-r hyatt, troy, rod
2000-02-09 22:02:40 +00:00
|
|
|
class nsSplitterFrameInner;
|
1999-06-30 22:17:43 +00:00
|
|
|
|
2006-03-26 21:30:36 +00:00
|
|
|
nsIFrame* NS_NewSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
1999-06-30 22:17:43 +00:00
|
|
|
|
2001-09-18 21:47:32 +00:00
|
|
|
class nsSplitterFrame : public nsBoxFrame
|
1999-06-30 22:17:43 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-26 21:30:36 +00:00
|
|
|
nsSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
2012-09-14 16:10:08 +00:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
1999-06-30 22:17:43 +00:00
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2012-09-14 16:10:08 +00:00
|
|
|
NS_IMETHOD GetFrameName(nsAString& aResult) const MOZ_OVERRIDE {
|
2001-11-14 01:33:42 +00:00
|
|
|
return MakeFrameName(NS_LITERAL_STRING("SplitterFrame"), aResult);
|
1999-06-30 22:17:43 +00:00
|
|
|
}
|
1999-11-01 22:12:45 +00:00
|
|
|
#endif
|
1999-06-30 22:17:43 +00:00
|
|
|
|
1999-11-01 22:12:45 +00:00
|
|
|
// nsIFrame overrides
|
2012-08-22 15:56:38 +00:00
|
|
|
NS_IMETHOD AttributeChanged(int32_t aNameSpaceID,
|
1999-06-30 22:17:43 +00:00
|
|
|
nsIAtom* aAttribute,
|
2012-09-14 16:10:08 +00:00
|
|
|
int32_t aModType) MOZ_OVERRIDE;
|
1999-06-30 22:17:43 +00:00
|
|
|
|
2013-03-20 01:47:48 +00:00
|
|
|
virtual void Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
1999-06-30 22:17:43 +00:00
|
|
|
|
2004-12-30 21:56:11 +00:00
|
|
|
NS_IMETHOD GetCursor(const nsPoint& aPoint,
|
2012-09-14 16:10:08 +00:00
|
|
|
nsIFrame::Cursor& aCursor) MOZ_OVERRIDE;
|
1999-09-14 22:17:19 +00:00
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
NS_IMETHOD DoLayout(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
1999-09-14 22:17:19 +00:00
|
|
|
|
2004-07-31 23:15:21 +00:00
|
|
|
NS_IMETHOD HandlePress(nsPresContext* aPresContext,
|
2013-10-02 03:46:03 +00:00
|
|
|
mozilla::WidgetGUIEvent* aEvent,
|
|
|
|
nsEventStatus* aEventStatus) MOZ_OVERRIDE;
|
1999-09-05 20:46:59 +00:00
|
|
|
|
2004-07-31 23:15:21 +00:00
|
|
|
NS_IMETHOD HandleMultiplePress(nsPresContext* aPresContext,
|
2013-10-02 03:46:03 +00:00
|
|
|
mozilla::WidgetGUIEvent* aEvent,
|
|
|
|
nsEventStatus* aEventStatus,
|
2012-09-14 16:10:08 +00:00
|
|
|
bool aControlHeld) MOZ_OVERRIDE;
|
1999-09-05 20:46:59 +00:00
|
|
|
|
2011-08-03 03:39:02 +00:00
|
|
|
NS_IMETHOD HandleDrag(nsPresContext* aPresContext,
|
2013-10-02 03:46:03 +00:00
|
|
|
mozilla::WidgetGUIEvent* aEvent,
|
|
|
|
nsEventStatus* aEventStatus) MOZ_OVERRIDE;
|
2011-08-03 03:39:02 +00:00
|
|
|
|
|
|
|
NS_IMETHOD HandleRelease(nsPresContext* aPresContext,
|
2013-10-02 03:46:03 +00:00
|
|
|
mozilla::WidgetGUIEvent* aEvent,
|
|
|
|
nsEventStatus* aEventStatus) MOZ_OVERRIDE;
|
2011-08-03 03:39:02 +00:00
|
|
|
|
2013-10-02 03:46:03 +00:00
|
|
|
NS_IMETHOD HandleEvent(nsPresContext* aPresContext,
|
|
|
|
mozilla::WidgetGUIEvent* aEvent,
|
2012-09-14 16:10:08 +00:00
|
|
|
nsEventStatus* aEventStatus) MOZ_OVERRIDE;
|
1999-09-05 20:46:59 +00:00
|
|
|
|
2013-02-14 11:12:27 +00:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
1999-09-05 20:46:59 +00:00
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
virtual void GetInitialOrientation(bool& aIsHorizontal) MOZ_OVERRIDE;
|
2001-03-08 00:47:22 +00:00
|
|
|
|
1999-09-05 20:46:59 +00:00
|
|
|
private:
|
|
|
|
|
1) implememted box reflow coelescing.
2) implemented gfx scrollbars for list boxes
3) fixed progess meter to be an animated gif
4) fixed bugs 23521, 24721, 19114, 20546, 24385, 24457, 23156, 20226, 22543
-r hyatt, troy, rod
2000-02-09 22:02:40 +00:00
|
|
|
friend class nsSplitterFrameInner;
|
|
|
|
nsSplitterFrameInner* mInner;
|
1999-06-30 22:17:43 +00:00
|
|
|
|
|
|
|
}; // class nsSplitterFrame
|
|
|
|
|
|
|
|
#endif
|