diff --git a/layout/xul/base/src/Makefile.in b/layout/xul/base/src/Makefile.in index 339d24029bef..95852604363d 100644 --- a/layout/xul/base/src/Makefile.in +++ b/layout/xul/base/src/Makefile.in @@ -58,6 +58,7 @@ CPPSRCS = \ nsColorPickerFrame.cpp \ nsFontPickerFrame.cpp \ nsToolbarItemFrame.cpp \ + nsMenuPopupFrame.cpp \ $(NULL) include $(topsrcdir)/config/config.mk diff --git a/layout/xul/base/src/makefile.win b/layout/xul/base/src/makefile.win index 777b92681cb0..00ab91e90a78 100644 --- a/layout/xul/base/src/makefile.win +++ b/layout/xul/base/src/makefile.win @@ -46,6 +46,7 @@ CPPSRCS= \ nsSliderFrame.cpp \ nsColorPickerFrame.cpp \ nsFontPickerFrame.cpp \ + nsMenuPopupFrame.cpp \ $(NULL) CPP_OBJS= \ @@ -71,6 +72,7 @@ CPP_OBJS= \ .\$(OBJDIR)\nsSliderFrame.obj \ .\$(OBJDIR)\nsColorPickerFrame.obj \ .\$(OBJDIR)\nsFontPickerFrame.obj \ + .\$(OBJDIR)\nsMenuPopupFrame.obj \ $(NULL) EXPORTS = \ diff --git a/layout/xul/base/src/nsMenuPopupFrame.cpp b/layout/xul/base/src/nsMenuPopupFrame.cpp new file mode 100644 index 000000000000..b2ec7f79511d --- /dev/null +++ b/layout/xul/base/src/nsMenuPopupFrame.cpp @@ -0,0 +1,58 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + + +#include "nsMenuPopupFrame.h" + +#include "nsIContent.h" +#include "prtypes.h" +#include "nsIAtom.h" +#include "nsIPresContext.h" +#include "nsIStyleContext.h" +#include "nsCSSRendering.h" +#include "nsINameSpaceManager.h" + + +// +// NS_NewMenuPopupFrame +// +// Wrapper for creating a new menu popup container +// +nsresult +NS_NewMenuPopupFrame(nsIFrame** aNewFrame) +{ + NS_PRECONDITION(aNewFrame, "null OUT ptr"); + if (nsnull == aNewFrame) { + return NS_ERROR_NULL_POINTER; + } + nsMenuPopupFrame* it = new nsMenuPopupFrame; + if ( !it ) + return NS_ERROR_OUT_OF_MEMORY; + *aNewFrame = it; + return NS_OK; +} + + +// +// nsMenuPopupFrame cntr +// +nsMenuPopupFrame::nsMenuPopupFrame() +{ + +} // cntr +