Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
ResizerMouseMotionListener Class Reference

#include <nsHTMLObjectResizer.h>

Inheritance diagram for ResizerMouseMotionListener:
Inheritance graph
[legend]
Collaboration diagram for ResizerMouseMotionListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ResizerMouseMotionListener (nsIHTMLEditor *aEditor)
virtual ~ResizerMouseMotionListener ()
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMEVENTLISTENER
NS_IMETHOD 
MouseMove (nsIDOMEvent *aMouseEvent)
 Processes a mouse move event.
NS_IMETHOD DragMove (nsIDOMEvent *aMouseEvent)
 Processes a drag move event.
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Protected Attributes

nsWeakPtr mEditor

Detailed Description

Definition at line 93 of file nsHTMLObjectResizer.h.


Constructor & Destructor Documentation

Definition at line 136 of file nsHTMLObjectResizer.cpp.

{
  mEditor = do_GetWeakReference(aEditor);
}

Here is the call graph for this function:

Definition at line 141 of file nsHTMLObjectResizer.cpp.

{
}

Member Function Documentation

Processes a drag move event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseMotionListener.

Definition at line 173 of file nsHTMLObjectResizer.cpp.

{
  return NS_OK;
}

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters:
evtThe Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.

Processes a mouse move event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseMotionListener.

Definition at line 147 of file nsHTMLObjectResizer.cpp.

{
  nsCOMPtr<nsIDOMMouseEvent> mouseEvent ( do_QueryInterface(aMouseEvent) );
  if (!mouseEvent) {
    //non-ui event passed in.  bad things.
    return NS_OK;
  }

  // Don't do anything special if not an HTML object resizer editor
  nsCOMPtr<nsIHTMLObjectResizer> objectResizer = do_QueryReferent(mEditor);
  if (objectResizer)
  {
    // check if we have to redisplay a resizing shadow
    objectResizer->MouseMove(aMouseEvent);
  }

  return NS_OK;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 109 of file nsHTMLObjectResizer.h.


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