Back to index

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

List of all members.

Public Member Functions

 nsCloseEvent (nsGlobalWindow *aWindow)
void HandleEvent ()
nsresult PostCloseEvent ()

Public Attributes

nsRefPtr< nsGlobalWindowmWindow
PRCList link
PLHandleEventProc handler
PLDestroyEventProc destructor
voidowner
voidsynchronousResult
PRLocklock
PRCondVarcondVar
PRBool handled

Detailed Description

Definition at line 4604 of file nsGlobalWindow.cpp.


Constructor & Destructor Documentation

nsCloseEvent::nsCloseEvent ( nsGlobalWindow aWindow) [inline]

Definition at line 4605 of file nsGlobalWindow.cpp.

    : mWindow(aWindow)
  {
  }

Member Function Documentation

Definition at line 4610 of file nsGlobalWindow.cpp.

                     {
    if (mWindow)
      mWindow->ReallyCloseWindow();
  }

Here is the caller graph for this function:

Definition at line 4630 of file nsGlobalWindow.cpp.

{
  nsCOMPtr<nsIEventQueueService> eventService(do_GetService(kEventQueueServiceCID));
  if (eventService) {
    nsCOMPtr<nsIEventQueue> eventQueue;  
    eventService->GetThreadEventQueue(PR_GetCurrentThread(), getter_AddRefs(eventQueue));
    if (eventQueue) {

      PL_InitEvent(this, nsnull, (PLHandleEventProc) ::HandleCloseEvent, (PLDestroyEventProc) ::DestroyCloseEvent);
      return eventQueue->PostEvent(this);
    }
  }

  return NS_ERROR_FAILURE;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

PRCondVar * PLEvent::condVar [inherited]

Definition at line 514 of file nsIEventQueueService.idl.

Definition at line 510 of file nsIEventQueueService.idl.

PRBool PLEvent::handled [inherited]

Definition at line 515 of file nsIEventQueueService.idl.

Definition at line 509 of file nsIEventQueueService.idl.

PRCList PLEvent::link [inherited]

Definition at line 508 of file nsIEventQueueService.idl.

PRLock * PLEvent::lock [inherited]

Definition at line 513 of file nsIEventQueueService.idl.

Definition at line 4617 of file nsGlobalWindow.cpp.

void * PLEvent::owner [inherited]

Definition at line 511 of file nsIEventQueueService.idl.

Definition at line 512 of file nsIEventQueueService.idl.


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