Public Member Functions | Protected Member Functions | Protected Attributes

nsCanvasFrame Class Reference

Root frame class. More...

#include <nsCanvasFrame.h>

List of all members.

Public Member Functions

 nsCanvasFrame (nsStyleContext *aContext)
QueryInterface (const nsIID &aIID, void **aInstancePtr)
virtual nsresult Init (nsIContent *aContent, nsIFrame *aParent, nsIFrame *aPrevInFlow)
virtual void DestroyFrom (nsIFrame *aDestructRoot)
virtual nsresult SetInitialChildList (nsIAtom *aListName, nsFrameList &aChildList)
virtual nsresult AppendFrames (nsIAtom *aListName, nsFrameList &aFrameList)
virtual nsresult InsertFrames (nsIAtom *aListName, nsIFrame *aPrevFrame, nsFrameList &aFrameList)
virtual nsresult RemoveFrame (nsIAtom *aListName, nsIFrame *aOldFrame)
virtual nsIAtomGetAdditionalChildListName (PRInt32 aIndex) const
virtual nsFrameList GetChildList (nsIAtom *aListName) const
virtual nscoord GetMinWidth (nsIRenderingContext *aRenderingContext)
virtual nscoord GetPrefWidth (nsIRenderingContext *aRenderingContext)
virtual nsresult Reflow (nsPresContext *aPresContext, nsHTMLReflowMetrics &aDesiredSize, const nsHTMLReflowState &aReflowState, nsReflowStatus &aStatus)
virtual PRBool IsContainingBlock () const
virtual PRBool IsFrameOfType (PRUint32 aFlags) const
virtual nsresult SetHasFocus (PRBool aHasFocus)
 SetHasFocus tells the CanvasFrame to draw with focus ring.
virtual nsresult BuildDisplayList (nsDisplayListBuilder *aBuilder, const nsRect &aDirtyRect, const nsDisplayListSet &aLists)
void PaintFocus (nsIRenderingContext &aRenderingContext, nsPoint aPt)
virtual nsresult ScrollPositionWillChange (nscoord aX, nscoord aY)
virtual void ViewPositionDidChange (nsTArray< nsIWidget::Configuration > *aConfigurations)
virtual nsresult ScrollPositionDidChange (nscoord aX, nscoord aY)
virtual nsIAtomGetType () const
 Get the "type" of the frame.
virtual nsresult StealFrame (nsPresContext *aPresContext, nsIFrame *aChild, PRBool aForceNormal)
virtual nsresult GetContentForEvent (nsPresContext *aPresContext, nsEvent *aEvent, nsIContent **aContent)
nsRect CanvasArea () const

Protected Member Functions

virtual PRIntn GetSkipSides () const

Protected Attributes

PRPackedBool mDoPaintFocus
nsAbsoluteContainingBlock mAbsoluteContainer

Detailed Description

Root frame class.

The root frame is the parent frame for the document element's frame. It only supports having a single child frame which must be an area frame

Constructor & Destructor Documentation

nsCanvasFrame::nsCanvasFrame ( nsStyleContext aContext  )  [inline]

Member Function Documentation

virtual nsresult nsCanvasFrame::AppendFrames ( nsIAtom aListName,
nsFrameList aFrameList 
) [virtual]
virtual nsresult nsCanvasFrame::BuildDisplayList ( nsDisplayListBuilder aBuilder,
const nsRect aDirtyRect,
const nsDisplayListSet aLists 
) [virtual]
nsRect nsCanvasFrame::CanvasArea (  )  const
virtual void nsCanvasFrame::DestroyFrom ( nsIFrame *  aDestructRoot  )  [virtual]
virtual nsIAtom* nsCanvasFrame::GetAdditionalChildListName ( PRInt32  aIndex  )  const [virtual]
virtual nsFrameList nsCanvasFrame::GetChildList ( nsIAtom aListName  )  const [virtual]
virtual nsresult nsCanvasFrame::GetContentForEvent ( nsPresContext aPresContext,
nsEvent aEvent,
nsIContent **  aContent 
) [virtual]
virtual nscoord nsCanvasFrame::GetMinWidth ( nsIRenderingContext *  aRenderingContext  )  [virtual]
virtual nscoord nsCanvasFrame::GetPrefWidth ( nsIRenderingContext *  aRenderingContext  )  [virtual]
virtual PRIntn nsCanvasFrame::GetSkipSides (  )  const [protected, virtual]
virtual nsIAtom* nsCanvasFrame::GetType (  )  const [virtual]

Get the "type" of the frame.

See also:
virtual nsresult nsCanvasFrame::Init ( nsIContent *  aContent,
nsIFrame *  aParent,
nsIFrame *  aPrevInFlow 
) [virtual]
virtual nsresult nsCanvasFrame::InsertFrames ( nsIAtom aListName,
nsIFrame *  aPrevFrame,
nsFrameList aFrameList 
) [virtual]
virtual PRBool nsCanvasFrame::IsContainingBlock (  )  const [inline, virtual]
virtual PRBool nsCanvasFrame::IsFrameOfType ( PRUint32  aFlags  )  const [inline, virtual]
void nsCanvasFrame::PaintFocus ( nsIRenderingContext &  aRenderingContext,
nsPoint  aPt 
NS_DECL_QUERYFRAME virtual NS_DECL_FRAMEARENA_HELPERS nsresult nsCanvasFrame::QueryInterface ( const nsIID &  aIID,
void **  aInstancePtr 
) [virtual]
virtual nsresult nsCanvasFrame::Reflow ( nsPresContext aPresContext,
nsHTMLReflowMetrics aDesiredSize,
const nsHTMLReflowState aReflowState,
nsReflowStatus &  aStatus 
) [virtual]
virtual nsresult nsCanvasFrame::RemoveFrame ( nsIAtom aListName,
nsIFrame *  aOldFrame 
) [virtual]
virtual nsresult nsCanvasFrame::ScrollPositionDidChange ( nscoord  aX,
nscoord  aY 
) [virtual]
virtual nsresult nsCanvasFrame::ScrollPositionWillChange ( nscoord  aX,
nscoord  aY 
) [virtual]
virtual nsresult nsCanvasFrame::SetHasFocus ( PRBool  aHasFocus  )  [virtual]

SetHasFocus tells the CanvasFrame to draw with focus ring.

aHasFocus PR_TRUE to show focus ring, PR_FALSE to hide it
virtual nsresult nsCanvasFrame::SetInitialChildList ( nsIAtom aListName,
nsFrameList aChildList 
) [virtual]
virtual nsresult nsCanvasFrame::StealFrame ( nsPresContext aPresContext,
nsIFrame *  aChild,
PRBool  aForceNormal 
) [inline, virtual]
virtual void nsCanvasFrame::ViewPositionDidChange ( nsTArray< nsIWidget::Configuration > *  aConfigurations  )  [inline, virtual]

Member Data Documentation

nsAbsoluteContainingBlock nsCanvasFrame::mAbsoluteContainer [protected]

The documentation for this class was generated from the following file: