Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsWalletPreview.cpp File Reference
#include "nscore.h"
#include "nsIMemory.h"
#include "plstr.h"
#include <stdio.h>
#include "nsReadableUtils.h"
#include "nsIWalletService.h"
#include "nsIServiceManager.h"
#include "nsIDOMWindowInternal.h"
#include "nsCOMPtr.h"
#include "nsIScriptGlobalObject.h"
#include "nsWalletPreview.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeOwner.h"
#include "nsIBaseWindow.h"
#include "nsString.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kWalletServiceCID, NS_WALLETSERVICE_CID)
static void DOMWindowToTreeOwner (nsIDOMWindow *DOMWindow, nsIDocShellTreeOwner **aTreeOwner)

Function Documentation

static void DOMWindowToTreeOwner ( nsIDOMWindow DOMWindow,
nsIDocShellTreeOwner **  aTreeOwner 
) [static]

Definition at line 88 of file nsWalletPreview.cpp.

{
  if (!DOMWindow) {
    return; // with webWindow unchanged -- its constructor gives it a null ptr
  }
  nsCOMPtr<nsIScriptGlobalObject> globalScript(do_QueryInterface(DOMWindow));
  nsIDocShell *docShell = nsnull;
  if (globalScript) {
    docShell = globalScript->GetDocShell();
  }
  nsCOMPtr<nsIDocShellTreeItem> docShellAsItem(do_QueryInterface(docShell));
  if(!docShellAsItem)
   return;

  docShellAsItem->GetTreeOwner(aTreeOwner);
}

Here is the call graph for this function:

static NS_DEFINE_IID ( kWalletServiceCID  ,
NS_WALLETSERVICE_CID   
) [static]