Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsASyncUngenerate Struct Reference
Inheritance diagram for nsASyncUngenerate:
Inheritance graph
Collaboration diagram for nsASyncUngenerate:
Collaboration graph

List of all members.

Public Member Functions

 nsASyncUngenerate (nsIContent *aMenu, nsIContent *aPopup)
void HandleEvent ()

Public Attributes

nsCOMPtr< nsIContentmMenu
nsCOMPtr< nsIContentmPopup
PRCList link
PLHandleEventProc handler
PLDestroyEventProc destructor
PRBool handled

Detailed Description

Definition at line 702 of file nsMenuFrame.cpp.

Constructor & Destructor Documentation

nsASyncUngenerate::nsASyncUngenerate ( nsIContent aMenu,
nsIContent aPopup 
) [inline]

Definition at line 704 of file nsMenuFrame.cpp.

    : mMenu(aMenu), mPopup(aPopup)

Member Function Documentation

Definition at line 709 of file nsMenuFrame.cpp.

    nsIDocument* doc = mMenu->GetCurrentDoc();
    if (doc) {
      nsIPresShell* shell = doc->GetShellAt(0);
      if (shell) {
        nsIFrame* frame = nsnull;
        shell->GetPrimaryFrameFor(mMenu, &frame);
        if (frame) {
          nsIMenuFrame* newMenu = nsnull;
          CallQueryInterface(frame, &newMenu);
          if (newMenu) {
            // Menu has been recreated.
    nsIContent* popupParent = mPopup->GetParent();
    if (popupParent && popupParent != mMenu) {
      // Popup has been moved to be a child of some other element than mMenu.
    nsAutoString genVal;
    mPopup->GetAttr(kNameSpaceID_None, nsXULAtoms::menugenerated, genVal);
    if (!genVal.IsEmpty()) {
      mPopup->UnsetAttr(kNameSpaceID_None, nsXULAtoms::menugenerated, PR_TRUE);

Here is the call 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 738 of file nsMenuFrame.cpp.

Definition at line 739 of file nsMenuFrame.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: