зеркало из https://github.com/mozilla/gecko-dev.git
Stubbing a menu popup frame for XP menus.
This commit is contained in:
Родитель
022c21a37f
Коммит
1602e29911
|
@ -58,6 +58,7 @@ CPPSRCS = \
|
|||
nsColorPickerFrame.cpp \
|
||||
nsFontPickerFrame.cpp \
|
||||
nsToolbarItemFrame.cpp \
|
||||
nsMenuPopupFrame.cpp \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
|
|
@ -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 = \
|
||||
|
|
|
@ -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
|
||||
|
Загрузка…
Ссылка в новой задаче