Back to index

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

nsMenuPopupTimerMediator is a wrapper around an nsMenuPopupFrame which can be safely passed to timers. More...

#include <nsMenuPopupFrame.h>

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

List of all members.

Public Member Functions

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

Private Attributes

nsMenuPopupFramemFrame

Detailed Description

nsMenuPopupTimerMediator is a wrapper around an nsMenuPopupFrame which can be safely passed to timers.

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

Definition at line 85 of file nsMenuPopupFrame.h.


Constructor & Destructor Documentation

Constructs a wrapper around an nsMenuFrame.

Parameters:
aFramensMenuFrame to create a wrapper around.

Definition at line 2274 of file nsMenuPopupFrame.cpp.

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

Definition at line 2280 of file nsMenuPopupFrame.cpp.

{
}

Member Function Documentation

Clear the pointer to the contained nsMenuFrame.

This should be called when the contained nsMenuFrame is destroyed.

Definition at line 2301 of file nsMenuPopupFrame.cpp.

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

Member Data Documentation

Definition at line 99 of file nsMenuPopupFrame.h.


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