Bug 2504: Change mouse pointer over image submits

git-svn-id: svn://10.0.0.236/trunk@29569 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
1999-04-27 22:54:15 +00:00
parent 3c35338621
commit 620d334a67
2 changed files with 24 additions and 0 deletions

View File

@@ -78,6 +78,10 @@ public:
return MakeFrameName("ImageControl", aResult);
}
NS_IMETHOD GetCursor(nsIPresContext& aPresContext,
nsPoint& aPoint,
PRInt32& aCursor);
virtual void MouseClicked(nsIPresContext* aPresContext);
virtual void SetFormFrame(nsFormFrame* aFormFrame) { mFormFrame = aFormFrame; }
@@ -346,6 +350,14 @@ nsImageControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
return PR_TRUE;
}
NS_IMETHODIMP
nsImageControlFrame::GetCursor(nsIPresContext& aPresContext,
nsPoint& aPoint,
PRInt32& aCursor)
{
aCursor = NS_STYLE_CURSOR_POINTER;
return NS_OK;
}
void
nsImageControlFrame::MouseClicked(nsIPresContext* aPresContext)

View File

@@ -78,6 +78,10 @@ public:
return MakeFrameName("ImageControl", aResult);
}
NS_IMETHOD GetCursor(nsIPresContext& aPresContext,
nsPoint& aPoint,
PRInt32& aCursor);
virtual void MouseClicked(nsIPresContext* aPresContext);
virtual void SetFormFrame(nsFormFrame* aFormFrame) { mFormFrame = aFormFrame; }
@@ -346,6 +350,14 @@ nsImageControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
return PR_TRUE;
}
NS_IMETHODIMP
nsImageControlFrame::GetCursor(nsIPresContext& aPresContext,
nsPoint& aPoint,
PRInt32& aCursor)
{
aCursor = NS_STYLE_CURSOR_POINTER;
return NS_OK;
}
void
nsImageControlFrame::MouseClicked(nsIPresContext* aPresContext)