Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsMenuTimerMediator Class Reference

nsMenuTimerMediator is a wrapper around an nsMenuFrame which can be safely passed to timers. More...

#include <nsMenuFrame.h>

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

List of all members.

Public Member Functions

 nsMenuTimerMediator (nsMenuFrame *aFrame)
 Constructs a wrapper around an nsMenuFrame.
 ~nsMenuTimerMediator ()
NS_DECL_ISUPPORTS
NS_DECL_NSITIMERCALLBACK void 
ClearFrame ()
 Clear the pointer to the contained nsMenuFrame.
void notify (in nsITimer timer)

Private Attributes

nsMenuFramemFrame

Detailed Description

nsMenuTimerMediator is a wrapper around an nsMenuFrame which can be safely passed to timers.

The class is reference counted unlike the underlying nsMenuFrame, so that it will exist as long as the timer holds a reference to it. The callback is delegated to the contained nsMenuFrame as long as the contained nsMenuFrame has not been destroyed.

Definition at line 78 of file nsMenuFrame.h.


Constructor & Destructor Documentation

Constructs a wrapper around an nsMenuFrame.

Parameters:
aFramensMenuFrame to create a wrapper around.

Definition at line 2306 of file nsMenuFrame.cpp.

                                                            :
  mFrame(aFrame)
{
  NS_ASSERTION(mFrame, "Must have frame");
}

Definition at line 2312 of file nsMenuFrame.cpp.

{
}

Member Function Documentation

Clear the pointer to the contained nsMenuFrame.

This should be called when the contained nsMenuFrame is destroyed.

Definition at line 2333 of file nsMenuFrame.cpp.

{
  mFrame = nsnull;
}
void nsITimerCallback::notify ( in nsITimer  timer) [inherited]
Parameters:
aTimerthe timer which has expired

Member Data Documentation

Definition at line 92 of file nsMenuFrame.h.


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