Lines Matching refs:aCompositionEvent

55                                  WidgetCompositionEvent* aCompositionEvent)  in TextComposition()  argument
59 mNativeContext(aCompositionEvent->mNativeIMEContext), in TextComposition()
64 mIsSynthesizedForTests(aCompositionEvent->mFlags.mIsSynthesizedForTests), in TextComposition()
76 MOZ_ASSERT(aCompositionEvent->mNativeIMEContext.IsValid()); in TextComposition()
97 const WidgetCompositionEvent* aCompositionEvent) { in MaybeDispatchCompositionUpdate() argument
100 if (!IsValidStateForComposition(aCompositionEvent->mWidget)) { in MaybeDispatchCompositionUpdate()
111 if (mLastData == aCompositionEvent->mData) { in MaybeDispatchCompositionUpdate()
114 CloneAndDispatchAs(aCompositionEvent, eCompositionUpdate); in MaybeDispatchCompositionUpdate()
115 return IsValidStateForComposition(aCompositionEvent->mWidget); in MaybeDispatchCompositionUpdate()
119 const WidgetCompositionEvent* aCompositionEvent, EventMessage aMessage, in CloneAndDispatchAs() argument
123 MOZ_ASSERT(IsValidStateForComposition(aCompositionEvent->mWidget), in CloneAndDispatchAs()
126 WidgetCompositionEvent compositionEvent(aCompositionEvent->IsTrusted(), in CloneAndDispatchAs()
127 aMessage, aCompositionEvent->mWidget); in CloneAndDispatchAs()
128 compositionEvent.mTime = aCompositionEvent->mTime; in CloneAndDispatchAs()
129 compositionEvent.mTimeStamp = aCompositionEvent->mTimeStamp; in CloneAndDispatchAs()
130 compositionEvent.mData = aCompositionEvent->mData; in CloneAndDispatchAs()
131 compositionEvent.mNativeIMEContext = aCompositionEvent->mNativeIMEContext; in CloneAndDispatchAs()
132 compositionEvent.mOriginalMessage = aCompositionEvent->mMessage; in CloneAndDispatchAs()
134 aCompositionEvent->mFlags.mIsSynthesizedForTests; in CloneAndDispatchAs()
140 mLastRanges = aCompositionEvent->mRanges; in CloneAndDispatchAs()
143 DispatchEvent(&compositionEvent, status, aCallBack, aCompositionEvent); in CloneAndDispatchAs()
163 WidgetCompositionEvent* aCompositionEvent) { in OnCompositionEventDiscarded() argument
167 MOZ_ASSERT(aCompositionEvent->IsTrusted(), in OnCompositionEventDiscarded()
172 Unused << mBrowserParent->SendCompositionEvent(*aCompositionEvent); in OnCompositionEventDiscarded()
179 if (!aCompositionEvent->CausesDOMCompositionEndEvent()) { in OnCompositionEventDiscarded()
248 WidgetCompositionEvent* aCompositionEvent, nsEventStatus* aStatus, in DispatchCompositionEvent() argument
252 if (aCompositionEvent->IsFollowedByCompositionEnd()) { in DispatchCompositionEvent()
270 Unused << mBrowserParent->SendCompositionEvent(*aCompositionEvent); in DispatchCompositionEvent()
271 aCompositionEvent->StopPropagation(); in DispatchCompositionEvent()
272 if (aCompositionEvent->CausesDOMTextEvent()) { in DispatchCompositionEvent()
273 mLastData = aCompositionEvent->mData; in DispatchCompositionEvent()
274 mLastRanges = aCompositionEvent->mRanges; in DispatchCompositionEvent()
277 EditorWillHandleCompositionChangeEvent(aCompositionEvent); in DispatchCompositionEvent()
284 RemoveControlCharactersFrom(aCompositionEvent->mData, in DispatchCompositionEvent()
285 aCompositionEvent->mRanges); in DispatchCompositionEvent()
287 if (aCompositionEvent->mMessage == eCompositionCommitAsIs) { in DispatchCompositionEvent()
288 NS_ASSERTION(!aCompositionEvent->mRanges, in DispatchCompositionEvent()
290 aCompositionEvent->mRanges = nullptr; in DispatchCompositionEvent()
291 NS_ASSERTION(aCompositionEvent->mData.IsEmpty(), in DispatchCompositionEvent()
298 aCompositionEvent->mData.Truncate(); in DispatchCompositionEvent()
300 aCompositionEvent->mData = mLastData; in DispatchCompositionEvent()
302 } else if (aCompositionEvent->mMessage == eCompositionCommit) { in DispatchCompositionEvent()
303 NS_ASSERTION(!aCompositionEvent->mRanges, in DispatchCompositionEvent()
305 aCompositionEvent->mRanges = nullptr; in DispatchCompositionEvent()
308 if (!IsValidStateForComposition(aCompositionEvent->mWidget)) { in DispatchCompositionEvent()
326 switch (aCompositionEvent->mMessage) { in DispatchCompositionEvent()
331 committingData = &aCompositionEvent->mData; in DispatchCompositionEvent()
350 bool dispatchDOMTextEvent = aCompositionEvent->CausesDOMTextEvent(); in DispatchCompositionEvent()
361 aCompositionEvent->mMessage != eCompositionChange && !mIsComposing && in DispatchCompositionEvent()
362 mHasDispatchedDOMTextEvent && mLastData == aCompositionEvent->mData) { in DispatchCompositionEvent()
370 aCompositionEvent->mMessage == eCompositionChange && in DispatchCompositionEvent()
371 mLastData == aCompositionEvent->mData && mRanges && in DispatchCompositionEvent()
372 aCompositionEvent->mRanges && in DispatchCompositionEvent()
373 mRanges->Equals(*aCompositionEvent->mRanges)) { in DispatchCompositionEvent()
378 if (!MaybeDispatchCompositionUpdate(aCompositionEvent)) { in DispatchCompositionEvent()
389 aCompositionEvent->mMessage != eCompositionChange) { in DispatchCompositionEvent()
391 aCompositionEvent->mFlags = CloneAndDispatchAs( in DispatchCompositionEvent()
392 aCompositionEvent, eCompositionChange, aStatus, aCallBack); in DispatchCompositionEvent()
394 if (aCompositionEvent->mMessage == eCompositionChange) { in DispatchCompositionEvent()
397 DispatchEvent(aCompositionEvent, aStatus, aCallBack); in DispatchCompositionEvent()
403 if (!IsValidStateForComposition(aCompositionEvent->mWidget)) { in DispatchCompositionEvent()
410 EditorWillHandleCompositionChangeEvent(aCompositionEvent); in DispatchCompositionEvent()
414 if (aCompositionEvent->CausesDOMCompositionEndEvent()) { in DispatchCompositionEvent()
416 if (aCompositionEvent->mMessage != eCompositionEnd) { in DispatchCompositionEvent()
417 CloneAndDispatchAs(aCompositionEvent, eCompositionEnd); in DispatchCompositionEvent()
423 MaybeNotifyIMEOfCompositionEventHandled(aCompositionEvent); in DispatchCompositionEvent()
496 const WidgetCompositionEvent* aCompositionEvent) { in OnCompositionEventDispatched() argument
499 if (!IsValidStateForComposition(aCompositionEvent->mWidget)) { in OnCompositionEventDispatched()
507 MOZ_ASSERT(aCompositionEvent->mMessage != eCompositionStart || in OnCompositionEventDispatched()
513 !aCompositionEvent->CausesDOMCompositionEndEvent()) { in OnCompositionEventDispatched()
521 if (aCompositionEvent->CausesDOMTextEvent()) { in OnCompositionEventDispatched()
522 mTargetClauseOffsetInComposition = aCompositionEvent->TargetClauseOffset(); in OnCompositionEventDispatched()
531 const WidgetCompositionEvent* aCompositionEvent) { in MaybeNotifyIMEOfCompositionEventHandled() argument
532 if (aCompositionEvent->mMessage != eCompositionStart && in MaybeNotifyIMEOfCompositionEventHandled()
533 !aCompositionEvent->CausesDOMTextEvent()) { in MaybeNotifyIMEOfCompositionEventHandled()
924 const WidgetCompositionEvent* aCompositionEvent) { in GetCompositionFor() argument
925 index_type i = IndexOf(aCompositionEvent->mNativeIMEContext); in GetCompositionFor()