Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsUICommandCollector.cpp File Reference
#include "nsUICommandCollector.h"
#include "nsMetricsService.h"
#include "nsServiceManagerUtils.h"
#include "nsIObserverService.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMEvent.h"
#include "nsIDOMNSEvent.h"
#include "nsIDOMXULCommandEvent.h"
#include "nsIDOMElement.h"
#include "nsIDOMWindow.h"
#include "nsDataHashtable.h"
#include "nsMemory.h"
#include "nsIRDFService.h"
#include "nsIRDFResource.h"
#include "nsIRDFContainer.h"
#include "nsIBookmarksService.h"
#include "nsIArray.h"
#include "nsComponentManagerUtils.h"

Go to the source code of this file.

Functions

 NS_IMPL_ISUPPORTS3 (nsUICommandCollector, nsIObserver, nsIDOMEventListener, nsIMetricsCollector) PLDHashOperator PR_CALLBACK nsUICommandCollector

Function Documentation

Definition at line 66 of file nsUICommandCollector.cpp.

{
  nsCOMPtr<nsIDOMEventTarget> windowTarget =
    do_QueryInterface(NS_CONST_CAST(nsIDOMWindow *, key));
  if (!windowTarget) {
    MS_LOG(("Error casting domeventtarget"));
    return PL_DHASH_NEXT;
  }

  nsUICommandCollector* collector = NS_STATIC_CAST(nsUICommandCollector*,
                                                   userArg);
  collector->AddEventListeners(windowTarget);
  return PL_DHASH_NEXT;
}

Here is the call graph for this function: