Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsNativeScrollbarFrame.h File Reference
#include "nsScrollbarFrame.h"
#include "nsIWidget.h"
#include "nsIScrollbarMediator.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsNativeScrollbarFrame
struct  nsNativeScrollbarFrame::Parts

Functions

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

Function Documentation

nsresult NS_NewNativeScrollbarFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 58 of file nsNativeScrollbarFrame.cpp.

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

  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewNativeScrollbarFrame