Added GetFrameName

This commit is contained in:
kipp%netscape.com 1999-07-14 17:32:56 +00:00
parent bfeb95abce
commit 8e14dafaf7
5 changed files with 17 additions and 0 deletions

View File

@ -95,6 +95,8 @@ public:
nsIAtom* aListName,
nsIFrame* aOldFrame);
NS_IMETHOD GetFrameName(nsString& aResult) const;
PRBool IsHorizontal() const { return mHorizontal; }

View File

@ -199,3 +199,9 @@ nsGrippyFrame::GetChildAt(nsIFrame* parent, PRInt32 index)
return nsnull;
}
NS_IMETHODIMP
nsGrippyFrame::GetFrameName(nsString& aResult) const
{
aResult = "Grippy";
return NS_OK;
}

View File

@ -38,6 +38,8 @@ public:
friend nsresult NS_NewGrippyFrame(nsIFrame** aNewFrame);
NS_IMETHOD GetFrameName(nsString& aResult) const;
static nsIFrame* GetChildBeforeAfter(nsIFrame* start, PRBool before);
static nsIFrame* GetChildAt(nsIFrame* parent, PRInt32 index);
static PRInt32 IndexOf(nsIFrame* parent, nsIFrame* child);

View File

@ -1254,3 +1254,9 @@ nsTitledButtonFrame::Release(void)
return NS_OK;
}
NS_IMETHODIMP
nsTitledButtonFrame::GetFrameName(nsString& aResult) const
{
aResult = "TitledButton";
return NS_OK;
}

View File

@ -59,6 +59,7 @@ public:
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
NS_IMETHOD GetFrameName(nsString& aResult) const;
virtual void UpdateAttributes(nsIPresContext& aPresContext);
virtual void UpdateImage(nsIPresContext& aPresContext);