Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXPBaseWindow.cpp File Reference
#include "nsCOMPtr.h"
#include "prmem.h"
#include "nsXPBaseWindow.h"
#include "nsIPrompt.h"
#include "nsIAppShell.h"
#include "nsIWidget.h"
#include "nsIDOMDocument.h"
#include "nsIURL.h"
#include "nsIComponentManager.h"
#include "nsIFactory.h"
#include "nsCRT.h"
#include "nsWidgetsCID.h"
#include "nsViewerApp.h"
#include "nsIDocument.h"
#include "nsPresContext.h"
#include "nsIDocumentViewer.h"
#include "nsIContentViewer.h"
#include "nsIPresShell.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMElement.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIWindowListener.h"
#include "nsIBaseWindow.h"
#include "nsIWebNavigation.h"
#include "nsIViewManager.h"
#include "nsGUIEvent.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeNode.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include <ctype.h>
#include "nsFont.h"

Go to the source code of this file.

Classes

class  nsXPBaseWindowFactory

Functions

static NS_DEFINE_IID (kWindowCID, NS_WINDOW_CID)
static NS_DEFINE_IID (kIXPBaseWindowIID, NS_IXPBASE_WINDOW_IID)
static NS_DEFINE_IID (kISupportsIID, NS_ISUPPORTS_IID)
static NS_DEFINE_IID (kIFactoryIID, NS_IFACTORY_IID)
static NS_DEFINE_IID (kIDocumentViewerIID, NS_IDOCUMENT_VIEWER_IID)
static NS_DEFINE_IID (kIWidgetIID, NS_IWIDGET_IID)
static NS_DEFINE_IID (kIDOMMouseListenerIID, NS_IDOMMOUSELISTENER_IID)
static NS_DEFINE_IID (kIDOMEventReceiverIID, NS_IDOMEVENTRECEIVER_IID)
static NS_DEFINE_IID (kIDOMHTMLDocumentIID, NS_IDOMHTMLDOCUMENT_IID)
static nsEventStatus PR_CALLBACK HandleXPDialogEvent (nsGUIEvent *aEvent)
nsresult NS_NewXPBaseWindowFactory (nsIFactory **aFactory)

Function Documentation

Definition at line 150 of file nsXPBaseWindow.cpp.

{ 
  nsEventStatus result = nsEventStatus_eIgnore;

  nsXPBaseWindow* baseWin;
  aEvent->widget->GetClientData(((void*&)baseWin));

  if (nsnull != baseWin) {
    nsSizeEvent* sizeEvent;
    switch(aEvent->message) {
      case NS_SIZE:
        sizeEvent = (nsSizeEvent*)aEvent;  
        baseWin->Layout(sizeEvent->windowSize->width,
                        sizeEvent->windowSize->height);
        result = nsEventStatus_eConsumeNoDefault;
        break;

    case NS_DESTROY: {
        //nsViewerApp* app = baseWin->mApp;
        result = nsEventStatus_eConsumeDoDefault;
        baseWin->Close();
        NS_RELEASE(baseWin);
      }
      return result;

    default:
      break;
    }
    //NS_RELEASE(baseWin);
  }
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_IID ( kWindowCID  ,
NS_WINDOW_CID   
) [static]
static NS_DEFINE_IID ( kIXPBaseWindowIID  ,
NS_IXPBASE_WINDOW_IID   
) [static]
static NS_DEFINE_IID ( kISupportsIID  ,
NS_ISUPPORTS_IID   
) [static]
static NS_DEFINE_IID ( kIFactoryIID  ,
NS_IFACTORY_IID   
) [static]
static NS_DEFINE_IID ( kIDocumentViewerIID  ,
NS_IDOCUMENT_VIEWER_IID   
) [static]
static NS_DEFINE_IID ( kIWidgetIID  ,
NS_IWIDGET_IID   
) [static]
static NS_DEFINE_IID ( kIDOMMouseListenerIID  ,
NS_IDOMMOUSELISTENER_IID   
) [static]
static NS_DEFINE_IID ( kIDOMEventReceiverIID  ,
NS_IDOMEVENTRECEIVER_IID   
) [static]
static NS_DEFINE_IID ( kIDOMHTMLDocumentIID  ,
NS_IDOMHTMLDOCUMENT_IID   
) [static]

Definition at line 598 of file nsXPBaseWindow.cpp.

{
  nsresult rv = NS_OK;
  nsXPBaseWindowFactory* inst;
  NS_NEWXPCOM(inst, nsXPBaseWindowFactory);
  if (nsnull == inst) {
    rv = NS_ERROR_OUT_OF_MEMORY;
  }
  else {
    NS_ADDREF(inst);
  }
  *aFactory = inst;
  return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function: