mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 460310 - Remove Dead Code in nsWidgetSupport.cpp/h; r+sr=roc
This commit is contained in:
parent
6be9fe2f63
commit
6539dc09d5
@ -39,15 +39,7 @@
|
||||
#include "nsRect.h"
|
||||
#include "nsIWidget.h"
|
||||
|
||||
#ifdef XP_MAC
|
||||
#define WIDGET_SUPPORT_EXPORT(returnType) \
|
||||
PR_PUBLIC_API(returnType)
|
||||
#else
|
||||
#define WIDGET_SUPPORT_EXPORT(returnType) \
|
||||
returnType
|
||||
#endif
|
||||
|
||||
WIDGET_SUPPORT_EXPORT(nsresult)
|
||||
nsresult
|
||||
NS_ShowWidget(nsISupports* aWidget, PRBool aShow)
|
||||
{
|
||||
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
|
||||
@ -58,7 +50,7 @@ NS_ShowWidget(nsISupports* aWidget, PRBool aShow)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
WIDGET_SUPPORT_EXPORT(nsresult)
|
||||
nsresult
|
||||
NS_MoveWidget(nsISupports* aWidget, PRUint32 aX, PRUint32 aY)
|
||||
{
|
||||
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
|
||||
@ -69,7 +61,7 @@ NS_MoveWidget(nsISupports* aWidget, PRUint32 aX, PRUint32 aY)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
WIDGET_SUPPORT_EXPORT(nsresult)
|
||||
nsresult
|
||||
NS_EnableWidget(nsISupports* aWidget, PRBool aEnable)
|
||||
{
|
||||
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
|
||||
@ -80,7 +72,7 @@ NS_EnableWidget(nsISupports* aWidget, PRBool aEnable)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
WIDGET_SUPPORT_EXPORT(nsresult)
|
||||
nsresult
|
||||
NS_SetFocusToWidget(nsISupports* aWidget)
|
||||
{
|
||||
nsCOMPtr<nsIWidget> widget = do_QueryInterface(aWidget);
|
||||
@ -91,7 +83,7 @@ NS_SetFocusToWidget(nsISupports* aWidget)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
WIDGET_SUPPORT_EXPORT(nsresult)
|
||||
nsresult
|
||||
NS_GetWidgetNativeData(nsISupports* aWidget, void** aNativeData)
|
||||
{
|
||||
void *result = nsnull;
|
||||
|
@ -51,16 +51,6 @@ class nsIToolkit;
|
||||
class nsIWidget;
|
||||
class nsITooltipWidget;
|
||||
|
||||
#if (defined(XP_MAC) || defined(XP_MACOSX)) && !defined(MOZ_WIDGET_COCOA)
|
||||
// A top-level widget stores a reference to itself as a window property
|
||||
// with the following creator and tag. These constants are used by embedding
|
||||
// code in addition to widget code.
|
||||
enum {
|
||||
kTopLevelWidgetPropertyCreator = 'MOSS',
|
||||
kTopLevelWidgetRefPropertyTag = 'GEKO'
|
||||
};
|
||||
#endif
|
||||
|
||||
extern nsresult
|
||||
NS_ShowWidget(nsISupports* aWidget, PRBool aShow);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user