mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug
This commit is contained in:
parent
8fa33d4666
commit
2586c79eb1
@ -808,7 +808,7 @@ nsIContent::PreHandleEvent(EventChainPreVisitor& aVisitor)
|
||||
switch (aVisitor.mEvent->mMessage) {
|
||||
case eImageAbort:
|
||||
case eLoadError:
|
||||
case NS_FORM_SELECTED:
|
||||
case eFormSelect:
|
||||
case eFormChange:
|
||||
case eLoad:
|
||||
case eFormReset:
|
||||
|
@ -716,7 +716,7 @@ Event::GetEventPopupControlState(WidgetEvent* aEvent, nsIDOMEvent* aDOMEvent)
|
||||
// nsPresShell::HandleEventInternal() for details.
|
||||
if (EventStateManager::IsHandlingUserInput()) {
|
||||
switch(aEvent->mMessage) {
|
||||
case NS_FORM_SELECTED :
|
||||
case eFormSelect:
|
||||
if (PopupAllowedForEvent("select")) {
|
||||
abuse = openControlled;
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ EVENT(seeking,
|
||||
EventNameType_HTML,
|
||||
eBasicEventClass)
|
||||
EVENT(select,
|
||||
NS_FORM_SELECTED,
|
||||
eFormSelect,
|
||||
EventNameType_HTMLXUL,
|
||||
eBasicEventClass)
|
||||
EVENT(show,
|
||||
|
@ -2987,7 +2987,7 @@ HTMLInputElement::DispatchSelectEvent(nsPresContext* aPresContext)
|
||||
|
||||
// If already handling select event, don't dispatch a second.
|
||||
if (!mHandlingSelectEvent) {
|
||||
WidgetEvent event(nsContentUtils::IsCallerChrome(), NS_FORM_SELECTED);
|
||||
WidgetEvent event(nsContentUtils::IsCallerChrome(), eFormSelect);
|
||||
|
||||
mHandlingSelectEvent = true;
|
||||
EventDispatcher::Dispatch(static_cast<nsIContent*>(this),
|
||||
|
@ -137,7 +137,7 @@ HTMLTextAreaElement::Select()
|
||||
}
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
WidgetGUIEvent event(true, NS_FORM_SELECTED, nullptr);
|
||||
WidgetGUIEvent event(true, eFormSelect, nullptr);
|
||||
// XXXbz HTMLInputElement guards against this reentering; shouldn't we?
|
||||
EventDispatcher::Dispatch(static_cast<nsIContent*>(this), presContext,
|
||||
&event, nullptr, &status);
|
||||
@ -486,7 +486,7 @@ HTMLTextAreaElement::PreHandleEvent(EventChainPreVisitor& aVisitor)
|
||||
|
||||
// Don't dispatch a second select event if we are already handling
|
||||
// one.
|
||||
if (aVisitor.mEvent->mMessage == NS_FORM_SELECTED) {
|
||||
if (aVisitor.mEvent->mMessage == eFormSelect) {
|
||||
if (mHandlingSelect) {
|
||||
return NS_OK;
|
||||
}
|
||||
@ -534,7 +534,7 @@ HTMLTextAreaElement::FireChangeEventIfNeeded()
|
||||
nsresult
|
||||
HTMLTextAreaElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
|
||||
{
|
||||
if (aVisitor.mEvent->mMessage == NS_FORM_SELECTED) {
|
||||
if (aVisitor.mEvent->mMessage == eFormSelect) {
|
||||
mHandlingSelect = false;
|
||||
}
|
||||
|
||||
|
@ -819,7 +819,7 @@ nsTextInputListener::NotifySelectionChanged(nsIDOMDocument* aDoc, nsISelection*
|
||||
if (presShell)
|
||||
{
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
WidgetEvent event(true, NS_FORM_SELECTED);
|
||||
WidgetEvent event(true, eFormSelect);
|
||||
|
||||
presShell->HandleEventWithTarget(&event, mFrame, content, &status);
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ NS_EVENT_MESSAGE(eFormEventFirst, 1200)
|
||||
NS_EVENT_MESSAGE(eFormSubmit, eFormEventFirst)
|
||||
NS_EVENT_MESSAGE(eFormReset, eFormEventFirst + 1)
|
||||
NS_EVENT_MESSAGE(eFormChange, eFormEventFirst + 2)
|
||||
NS_EVENT_MESSAGE(NS_FORM_SELECTED, eFormEventFirst + 3)
|
||||
NS_EVENT_MESSAGE(eFormSelect, eFormEventFirst + 3)
|
||||
NS_EVENT_MESSAGE(NS_FORM_INVALID, eFormEventFirst + 4)
|
||||
|
||||
//Need separate focus/blur notifications for non-native widgets
|
||||
|
@ -2639,7 +2639,7 @@ case _value: eventName.AssignLiteral(_name) ; break
|
||||
_ASSIGN_eventName(NS_DRAGDROP_OVER,"NS_DND_OVER");
|
||||
_ASSIGN_eventName(NS_EDITOR_INPUT,"NS_EDITOR_INPUT");
|
||||
_ASSIGN_eventName(NS_FOCUS_CONTENT,"NS_FOCUS_CONTENT");
|
||||
_ASSIGN_eventName(NS_FORM_SELECTED,"NS_FORM_SELECTED");
|
||||
_ASSIGN_eventName(eFormSelect,"eFormSelect");
|
||||
_ASSIGN_eventName(eFormChange,"eFormChange");
|
||||
_ASSIGN_eventName(eFormReset,"eFormReset");
|
||||
_ASSIGN_eventName(eFormSubmit,"eFormSubmit");
|
||||
|
Loading…
Reference in New Issue
Block a user