making CaptureMouse a public interface on nsIFrame r=mjudge for bug 48250.

git-svn-id: svn://10.0.0.236/trunk@76305 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com 2000-08-14 22:28:41 +00:00
parent 142b5d73b3
commit ecbc628010
6 changed files with 20 additions and 8 deletions

View File

@ -988,8 +988,6 @@ public:
*/
NS_IMETHOD Scrolled(nsIView *aView) = 0;
/** Selection related calls
*/
/**
@ -1028,6 +1026,14 @@ public:
/** EndSelection related calls
*/
/**
* Call to turn on/off mouseCapture at the view level. Needed by the ESM so
* it must be in the public interface.
* @param aPresContext presContext associated with the frame
* @param aGrabMouseEvents PR_TRUE to enable capture, PR_FALSE to disable
*/
NS_IMETHOD CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents) = 0;
/**
* called to find the previous/next character, word, or line returns the actual
* nsIFrame and the frame offset. THIS DOES NOT CHANGE SELECTION STATE

View File

@ -3515,7 +3515,7 @@ nsresult nsFrame::CreateAndPostReflowCommand(nsIPresShell* aPresS
}
nsresult
NS_IMETHODIMP
nsFrame::CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents)
{
// get its view

View File

@ -354,7 +354,7 @@ public:
nsIAtom* aListName);
//Mouse Capturing code used by the frames to tell the view to capture all the following events
nsresult CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents);
NS_IMETHOD CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents);
PRBool IsMouseCaptured(nsIPresContext* aPresContext);
#ifdef NS_DEBUG

View File

@ -988,8 +988,6 @@ public:
*/
NS_IMETHOD Scrolled(nsIView *aView) = 0;
/** Selection related calls
*/
/**
@ -1028,6 +1026,14 @@ public:
/** EndSelection related calls
*/
/**
* Call to turn on/off mouseCapture at the view level. Needed by the ESM so
* it must be in the public interface.
* @param aPresContext presContext associated with the frame
* @param aGrabMouseEvents PR_TRUE to enable capture, PR_FALSE to disable
*/
NS_IMETHOD CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents) = 0;
/**
* called to find the previous/next character, word, or line returns the actual
* nsIFrame and the frame offset. THIS DOES NOT CHANGE SELECTION STATE

View File

@ -3515,7 +3515,7 @@ nsresult nsFrame::CreateAndPostReflowCommand(nsIPresShell* aPresS
}
nsresult
NS_IMETHODIMP
nsFrame::CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents)
{
// get its view

View File

@ -354,7 +354,7 @@ public:
nsIAtom* aListName);
//Mouse Capturing code used by the frames to tell the view to capture all the following events
nsresult CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents);
NS_IMETHOD CaptureMouse(nsIPresContext* aPresContext, PRBool aGrabMouseEvents);
PRBool IsMouseCaptured(nsIPresContext* aPresContext);
#ifdef NS_DEBUG