Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSliderFrame.h File Reference
#include "nsBoxFrame.h"
#include "prtypes.h"
#include "nsIAtom.h"
#include "nsCOMPtr.h"
#include "nsITimer.h"
#include "nsIDOMMouseListener.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsSliderMediator
class  nsSliderFrame

Functions

nsresult NS_NewSliderFrame (nsIPresShell *aPresShell, nsIFrame **aResult)

Function Documentation

nsresult NS_NewSliderFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 97 of file nsSliderFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsSliderFrame* it = new (aPresShell) nsSliderFrame(aPresShell);
  if (nsnull == it)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;
  return NS_OK;

} // NS_NewSliderFrame