1999-08-06 22:16:27 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04: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-08-06 22:16:27 +04:00
|
|
|
|
|
|
|
#ifndef nsPopupSetFrame_h__
|
|
|
|
#define nsPopupSetFrame_h__
|
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-08-06 22:16:27 +04:00
|
|
|
#include "nsIAtom.h"
|
|
|
|
#include "nsBoxFrame.h"
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
nsIFrame* NS_NewPopupSetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
1999-08-06 22:16:27 +04:00
|
|
|
|
2007-07-04 19:49:38 +04:00
|
|
|
class nsPopupSetFrame : public nsBoxFrame
|
1999-08-06 22:16:27 +04:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
nsPopupSetFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
|
|
|
nsBoxFrame(aShell, aContext) {}
|
1999-08-06 22:16:27 +04:00
|
|
|
|
2007-07-04 19:49:38 +04:00
|
|
|
~nsPopupSetFrame() {}
|
1999-08-06 22:16:27 +04:00
|
|
|
|
2013-03-20 05:47:48 +04:00
|
|
|
virtual void Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
2014-02-18 11:47:48 +04:00
|
|
|
virtual nsresult AppendFrames(ChildListID aListID,
|
2014-02-18 12:36:33 +04:00
|
|
|
nsFrameList& aFrameList) MOZ_OVERRIDE;
|
2014-02-18 11:47:48 +04:00
|
|
|
virtual nsresult RemoveFrame(ChildListID aListID,
|
2014-02-18 12:36:33 +04:00
|
|
|
nsIFrame* aOldFrame) MOZ_OVERRIDE;
|
2014-02-18 11:47:48 +04:00
|
|
|
virtual nsresult InsertFrames(ChildListID aListID,
|
2014-02-18 12:36:33 +04:00
|
|
|
nsIFrame* aPrevFrame,
|
|
|
|
nsFrameList& aFrameList) MOZ_OVERRIDE;
|
|
|
|
virtual nsresult SetInitialChildList(ChildListID aListID,
|
|
|
|
nsFrameList& aChildList) MOZ_OVERRIDE;
|
2007-07-04 19:49:38 +04:00
|
|
|
|
2013-11-04 20:22:20 +04:00
|
|
|
virtual const nsFrameList& GetChildList(ChildListID aList) const MOZ_OVERRIDE;
|
|
|
|
virtual void GetChildLists(nsTArray<ChildList>* aLists) const MOZ_OVERRIDE;
|
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
NS_IMETHOD DoLayout(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
2000-03-02 06:01:30 +03:00
|
|
|
|
2001-08-18 05:04:47 +04:00
|
|
|
// Used to destroy our popup frames.
|
2012-09-14 20:10:08 +04:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
1999-08-06 22:16:27 +04:00
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
virtual nsIAtom* GetType() const MOZ_OVERRIDE;
|
2007-01-25 20:59:20 +03:00
|
|
|
|
2014-01-06 03:31:14 +04:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2014-02-18 11:47:48 +04:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE
|
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-10 01:02:40 +03:00
|
|
|
{
|
2001-11-14 04:33:42 +03:00
|
|
|
return MakeFrameName(NS_LITERAL_STRING("PopupSet"), aResult);
|
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-10 01:02:40 +03:00
|
|
|
}
|
2001-09-15 04:45:54 +04:00
|
|
|
#endif
|
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-10 01:02:40 +03:00
|
|
|
|
1999-08-06 22:16:27 +04:00
|
|
|
protected:
|
2010-02-09 19:05:19 +03:00
|
|
|
void AddPopupFrameList(nsFrameList& aPopupFrameList);
|
|
|
|
void RemovePopupFrame(nsIFrame* aPopup);
|
2006-08-30 02:20:41 +04:00
|
|
|
|
2010-02-09 19:05:19 +03:00
|
|
|
nsFrameList mPopupList;
|
|
|
|
};
|
1999-08-06 22:16:27 +04:00
|
|
|
|
|
|
|
#endif
|