mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Initial version for Rhapsody
This commit is contained in:
parent
c61599860a
commit
c4747da39f
72
widget/src/rhapsody/Makefile
Normal file
72
widget/src/rhapsody/Makefile
Normal file
@ -0,0 +1,72 @@
|
||||
#!gmake
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
DEPTH = ../../..
|
||||
|
||||
include $(DEPTH)/config/config.mk
|
||||
|
||||
LIBRARY_NAME = widgetunix
|
||||
|
||||
MODULE=raptor
|
||||
|
||||
REQUIRES=util img xpcom raptor netlib
|
||||
|
||||
DEFINES = -D_IMPL_NS_WIDGET
|
||||
|
||||
EXTRA_DSO_LDOPTS += -L$(DIST)/bin -lxpcom -lraptorbase -lreg $(LIBNSPR) -lplc21
|
||||
|
||||
CPPSRCS= \
|
||||
nsObject.cpp \
|
||||
$(NULL)
|
||||
|
||||
#########################################
|
||||
# Here's what unix/Motif had as of 9/18:
|
||||
#########################################
|
||||
# nsWidgetSupport.cpp
|
||||
# nsWindow.cpp
|
||||
# nsComboBox.cpp
|
||||
# nsTextHelper.cpp
|
||||
# nsTextAreaWidget.cpp
|
||||
# nsTextWidget.cpp
|
||||
# nsListBox.cpp
|
||||
# nsRadioButton.cpp
|
||||
# nsFileWidget.cpp
|
||||
# nsCheckButton.cpp
|
||||
# nsScrollbar.cpp
|
||||
# nsButton.cpp
|
||||
# nsAppShell.cpp
|
||||
# nsWidgetFactory.cpp
|
||||
# nsXtEventHandler.cpp
|
||||
# nsLookAndFeel.cpp
|
||||
# nsToolkit.cpp
|
||||
# nsLabel.cpp
|
||||
# nsDialog.cpp
|
||||
# nsXtManageWidget.cpp
|
||||
|
||||
include $(DEPTH)/config/config.mk
|
||||
|
||||
TARGETS = $(LIBRARY)
|
||||
|
||||
include $(DEPTH)/config/rules.mk
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
63
widget/src/rhapsody/nsObject.cpp
Normal file
63
widget/src/rhapsody/nsObject.cpp
Normal file
@ -0,0 +1,63 @@
|
||||
/* -*- 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 "nsObject.h"
|
||||
|
||||
|
||||
NS_IMPL_ADDREF(nsObject)
|
||||
NS_IMPL_RELEASE(nsObject)
|
||||
|
||||
|
||||
/**
|
||||
* constructor
|
||||
*/
|
||||
nsObject::nsObject():nsISupports()
|
||||
{
|
||||
// ref count init
|
||||
mRefCnt = 1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* destructor
|
||||
*/
|
||||
nsObject::~nsObject()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
nsresult nsObject::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
if (NULL == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
if (aIID.Equals(kISupportsIID)) {
|
||||
*aInstancePtr = (void*) ((nsISupports*)this);
|
||||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
45
widget/src/rhapsody/nsObject.h
Normal file
45
widget/src/rhapsody/nsObject.h
Normal file
@ -0,0 +1,45 @@
|
||||
/* -*- 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.
|
||||
*/
|
||||
|
||||
#ifndef nsObject_h__
|
||||
#define nsObject_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
/**
|
||||
* nsObject is the base class for all native widgets
|
||||
*/
|
||||
|
||||
class nsObject : public nsISupports
|
||||
{
|
||||
|
||||
public:
|
||||
nsObject();
|
||||
virtual ~nsObject();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // nsObject_h__
|
Loading…
Reference in New Issue
Block a user