Back to index

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

List of all members.

Public Member Functions

 OnLinkClickEvent (nsWebShell *aHandler, nsIContent *aContent, nsLinkVerb aVerb, nsIURI *aURI, const PRUnichar *aTargetSpec, nsIInputStream *aPostDataStream=0, nsIInputStream *aHeadersDataStream=0)
 ~OnLinkClickEvent ()
void HandleEvent ()

Public Attributes

nsWebShellmHandler
nsCOMPtr< nsIURImURI
nsString mTargetSpec
nsCOMPtr< nsIInputStreammPostDataStream
nsCOMPtr< nsIInputStreammHeadersDataStream
nsCOMPtr< nsIContentmContent
nsLinkVerb mVerb
PopupControlState mPopupState
PRCList link
PLHandleEventProc handler
PLDestroyEventProc destructor
voidowner
voidsynchronousResult
PRLocklock
PRCondVarcondVar
PRBool handled

Detailed Description

Definition at line 330 of file nsWebShell.cpp.


Constructor & Destructor Documentation

OnLinkClickEvent::OnLinkClickEvent ( nsWebShell aHandler,
nsIContent aContent,
nsLinkVerb  aVerb,
nsIURI aURI,
const PRUnichar aTargetSpec,
nsIInputStream aPostDataStream = 0,
nsIInputStream aHeadersDataStream = 0 
)

Definition at line 367 of file nsWebShell.cpp.

{
  mHandler = aHandler;
  NS_ADDREF(aHandler);
  mURI = aURI;
  mTargetSpec.Assign(aTargetSpec);
  mPostDataStream = aPostDataStream;
  mHeadersDataStream = aHeadersDataStream;
  mContent = aContent;
  mVerb = aVerb;

  nsCOMPtr<nsPIDOMWindow> window(do_QueryInterface(mHandler->mScriptGlobal));

  mPopupState = window->GetPopupControlState();

  PL_InitEvent(this, nsnull,
               (PLHandleEventProc) ::HandlePLEvent,
               (PLDestroyEventProc) ::DestroyPLEvent);

  nsCOMPtr<nsIEventQueue> eventQueue;
  aHandler->GetEventQueue(getter_AddRefs(eventQueue));
  NS_ASSERTION(eventQueue, "no event queue");
  if (eventQueue)
    eventQueue->PostEvent(this);
}

Here is the call graph for this function:

Definition at line 399 of file nsWebShell.cpp.


Member Function Documentation

Definition at line 337 of file nsWebShell.cpp.

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 352 of file nsWebShell.cpp.

Definition at line 347 of file nsWebShell.cpp.

Definition at line 351 of file nsWebShell.cpp.

Definition at line 354 of file nsWebShell.cpp.

Definition at line 350 of file nsWebShell.cpp.

Definition at line 349 of file nsWebShell.cpp.

Definition at line 348 of file nsWebShell.cpp.

Definition at line 353 of file nsWebShell.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: