mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 709512 - Remove setters from nsIPrivateTextRange; r=smaug
This commit is contained in:
parent
66078936e5
commit
b9fb65bcce
@ -43,10 +43,9 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsGUIEvent.h"
|
||||
|
||||
// {B13C4BD8-CB9F-4763-A020-E99ABC9C2803}
|
||||
#define NS_IPRIVATETEXTRANGE_IID \
|
||||
{ 0xb13c4bd8, 0xcb9f, 0x4763, \
|
||||
{ 0xa0, 0x20, 0xe9, 0x9a, 0xbc, 0x9c, 0x28, 0x3 } }
|
||||
{ 0xf795a44d, 0x413a, 0x4c63, \
|
||||
{ 0xa6, 0xb0, 0x7a, 0xa3, 0x0c, 0xf5, 0xe9, 0xe0 } }
|
||||
|
||||
class nsIPrivateTextRange : public nsISupports {
|
||||
public:
|
||||
@ -63,14 +62,8 @@ public:
|
||||
};
|
||||
|
||||
NS_IMETHOD GetRangeStart(PRUint16* aRangeStart)=0;
|
||||
NS_IMETHOD SetRangeStart(PRUint16 aRangeStart)=0;
|
||||
|
||||
NS_IMETHOD GetRangeEnd(PRUint16* aRangeEnd)=0;
|
||||
NS_IMETHOD SetRangeEnd(PRUint16 aRangeEnd)=0;
|
||||
|
||||
NS_IMETHOD GetRangeType(PRUint16* aRangeType)=0;
|
||||
NS_IMETHOD SetRangeType(PRUint16 aRangeType)=0;
|
||||
|
||||
NS_IMETHOD GetRangeStyle(nsTextRangeStyle* aTextRangeStyle)=0;
|
||||
};
|
||||
|
||||
|
@ -58,36 +58,18 @@ NS_METHOD nsPrivateTextRange::GetRangeStart(PRUint16* aRangeStart)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsPrivateTextRange::SetRangeStart(PRUint16 aRangeStart)
|
||||
{
|
||||
mRangeStart = aRangeStart;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsPrivateTextRange::GetRangeEnd(PRUint16* aRangeEnd)
|
||||
{
|
||||
*aRangeEnd = mRangeEnd;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsPrivateTextRange::SetRangeEnd(PRUint16 aRangeEnd)
|
||||
{
|
||||
mRangeEnd = aRangeEnd;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsPrivateTextRange::GetRangeType(PRUint16* aRangeType)
|
||||
{
|
||||
*aRangeType = mRangeType;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsPrivateTextRange::SetRangeType(PRUint16 aRangeType)
|
||||
{
|
||||
mRangeType = aRangeType;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsPrivateTextRange::GetRangeStyle(nsTextRangeStyle* aTextRangeStyle)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aTextRangeStyle);
|
||||
|
@ -51,14 +51,8 @@ public:
|
||||
virtual ~nsPrivateTextRange(void);
|
||||
|
||||
NS_IMETHOD GetRangeStart(PRUint16* aRangeStart);
|
||||
NS_IMETHOD SetRangeStart(PRUint16 aRangeStart);
|
||||
|
||||
NS_IMETHOD GetRangeEnd(PRUint16* aRangeEnd);
|
||||
NS_IMETHOD SetRangeEnd(PRUint16 aRangeEnd);
|
||||
|
||||
NS_IMETHOD GetRangeType(PRUint16* aRangeType);
|
||||
NS_IMETHOD SetRangeType(PRUint16 aRangeType);
|
||||
|
||||
NS_IMETHOD GetRangeStyle(nsTextRangeStyle* aRangeStyle);
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user