Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-02 15:08:00 +09:00
parent 8fa33d4666
commit 2586c79eb1
8 changed files with 10 additions and 10 deletions

View File

@ -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:

View File

@ -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;
}

View File

@ -386,7 +386,7 @@ EVENT(seeking,
EventNameType_HTML,
eBasicEventClass)
EVENT(select,
NS_FORM_SELECTED,
eFormSelect,
EventNameType_HTMLXUL,
eBasicEventClass)
EVENT(show,

View File

@ -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),

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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

View File

@ -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");