зеркало из https://github.com/mozilla/gecko-dev.git
Bug 326904, Remove NS_APP_EVENT_FLAG_HANDLED, r+sr=jst
This commit is contained in:
Родитель
8842858d56
Коммит
97841b1891
|
@ -601,28 +601,6 @@ nsDOMEvent::IsDispatchStopped(PRBool* aIsDispatchStopped)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMEvent::IsHandled(PRBool* aIsHandled)
|
||||
{
|
||||
if (mEvent->internalAppFlags | NS_APP_EVENT_FLAG_HANDLED) {
|
||||
*aIsHandled = PR_TRUE;
|
||||
} else {
|
||||
*aIsHandled = PR_FALSE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMEvent::SetHandled(PRBool aHandled)
|
||||
{
|
||||
if(aHandled)
|
||||
mEvent->internalAppFlags |= NS_APP_EVENT_FLAG_HANDLED;
|
||||
else
|
||||
mEvent->internalAppFlags &= ~NS_APP_EVENT_FLAG_HANDLED;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMEvent::GetInternalNSEvent(nsEvent** aNSEvent)
|
||||
{
|
||||
|
|
|
@ -157,9 +157,6 @@ public:
|
|||
NS_IMETHOD HasOriginalTarget(PRBool* aResult);
|
||||
NS_IMETHOD SetTrusted(PRBool aTrusted);
|
||||
|
||||
NS_IMETHOD IsHandled(PRBool* aHandled);
|
||||
NS_IMETHOD SetHandled(PRBool aHandled);
|
||||
|
||||
static PopupControlState GetEventPopupControlState(nsEvent *aEvent);
|
||||
|
||||
static void PopupAllowedEventsChanged();
|
||||
|
|
|
@ -124,11 +124,8 @@ class nsIURI;
|
|||
|
||||
#define NS_APP_EVENT_FLAG_NONE 0x00000000
|
||||
|
||||
// Similar to NS_EVENT_FLAG_NO_DEFAULT, but it allows focus
|
||||
#define NS_APP_EVENT_FLAG_HANDLED 0x00000001
|
||||
|
||||
// True if the event came from a trusted source
|
||||
#define NS_APP_EVENT_FLAG_TRUSTED 0x00000002
|
||||
#define NS_APP_EVENT_FLAG_TRUSTED 0x00000001
|
||||
|
||||
#define NS_EVENT_TYPE_NULL 0
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче