mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 895274 part.166 Rename NS_CONTENT_COMMAND_DELETE to eContentCommandDelete r=smaug
This commit is contained in:
parent
62ac576782
commit
0ac2124d50
@ -2062,7 +2062,7 @@ nsDOMWindowUtils::SendContentCommandEvent(const nsAString& aType,
|
||||
else if (aType.EqualsLiteral("paste"))
|
||||
msg = eContentCommandPaste;
|
||||
else if (aType.EqualsLiteral("delete"))
|
||||
msg = NS_CONTENT_COMMAND_DELETE;
|
||||
msg = eContentCommandDelete;
|
||||
else if (aType.EqualsLiteral("undo"))
|
||||
msg = NS_CONTENT_COMMAND_UNDO;
|
||||
else if (aType.EqualsLiteral("redo"))
|
||||
|
@ -750,7 +750,7 @@ EventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
||||
case eContentCommandCut:
|
||||
case eContentCommandCopy:
|
||||
case eContentCommandPaste:
|
||||
case NS_CONTENT_COMMAND_DELETE:
|
||||
case eContentCommandDelete:
|
||||
case NS_CONTENT_COMMAND_UNDO:
|
||||
case NS_CONTENT_COMMAND_REDO:
|
||||
case eContentCommandPasteTransferable:
|
||||
@ -5046,7 +5046,7 @@ EventStateManager::DoContentCommandEvent(WidgetContentCommandEvent* aEvent)
|
||||
case eContentCommandPaste:
|
||||
cmd = "cmd_paste";
|
||||
break;
|
||||
case NS_CONTENT_COMMAND_DELETE:
|
||||
case eContentCommandDelete:
|
||||
cmd = "cmd_delete";
|
||||
break;
|
||||
case NS_CONTENT_COMMAND_UNDO:
|
||||
|
@ -303,7 +303,7 @@ NS_EVENT_MESSAGE(eContentCommandEventFirst, 3800)
|
||||
NS_EVENT_MESSAGE(eContentCommandCut, eContentCommandEventFirst)
|
||||
NS_EVENT_MESSAGE(eContentCommandCopy, eContentCommandEventFirst + 1)
|
||||
NS_EVENT_MESSAGE(eContentCommandPaste, eContentCommandEventFirst + 2)
|
||||
NS_EVENT_MESSAGE(NS_CONTENT_COMMAND_DELETE, eContentCommandEventFirst + 3)
|
||||
NS_EVENT_MESSAGE(eContentCommandDelete, eContentCommandEventFirst + 3)
|
||||
NS_EVENT_MESSAGE(NS_CONTENT_COMMAND_UNDO, eContentCommandEventFirst + 4)
|
||||
NS_EVENT_MESSAGE(NS_CONTENT_COMMAND_REDO, eContentCommandEventFirst + 5)
|
||||
NS_EVENT_MESSAGE(eContentCommandPasteTransferable, eContentCommandEventFirst + 6)
|
||||
|
@ -2099,8 +2099,7 @@ TextInputHandler::InsertText(NSAttributedString* aAttrString,
|
||||
}
|
||||
// Delete the selected range.
|
||||
nsRefPtr<TextInputHandler> kungFuDeathGrip(this);
|
||||
WidgetContentCommandEvent deleteCommandEvent(true,
|
||||
NS_CONTENT_COMMAND_DELETE,
|
||||
WidgetContentCommandEvent deleteCommandEvent(true, eContentCommandDelete,
|
||||
mWidget);
|
||||
DispatchEvent(deleteCommandEvent);
|
||||
NS_ENSURE_TRUE_VOID(deleteCommandEvent.mSucceeded);
|
||||
|
@ -2080,8 +2080,7 @@ IMContextWrapper::DeleteText(GtkIMContext* aContext,
|
||||
}
|
||||
|
||||
// Delete the selection
|
||||
WidgetContentCommandEvent contentCommandEvent(true,
|
||||
NS_CONTENT_COMMAND_DELETE,
|
||||
WidgetContentCommandEvent contentCommandEvent(true, eContentCommandDelete,
|
||||
mLastFocusedWindow);
|
||||
mLastFocusedWindow->DispatchEvent(&contentCommandEvent, status);
|
||||
|
||||
|
@ -5648,7 +5648,7 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam,
|
||||
|
||||
case WM_CLEAR:
|
||||
{
|
||||
WidgetContentCommandEvent command(true, NS_CONTENT_COMMAND_DELETE, this);
|
||||
WidgetContentCommandEvent command(true, eContentCommandDelete, this);
|
||||
DispatchWindowEvent(&command);
|
||||
result = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user