Bug 1275906 part.1 Rename NOTIFY_IME_OF_COMPOSITION_UPDATE to NOTIFY_IME_OF_COMPOSITION_EVENT_HANDLED r=m_kato
It's not clear to me what NOTIFY_IME_OF_COMPOSITION_UPDATE means only from the name. For making the name clearer, this patch renames it to NOTIFY_IME_OF_COMPOSITION_EVENT_HANDLED and add some explanation to the definition. MozReview-Commit-ID: 8ySYCNJ1Ytz
This commit is contained in:
@@ -29,28 +29,7 @@ GetNotificationName(const IMENotification* aNotification)
|
||||
if (!aNotification) {
|
||||
return "Not notification";
|
||||
}
|
||||
switch (aNotification->mMessage) {
|
||||
case NOTIFY_IME_OF_FOCUS:
|
||||
return "NOTIFY_IME_OF_FOCUS";
|
||||
case NOTIFY_IME_OF_BLUR:
|
||||
return "NOTIFY_IME_OF_BLUR";
|
||||
case NOTIFY_IME_OF_SELECTION_CHANGE:
|
||||
return "NOTIFY_IME_OF_SELECTION_CHANGE";
|
||||
case NOTIFY_IME_OF_TEXT_CHANGE:
|
||||
return "NOTIFY_IME_OF_TEXT_CHANGE";
|
||||
case NOTIFY_IME_OF_COMPOSITION_UPDATE:
|
||||
return "NOTIFY_IME_OF_COMPOSITION_UPDATE";
|
||||
case NOTIFY_IME_OF_POSITION_CHANGE:
|
||||
return "NOTIFY_IME_OF_POSITION_CHANGE";
|
||||
case NOTIFY_IME_OF_MOUSE_BUTTON_EVENT:
|
||||
return "NOTIFY_IME_OF_MOUSE_BUTTON_EVENT";
|
||||
case REQUEST_TO_COMMIT_COMPOSITION:
|
||||
return "REQUEST_TO_COMMIT_COMPOSITION";
|
||||
case REQUEST_TO_CANCEL_COMPOSITION:
|
||||
return "REQUEST_TO_CANCEL_COMPOSITION";
|
||||
default:
|
||||
return "Unsupported notification";
|
||||
}
|
||||
return ToChar(aNotification->mMessage);
|
||||
}
|
||||
|
||||
class GetRectText : public nsAutoCString
|
||||
@@ -991,7 +970,7 @@ ContentCacheInParent::MaybeNotifyIME(nsIWidget* aWidget,
|
||||
case NOTIFY_IME_OF_POSITION_CHANGE:
|
||||
mPendingLayoutChange.MergeWith(aNotification);
|
||||
break;
|
||||
case NOTIFY_IME_OF_COMPOSITION_UPDATE:
|
||||
case NOTIFY_IME_OF_COMPOSITION_EVENT_HANDLED:
|
||||
mPendingCompositionUpdate.MergeWith(aNotification);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user