mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Tweaks to trees.
This commit is contained in:
parent
a0f7330b4b
commit
2fdefb7517
@ -48,6 +48,7 @@ CPPSRCS = \
|
||||
nsToolbarFrame.cpp \
|
||||
nsToolbarDragListener.cpp \
|
||||
nsToolboxFrame.cpp \
|
||||
nsTreeOuterFrame.cpp \
|
||||
nsTreeFrame.cpp \
|
||||
nsTreeRowGroupFrame.cpp \
|
||||
nsTreeIndentationFrame.cpp \
|
||||
|
@ -36,6 +36,7 @@ CPPSRCS= \
|
||||
nsTitledButtonFrame.cpp \
|
||||
nsToolboxFrame.cpp \
|
||||
nsToolbarFrame.cpp \
|
||||
nsTreeOuterFrame.cpp \
|
||||
nsTreeFrame.cpp \
|
||||
nsTreeRowGroupFrame.cpp \
|
||||
nsTreeIndentationFrame.cpp \
|
||||
@ -67,6 +68,7 @@ CPP_OBJS= \
|
||||
.\$(OBJDIR)\nsTitledButtonFrame.obj \
|
||||
.\$(OBJDIR)\nsToolboxFrame.obj \
|
||||
.\$(OBJDIR)\nsToolbarFrame.obj \
|
||||
.\$(OBJDIR)\nsTreeOuterFrame.obj \
|
||||
.\$(OBJDIR)\nsTreeFrame.obj \
|
||||
.\$(OBJDIR)\nsTreeRowGroupFrame.obj \
|
||||
.\$(OBJDIR)\nsTreeIndentationFrame.obj \
|
||||
|
@ -107,6 +107,18 @@ void nsTreeFrame::RangedSelection(nsIPresContext& aPresContext, nsTreeCellFrame*
|
||||
// XXX Re-implement!
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTreeFrame::HandleEvent(nsIPresContext& aPresContext,
|
||||
nsGUIEvent* aEvent,
|
||||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
aEventStatus = nsEventStatus_eConsumeDoDefault;
|
||||
if (aEvent->message == NS_KEY_DOWN) {
|
||||
printf("YES!\n");
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void nsTreeFrame::MoveUp(nsIPresContext& aPresContext, nsTreeCellFrame* pFrame)
|
||||
{
|
||||
PRInt32 rowIndex;
|
||||
|
@ -44,11 +44,13 @@ public:
|
||||
NS_IMETHOD Destroy(nsIPresContext& aPresContext);
|
||||
PRBool RowGroupsShouldBeConstrained() { return PR_TRUE; }
|
||||
|
||||
NS_IMETHODIMP Reflow(nsIPresContext& aPresContext,
|
||||
NS_IMETHOD Reflow(nsIPresContext& aPresContext,
|
||||
nsHTMLReflowMetrics& aMetrics,
|
||||
const nsHTMLReflowState& aReflowState,
|
||||
nsReflowStatus& aStatus);
|
||||
|
||||
NS_IMETHOD HandleEvent(nsIPresContext& aPresContext,
|
||||
nsGUIEvent* aEvent,
|
||||
nsEventStatus& aEventStatus);
|
||||
|
||||
protected:
|
||||
nsTreeFrame();
|
||||
|
Loading…
x
Reference in New Issue
Block a user