Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsAutoScrollTimer Class Reference
Inheritance diagram for nsAutoScrollTimer:
Inheritance graph
[legend]
Collaboration diagram for nsAutoScrollTimer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS nsAutoScrollTimer ()
virtual ~nsAutoScrollTimer ()
nsresult Start (nsPresContext *aPresContext, nsIView *aView, nsPoint &aPoint)
nsresult Stop ()
nsresult Init (nsSelection *aFrameSelection, nsTypedSelection *aSelection)
nsresult SetDelay (PRUint32 aDelay)
NS_IMETHOD Notify (nsITimer *timer)
void notify (in nsITimer timer)

Private Attributes

nsSelectionmFrameSelection
nsTypedSelectionmSelection
nsCOMPtr< nsITimermTimer
nsIViewmView
nsPresContextmPresContext
nsPoint mPoint
PRUint32 mDelay

Detailed Description

Definition at line 622 of file nsSelection.cpp.


Constructor & Destructor Documentation

Definition at line 628 of file nsSelection.cpp.

      : mSelection(0), mView(0), mPresContext(0), mPoint(0,0), mDelay(30)
  {
  }
virtual nsAutoScrollTimer::~nsAutoScrollTimer ( ) [inline, virtual]

Definition at line 633 of file nsSelection.cpp.

  {
   if (mTimer)
       mTimer->Cancel();
  }

Member Function Documentation

nsresult nsAutoScrollTimer::Init ( nsSelection aFrameSelection,
nsTypedSelection aSelection 
) [inline]

Definition at line 670 of file nsSelection.cpp.

  {
    mFrameSelection = aFrameSelection;
    mSelection = aSelection;
    return NS_OK;
  }

Here is the caller graph for this function:

void nsITimerCallback::notify ( in nsITimer  timer) [inherited]
Parameters:
aTimerthe timer which has expired

Definition at line 683 of file nsSelection.cpp.

Here is the call graph for this function:

Definition at line 677 of file nsSelection.cpp.

  {
    mDelay = aDelay;
    return NS_OK;
  }

Here is the caller graph for this function:

nsresult nsAutoScrollTimer::Start ( nsPresContext aPresContext,
nsIView aView,
nsPoint aPoint 
) [inline]

Definition at line 639 of file nsSelection.cpp.

  {
    mView        = aView;
    mPresContext = aPresContext;
    mPoint       = aPoint;

    if (!mTimer)
    {
      nsresult result;
      mTimer = do_CreateInstance("@mozilla.org/timer;1", &result);

      if (NS_FAILED(result))
        return result;
    }

    return mTimer->InitWithCallback(this, mDelay, nsITimer::TYPE_ONE_SHOT);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 657 of file nsSelection.cpp.

  {
    nsresult result = NS_OK;

    if (mTimer)
    {
      mTimer->Cancel();
      mTimer = 0;
    }

    return result;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 705 of file nsSelection.cpp.

Definition at line 699 of file nsSelection.cpp.

Definition at line 704 of file nsSelection.cpp.

Definition at line 703 of file nsSelection.cpp.

Definition at line 700 of file nsSelection.cpp.

Definition at line 701 of file nsSelection.cpp.

Definition at line 702 of file nsSelection.cpp.


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