mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-29 10:32:23 +00:00
b91a6a24cc
- Bug 1001637 - Make math tables implement the nsIAccessibleTable interface. r=surkov (ebbb4325d6) - Bug 1149118 - Expose radio group with the correct role on OS X, r=surkov (4d4a95735c) - Bug 1113153 - use 'paragraph' role for paragraphs only, introduce 'text' role for small text containers, r=marcoz (14c4fa5881) - Bug 1175164 - Do not expose MathML semantics element in the accessibility tree. r=surkov (3945ae0367) - Bug 930843 part.1 Add test for checking isTrust attribute value of DOMActivate event r=smaug (14a49dd447) - Bug 930843 part.2 NS_UI_ACTIVATE event should be trusted event even if it's caused by an untrusted event r=smaug (e0af6165b5) - Bug 1156315 - Call DispatchInputEvent in more places on OS X. r=dvander (e24f42c09f) - Bug 1186015 part.1 Rename nsIMEContext to mozilla::widget::IMEContext r=jimm (077bf6e772) - Bug 1186015 part.2 Rename nsIMM32Handler to mozilla::widget::IMMHandler r=jimm+m_kato (a2098e33b5) - Bug 1184533 Rewrite range check in aOffset of nsIMM32Handler::GetCharacterRectOfSelectedTextAt() r=emk (fb68bc3c56) - Bug 555642 part.1 nsCaret should have a way to override the caret visible state for hiding caret temporarily and nsEditor should hide caret if composition string doesn't have caret information r=roc (9de4aa366c) - Bug 1171847 Remove unnecessary ',' in logging code in nsTextStore::Initialize() r=m_kato (78d0d43625) - Bug 1181714 nsTextStore should store previous focused document manager until new document manager actually gets focus r=m_kato (fd7e820af2) - Bug 1176950 nsTextStore should keep storing locked content until NOTIFY_IME_OF_COMPOSITION_UPDATE is notified r=emk (0a12349575) - Bug 1137539 part.1 Implement TSFStaticSink::IsGoogleJapaneseInputActive() r=emk (68d1f9a0ec) - Bug 1137539 part.2 Implement TSFStaticSink::IsATOKActive() r=emk (51a4208bfa) - Bug 1137539 part.3 Implement TSFStaticSink::IsFreeChangJieActive() r=emk (affbb81b96) - Bug 1137539 part.4 Implement TSFStaticSink::IsEasyChangjeiActive() r=emk (abd3e674b6) - Bug 1186014 Rename nsTextStore to mozilla::widget::TSFTextStore r=jimm+m_kato (ca63351f94) - Bug 1187351 TSFTextStore should forget modified range at notifying TSF of layout change since GetTextExt() shouldn't return TS_E_NOLAYOUT after that r=emk (48878793e0) - Bg 1187367 TSFTextStore shouldn't destroy native caret for ATOK until notifying TSF of layout change r=emk (a2a4022d15) - Bug 1187566 TSFTextStore::Content should compute mMinTextModified Offset only with the latest composition string and original composition string, and also the hack should be enabled on Win10 r=emk (1368885efe) - Bug 1050644 part.1 Add methods to check whether the active TIP is Chinese TIP which deosn't show candidate window in e10s mode r=emk (1b783e682e) - Bug 1050644 part.2 Hack ITextStoreACP::GetTextExt()'s offset for some Chinese TIPs of MS r=emk (c05cec10ce) - Bug 1187579 Enable TSF in e10s mode r=m_kato (1ae106231a) - Bug 555642 part.2 IME handlers on Windows shouldn't append caret range if the caret is in the target clause which doesn't have specific style r=m_kato (88bae2c8da) - Bug 1196124 Fix mismatch of printf style string and following arguments of MOZ_LOG() in IMMHandler::GetCharacterRectOfSelectedTextAt() r=m_kato (0f6debd0d3) - Bug 90712 Cancel composition when Enter key message isn't consumed by IME r=m_kato (0febdb1fd9) - pointer style (6c984274cd) - Bug 1177268 - implement aria-rowcount/index and aria-colcount/index, r=marcoz (92ac300374) - Bug 1153135 - Return possibility PEN working while APZC is enabled. r=jimm (8bc77ff84f) - Bug 1171073 - Suppress content scrolling issue on 64-bit platforms. r=kats (62db0dead3) - Bug 1121946, Implement e10 cursor drag feedback on Windows, r=jmathies (6e8218d202) - Bug 1144650 - Don't dispatch touch-based mouse events when APZ is handling touch. r=jimm (53ebea0d90) - Bug 1163056 - InkCollector activation at first PEN event. r=jimm (b28e0ee58b) - Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug (32e04a4e90) - spacing (b9249221dc) - Bug 1182966 - Part 3: Add some final annotations to DomainSet. r=mrbkap (3455822e89) - Bug 1050122 - Part 1: Enable Nuwa on debug builds, and kill it if the preference is false. r=khuey (46685a7bf3) - Bug 1146229: Remove calling convention modifier from local variable. r=surkov (e5f4b6e5d5) - bug 1168932 - Implement ProxyCreated and ProxyDestroyed to update mozAccessibles r=tbsaunde (77a007fa21) - Bug 1169701 - Fire native OS X accessibility events for proxied accessibles r=tbsaunde (c4847135a8) - bug 1172523 - fire useful text change events for proxies r=lsock (85b7f995b8) - remove spurious file (229c787360) - bug 1171117 - Fix cairo to build on iOS. r=jrmuizel (45709c8fe3) - Bug 963738 - Annotate XPCNativeMember, r=terrence (d1afdde52b) - Bug 1148383 - Add testcase for previously fixed object metadata issue r=terrence (2c1b762cba) - Bug 1149797 - Update browser jstests to treat ecma_6/extensions tests as 1.8, so that let is interpreted as a statement and not as an expression. r=bustage in a CLOSED TREE (ac6127d6bc) - Bug 1150858 - Unwrap the correct object in ArrayBuffer.transfer (r=sfink) (cf67906802) - Bug 1150380 - IonMonkey: MIPS: Fix JitRuntime::generateProfilerExitFrameTailStub. r=rankov (eeac49ddce) - use RootedValue for POW as in 1135708 (34c1c3d191) - Bug 1196648: IonMonkey - Don't run the lazy link stub for asmjs to jit fastpath, r=nbp (686d495371) - Bug 1121947, Implement e10 cursor drag feedback on Mac, r=smaug (f48df2d1) - and sync widget/TextEvents.h and TextRange.h with AF.
919 lines
30 KiB
C++
919 lines
30 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef nsGUIEventIPC_h__
|
|
#define nsGUIEventIPC_h__
|
|
|
|
#include "ipc/IPCMessageUtils.h"
|
|
#include "mozilla/ContentCache.h"
|
|
#include "mozilla/GfxMessageUtils.h"
|
|
#include "mozilla/dom/Touch.h"
|
|
#include "mozilla/MiscEvents.h"
|
|
#include "mozilla/MouseEvents.h"
|
|
#include "mozilla/TextEvents.h"
|
|
#include "mozilla/TouchEvents.h"
|
|
|
|
namespace IPC
|
|
{
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::EventMessage>
|
|
{
|
|
typedef mozilla::EventMessage paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<const mozilla::EventMessageType&>(aParam));
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
mozilla::EventMessageType eventMessage = 0;
|
|
bool ret = ReadParam(aMsg, aIter, &eventMessage);
|
|
*aResult = static_cast<paramType>(eventMessage);
|
|
return ret;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::BaseEventFlags>
|
|
{
|
|
typedef mozilla::BaseEventFlags paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
aMsg->WriteBytes(&aParam, sizeof(aParam));
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
const char* outp;
|
|
if (!aMsg->ReadBytes(aIter, &outp, sizeof(*aResult))) {
|
|
return false;
|
|
}
|
|
*aResult = *reinterpret_cast<const paramType*>(outp);
|
|
return true;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetEvent>
|
|
{
|
|
typedef mozilla::WidgetEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg,
|
|
static_cast<mozilla::EventClassIDType>(aParam.mClass));
|
|
WriteParam(aMsg, aParam.mMessage);
|
|
WriteParam(aMsg, aParam.refPoint);
|
|
WriteParam(aMsg, aParam.time);
|
|
WriteParam(aMsg, aParam.timeStamp);
|
|
WriteParam(aMsg, aParam.mFlags);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
mozilla::EventClassIDType eventClassID = 0;
|
|
bool ret = ReadParam(aMsg, aIter, &eventClassID) &&
|
|
ReadParam(aMsg, aIter, &aResult->mMessage) &&
|
|
ReadParam(aMsg, aIter, &aResult->refPoint) &&
|
|
ReadParam(aMsg, aIter, &aResult->time) &&
|
|
ReadParam(aMsg, aIter, &aResult->timeStamp) &&
|
|
ReadParam(aMsg, aIter, &aResult->mFlags);
|
|
aResult->mClass = static_cast<mozilla::EventClassID>(eventClassID);
|
|
return ret;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetGUIEvent>
|
|
{
|
|
typedef mozilla::WidgetGUIEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetEvent>(aParam));
|
|
WriteParam(aMsg, aParam.mPluginEvent.mBuffer);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, static_cast<mozilla::WidgetEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->mPluginEvent.mBuffer);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetInputEvent>
|
|
{
|
|
typedef mozilla::WidgetInputEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetGUIEvent>(aParam));
|
|
WriteParam(aMsg, aParam.modifiers);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetGUIEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->modifiers);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetMouseEventBase>
|
|
{
|
|
typedef mozilla::WidgetMouseEventBase paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetInputEvent>(aParam));
|
|
WriteParam(aMsg, aParam.button);
|
|
WriteParam(aMsg, aParam.buttons);
|
|
WriteParam(aMsg, aParam.pressure);
|
|
WriteParam(aMsg, aParam.inputSource);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetInputEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->button) &&
|
|
ReadParam(aMsg, aIter, &aResult->buttons) &&
|
|
ReadParam(aMsg, aIter, &aResult->pressure) &&
|
|
ReadParam(aMsg, aIter, &aResult->inputSource);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetWheelEvent>
|
|
{
|
|
typedef mozilla::WidgetWheelEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetMouseEventBase>(aParam));
|
|
WriteParam(aMsg, aParam.deltaX);
|
|
WriteParam(aMsg, aParam.deltaY);
|
|
WriteParam(aMsg, aParam.deltaZ);
|
|
WriteParam(aMsg, aParam.deltaMode);
|
|
WriteParam(aMsg, aParam.customizedByUserPrefs);
|
|
WriteParam(aMsg, aParam.isMomentum);
|
|
WriteParam(aMsg, aParam.mIsNoLineOrPageDelta);
|
|
WriteParam(aMsg, aParam.lineOrPageDeltaX);
|
|
WriteParam(aMsg, aParam.lineOrPageDeltaY);
|
|
WriteParam(aMsg, static_cast<int32_t>(aParam.scrollType));
|
|
WriteParam(aMsg, aParam.overflowDeltaX);
|
|
WriteParam(aMsg, aParam.overflowDeltaY);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
int32_t scrollType = 0;
|
|
bool rv =
|
|
ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetMouseEventBase*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->deltaX) &&
|
|
ReadParam(aMsg, aIter, &aResult->deltaY) &&
|
|
ReadParam(aMsg, aIter, &aResult->deltaZ) &&
|
|
ReadParam(aMsg, aIter, &aResult->deltaMode) &&
|
|
ReadParam(aMsg, aIter, &aResult->customizedByUserPrefs) &&
|
|
ReadParam(aMsg, aIter, &aResult->isMomentum) &&
|
|
ReadParam(aMsg, aIter, &aResult->mIsNoLineOrPageDelta) &&
|
|
ReadParam(aMsg, aIter, &aResult->lineOrPageDeltaX) &&
|
|
ReadParam(aMsg, aIter, &aResult->lineOrPageDeltaY) &&
|
|
ReadParam(aMsg, aIter, &scrollType) &&
|
|
ReadParam(aMsg, aIter, &aResult->overflowDeltaX) &&
|
|
ReadParam(aMsg, aIter, &aResult->overflowDeltaY);
|
|
aResult->scrollType =
|
|
static_cast<mozilla::WidgetWheelEvent::ScrollType>(scrollType);
|
|
return rv;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetMouseEvent>
|
|
{
|
|
typedef mozilla::WidgetMouseEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetMouseEventBase>(aParam));
|
|
WriteParam(aMsg, aParam.ignoreRootScrollFrame);
|
|
WriteParam(aMsg, (uint8_t) aParam.reason);
|
|
WriteParam(aMsg, (uint8_t) aParam.context);
|
|
WriteParam(aMsg, (uint8_t) aParam.exit);
|
|
WriteParam(aMsg, aParam.clickCount);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
bool rv;
|
|
uint8_t reason = 0, context = 0, exit = 0;
|
|
rv = ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetMouseEventBase*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->ignoreRootScrollFrame) &&
|
|
ReadParam(aMsg, aIter, &reason) &&
|
|
ReadParam(aMsg, aIter, &context) &&
|
|
ReadParam(aMsg, aIter, &exit) &&
|
|
ReadParam(aMsg, aIter, &aResult->clickCount);
|
|
aResult->reason =
|
|
static_cast<mozilla::WidgetMouseEvent::reasonType>(reason);
|
|
aResult->context =
|
|
static_cast<mozilla::WidgetMouseEvent::contextType>(context);
|
|
aResult->exit = static_cast<mozilla::WidgetMouseEvent::exitType>(exit);
|
|
return rv;
|
|
}
|
|
};
|
|
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetDragEvent>
|
|
{
|
|
typedef mozilla::WidgetDragEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetMouseEvent>(aParam));
|
|
WriteParam(aMsg, aParam.userCancelled);
|
|
WriteParam(aMsg, aParam.mDefaultPreventedOnContent);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
bool rv =
|
|
ReadParam(aMsg, aIter, static_cast<mozilla::WidgetMouseEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->userCancelled) &&
|
|
ReadParam(aMsg, aIter, &aResult->mDefaultPreventedOnContent);
|
|
return rv;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetPointerEvent>
|
|
{
|
|
typedef mozilla::WidgetPointerEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetMouseEvent>(aParam));
|
|
WriteParam(aMsg, aParam.pointerId);
|
|
WriteParam(aMsg, aParam.width);
|
|
WriteParam(aMsg, aParam.height);
|
|
WriteParam(aMsg, aParam.tiltX);
|
|
WriteParam(aMsg, aParam.tiltY);
|
|
WriteParam(aMsg, aParam.isPrimary);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
bool rv =
|
|
ReadParam(aMsg, aIter, static_cast<mozilla::WidgetMouseEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->pointerId) &&
|
|
ReadParam(aMsg, aIter, &aResult->width) &&
|
|
ReadParam(aMsg, aIter, &aResult->height) &&
|
|
ReadParam(aMsg, aIter, &aResult->tiltX) &&
|
|
ReadParam(aMsg, aIter, &aResult->tiltY) &&
|
|
ReadParam(aMsg, aIter, &aResult->isPrimary);
|
|
return rv;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetTouchEvent>
|
|
{
|
|
typedef mozilla::WidgetTouchEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<const mozilla::WidgetInputEvent&>(aParam));
|
|
// Sigh, Touch bites us again! We want to be able to do
|
|
// WriteParam(aMsg, aParam.touches);
|
|
const paramType::TouchArray& touches = aParam.touches;
|
|
WriteParam(aMsg, touches.Length());
|
|
for (uint32_t i = 0; i < touches.Length(); ++i) {
|
|
mozilla::dom::Touch* touch = touches[i];
|
|
WriteParam(aMsg, touch->mIdentifier);
|
|
WriteParam(aMsg, touch->mRefPoint);
|
|
WriteParam(aMsg, touch->mRadius);
|
|
WriteParam(aMsg, touch->mRotationAngle);
|
|
WriteParam(aMsg, touch->mForce);
|
|
}
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
paramType::TouchArray::size_type numTouches;
|
|
if (!ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetInputEvent*>(aResult)) ||
|
|
!ReadParam(aMsg, aIter, &numTouches)) {
|
|
return false;
|
|
}
|
|
for (uint32_t i = 0; i < numTouches; ++i) {
|
|
int32_t identifier;
|
|
mozilla::LayoutDeviceIntPoint refPoint;
|
|
nsIntPoint radius;
|
|
float rotationAngle;
|
|
float force;
|
|
if (!ReadParam(aMsg, aIter, &identifier) ||
|
|
!ReadParam(aMsg, aIter, &refPoint) ||
|
|
!ReadParam(aMsg, aIter, &radius) ||
|
|
!ReadParam(aMsg, aIter, &rotationAngle) ||
|
|
!ReadParam(aMsg, aIter, &force)) {
|
|
return false;
|
|
}
|
|
aResult->touches.AppendElement(
|
|
new mozilla::dom::Touch(
|
|
identifier, refPoint, radius, rotationAngle, force));
|
|
}
|
|
return true;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::AlternativeCharCode>
|
|
{
|
|
typedef mozilla::AlternativeCharCode paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mUnshiftedCharCode);
|
|
WriteParam(aMsg, aParam.mShiftedCharCode);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mUnshiftedCharCode) &&
|
|
ReadParam(aMsg, aIter, &aResult->mShiftedCharCode);
|
|
}
|
|
};
|
|
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetKeyboardEvent>
|
|
{
|
|
typedef mozilla::WidgetKeyboardEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetInputEvent>(aParam));
|
|
WriteParam(aMsg, static_cast<uint32_t>(aParam.mKeyNameIndex));
|
|
WriteParam(aMsg, static_cast<uint32_t>(aParam.mCodeNameIndex));
|
|
WriteParam(aMsg, aParam.mKeyValue);
|
|
WriteParam(aMsg, aParam.mCodeValue);
|
|
WriteParam(aMsg, aParam.keyCode);
|
|
WriteParam(aMsg, aParam.charCode);
|
|
WriteParam(aMsg, aParam.alternativeCharCodes);
|
|
WriteParam(aMsg, aParam.isChar);
|
|
WriteParam(aMsg, aParam.mIsRepeat);
|
|
WriteParam(aMsg, aParam.location);
|
|
WriteParam(aMsg, aParam.mUniqueId);
|
|
#ifdef XP_MACOSX
|
|
WriteParam(aMsg, aParam.mNativeKeyCode);
|
|
WriteParam(aMsg, aParam.mNativeModifierFlags);
|
|
WriteParam(aMsg, aParam.mNativeCharacters);
|
|
WriteParam(aMsg, aParam.mNativeCharactersIgnoringModifiers);
|
|
WriteParam(aMsg, aParam.mPluginTextEventString);
|
|
#endif
|
|
// An OS-specific native event might be attached in |mNativeKeyEvent|, but
|
|
// that cannot be copied across process boundaries.
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
uint32_t keyNameIndex = 0, codeNameIndex = 0;
|
|
if (ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetInputEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &keyNameIndex) &&
|
|
ReadParam(aMsg, aIter, &codeNameIndex) &&
|
|
ReadParam(aMsg, aIter, &aResult->mKeyValue) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCodeValue) &&
|
|
ReadParam(aMsg, aIter, &aResult->keyCode) &&
|
|
ReadParam(aMsg, aIter, &aResult->charCode) &&
|
|
ReadParam(aMsg, aIter, &aResult->alternativeCharCodes) &&
|
|
ReadParam(aMsg, aIter, &aResult->isChar) &&
|
|
ReadParam(aMsg, aIter, &aResult->mIsRepeat) &&
|
|
ReadParam(aMsg, aIter, &aResult->location) &&
|
|
ReadParam(aMsg, aIter, &aResult->mUniqueId)
|
|
#ifdef XP_MACOSX
|
|
&& ReadParam(aMsg, aIter, &aResult->mNativeKeyCode)
|
|
&& ReadParam(aMsg, aIter, &aResult->mNativeModifierFlags)
|
|
&& ReadParam(aMsg, aIter, &aResult->mNativeCharacters)
|
|
&& ReadParam(aMsg, aIter, &aResult->mNativeCharactersIgnoringModifiers)
|
|
&& ReadParam(aMsg, aIter, &aResult->mPluginTextEventString)
|
|
#endif
|
|
)
|
|
{
|
|
aResult->mKeyNameIndex = static_cast<mozilla::KeyNameIndex>(keyNameIndex);
|
|
aResult->mCodeNameIndex =
|
|
static_cast<mozilla::CodeNameIndex>(codeNameIndex);
|
|
aResult->mNativeKeyEvent = nullptr;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::InternalBeforeAfterKeyboardEvent>
|
|
{
|
|
typedef mozilla::InternalBeforeAfterKeyboardEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetKeyboardEvent>(aParam));
|
|
WriteParam(aMsg, aParam.mEmbeddedCancelled.IsNull());
|
|
WriteParam(aMsg, aParam.mEmbeddedCancelled.Value());
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
bool isNull;
|
|
bool value;
|
|
bool rv =
|
|
ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetKeyboardEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &isNull) &&
|
|
ReadParam(aMsg, aIter, &value);
|
|
|
|
aResult->mEmbeddedCancelled = Nullable<bool>();
|
|
if (rv && !isNull) {
|
|
aResult->mEmbeddedCancelled.SetValue(value);
|
|
}
|
|
|
|
return rv;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::TextRangeStyle>
|
|
{
|
|
typedef mozilla::TextRangeStyle paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mDefinedStyles);
|
|
WriteParam(aMsg, aParam.mLineStyle);
|
|
WriteParam(aMsg, aParam.mIsBoldLine);
|
|
WriteParam(aMsg, aParam.mForegroundColor);
|
|
WriteParam(aMsg, aParam.mBackgroundColor);
|
|
WriteParam(aMsg, aParam.mUnderlineColor);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mDefinedStyles) &&
|
|
ReadParam(aMsg, aIter, &aResult->mLineStyle) &&
|
|
ReadParam(aMsg, aIter, &aResult->mIsBoldLine) &&
|
|
ReadParam(aMsg, aIter, &aResult->mForegroundColor) &&
|
|
ReadParam(aMsg, aIter, &aResult->mBackgroundColor) &&
|
|
ReadParam(aMsg, aIter, &aResult->mUnderlineColor);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::TextRange>
|
|
{
|
|
typedef mozilla::TextRange paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mStartOffset);
|
|
WriteParam(aMsg, aParam.mEndOffset);
|
|
WriteParam(aMsg, aParam.mRangeType);
|
|
WriteParam(aMsg, aParam.mRangeStyle);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mStartOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mEndOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mRangeType) &&
|
|
ReadParam(aMsg, aIter, &aResult->mRangeStyle);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::TextRangeArray>
|
|
{
|
|
typedef mozilla::TextRangeArray paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.Length());
|
|
for (uint32_t index = 0; index < aParam.Length(); index++) {
|
|
WriteParam(aMsg, aParam[index]);
|
|
}
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
paramType::size_type length;
|
|
if (!ReadParam(aMsg, aIter, &length)) {
|
|
return false;
|
|
}
|
|
for (uint32_t index = 0; index < length; index++) {
|
|
mozilla::TextRange textRange;
|
|
if (!ReadParam(aMsg, aIter, &textRange)) {
|
|
aResult->Clear();
|
|
return false;
|
|
}
|
|
aResult->AppendElement(textRange);
|
|
}
|
|
return true;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetCompositionEvent>
|
|
{
|
|
typedef mozilla::WidgetCompositionEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetGUIEvent>(aParam));
|
|
WriteParam(aMsg, aParam.mData);
|
|
bool hasRanges = !!aParam.mRanges;
|
|
WriteParam(aMsg, hasRanges);
|
|
if (hasRanges) {
|
|
WriteParam(aMsg, *aParam.mRanges.get());
|
|
}
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
bool hasRanges;
|
|
if (!ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetGUIEvent*>(aResult)) ||
|
|
!ReadParam(aMsg, aIter, &aResult->mData) ||
|
|
!ReadParam(aMsg, aIter, &hasRanges)) {
|
|
return false;
|
|
}
|
|
|
|
if (!hasRanges) {
|
|
aResult->mRanges = nullptr;
|
|
} else {
|
|
aResult->mRanges = new mozilla::TextRangeArray();
|
|
if (!ReadParam(aMsg, aIter, aResult->mRanges.get())) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::FontRange>
|
|
{
|
|
typedef mozilla::FontRange paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mStartOffset);
|
|
WriteParam(aMsg, aParam.mFontName);
|
|
WriteParam(aMsg, aParam.mFontSize);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mStartOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mFontName) &&
|
|
ReadParam(aMsg, aIter, &aResult->mFontSize);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetQueryContentEvent>
|
|
{
|
|
typedef mozilla::WidgetQueryContentEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetGUIEvent>(aParam));
|
|
WriteParam(aMsg, aParam.mSucceeded);
|
|
WriteParam(aMsg, aParam.mUseNativeLineBreak);
|
|
WriteParam(aMsg, aParam.mWithFontRanges);
|
|
WriteParam(aMsg, aParam.mInput.mOffset);
|
|
WriteParam(aMsg, aParam.mInput.mLength);
|
|
WriteParam(aMsg, aParam.mReply.mOffset);
|
|
WriteParam(aMsg, aParam.mReply.mTentativeCaretOffset);
|
|
WriteParam(aMsg, aParam.mReply.mString);
|
|
WriteParam(aMsg, aParam.mReply.mRect);
|
|
WriteParam(aMsg, aParam.mReply.mReversed);
|
|
WriteParam(aMsg, aParam.mReply.mHasSelection);
|
|
WriteParam(aMsg, aParam.mReply.mWidgetIsHit);
|
|
WriteParam(aMsg, aParam.mReply.mFontRanges);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetGUIEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSucceeded) &&
|
|
ReadParam(aMsg, aIter, &aResult->mUseNativeLineBreak) &&
|
|
ReadParam(aMsg, aIter, &aResult->mWithFontRanges) &&
|
|
ReadParam(aMsg, aIter, &aResult->mInput.mOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mInput.mLength) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mTentativeCaretOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mString) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mReversed) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mHasSelection) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mWidgetIsHit) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReply.mFontRanges);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetSelectionEvent>
|
|
{
|
|
typedef mozilla::WidgetSelectionEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetGUIEvent>(aParam));
|
|
WriteParam(aMsg, aParam.mOffset);
|
|
WriteParam(aMsg, aParam.mLength);
|
|
WriteParam(aMsg, aParam.mReversed);
|
|
WriteParam(aMsg, aParam.mExpandToClusterBoundary);
|
|
WriteParam(aMsg, aParam.mSucceeded);
|
|
WriteParam(aMsg, aParam.mUseNativeLineBreak);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetGUIEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->mOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mLength) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReversed) &&
|
|
ReadParam(aMsg, aIter, &aResult->mExpandToClusterBoundary) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSucceeded) &&
|
|
ReadParam(aMsg, aIter, &aResult->mUseNativeLineBreak);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<nsIMEUpdatePreference>
|
|
{
|
|
typedef nsIMEUpdatePreference paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mWantUpdates);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mWantUpdates);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::widget::IMENotification::Point>
|
|
{
|
|
typedef mozilla::widget::IMENotification::Point paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mX);
|
|
WriteParam(aMsg, aParam.mY);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mX) &&
|
|
ReadParam(aMsg, aIter, &aResult->mY);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::widget::IMENotification::Rect>
|
|
{
|
|
typedef mozilla::widget::IMENotification::Rect paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mX);
|
|
WriteParam(aMsg, aParam.mY);
|
|
WriteParam(aMsg, aParam.mWidth);
|
|
WriteParam(aMsg, aParam.mHeight);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mX) &&
|
|
ReadParam(aMsg, aIter, &aResult->mY) &&
|
|
ReadParam(aMsg, aIter, &aResult->mWidth) &&
|
|
ReadParam(aMsg, aIter, &aResult->mHeight);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::widget::IMENotification::SelectionChangeData>
|
|
{
|
|
typedef mozilla::widget::IMENotification::SelectionChangeData paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
MOZ_RELEASE_ASSERT(aParam.mString);
|
|
WriteParam(aMsg, aParam.mOffset);
|
|
WriteParam(aMsg, *aParam.mString);
|
|
WriteParam(aMsg, aParam.mWritingMode);
|
|
WriteParam(aMsg, aParam.mReversed);
|
|
WriteParam(aMsg, aParam.mCausedByComposition);
|
|
WriteParam(aMsg, aParam.mCausedBySelectionEvent);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
aResult->mString = new nsString();
|
|
return ReadParam(aMsg, aIter, &aResult->mOffset) &&
|
|
ReadParam(aMsg, aIter, aResult->mString) &&
|
|
ReadParam(aMsg, aIter, &aResult->mWritingMode) &&
|
|
ReadParam(aMsg, aIter, &aResult->mReversed) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCausedByComposition) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCausedBySelectionEvent);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::widget::IMENotification::TextChangeDataBase>
|
|
{
|
|
typedef mozilla::widget::IMENotification::TextChangeDataBase paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mStartOffset);
|
|
WriteParam(aMsg, aParam.mRemovedEndOffset);
|
|
WriteParam(aMsg, aParam.mAddedEndOffset);
|
|
WriteParam(aMsg, aParam.mCausedByComposition);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mStartOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mRemovedEndOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mAddedEndOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCausedByComposition);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::widget::IMENotification::MouseButtonEventData>
|
|
{
|
|
typedef mozilla::widget::IMENotification::MouseButtonEventData paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mEventMessage);
|
|
WriteParam(aMsg, aParam.mOffset);
|
|
WriteParam(aMsg, aParam.mCursorPos);
|
|
WriteParam(aMsg, aParam.mCharRect);
|
|
WriteParam(aMsg, aParam.mButton);
|
|
WriteParam(aMsg, aParam.mButtons);
|
|
WriteParam(aMsg, aParam.mModifiers);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mEventMessage) &&
|
|
ReadParam(aMsg, aIter, &aResult->mOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCursorPos) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCharRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mButton) &&
|
|
ReadParam(aMsg, aIter, &aResult->mButtons) &&
|
|
ReadParam(aMsg, aIter, &aResult->mModifiers);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::widget::IMENotification>
|
|
{
|
|
typedef mozilla::widget::IMENotification paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg,
|
|
static_cast<mozilla::widget::IMEMessageType>(aParam.mMessage));
|
|
switch (aParam.mMessage) {
|
|
case mozilla::widget::NOTIFY_IME_OF_SELECTION_CHANGE:
|
|
WriteParam(aMsg, aParam.mSelectionChangeData);
|
|
return;
|
|
case mozilla::widget::NOTIFY_IME_OF_TEXT_CHANGE:
|
|
WriteParam(aMsg, aParam.mTextChangeData);
|
|
return;
|
|
case mozilla::widget::NOTIFY_IME_OF_MOUSE_BUTTON_EVENT:
|
|
WriteParam(aMsg, aParam.mMouseButtonEventData);
|
|
return;
|
|
default:
|
|
return;
|
|
}
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
mozilla::widget::IMEMessageType IMEMessage = 0;
|
|
if (!ReadParam(aMsg, aIter, &IMEMessage)) {
|
|
return false;
|
|
}
|
|
aResult->mMessage = static_cast<mozilla::widget::IMEMessage>(IMEMessage);
|
|
switch (aResult->mMessage) {
|
|
case mozilla::widget::NOTIFY_IME_OF_SELECTION_CHANGE:
|
|
return ReadParam(aMsg, aIter, &aResult->mSelectionChangeData);
|
|
case mozilla::widget::NOTIFY_IME_OF_TEXT_CHANGE:
|
|
return ReadParam(aMsg, aIter, &aResult->mTextChangeData);
|
|
case mozilla::widget::NOTIFY_IME_OF_MOUSE_BUTTON_EVENT:
|
|
return ReadParam(aMsg, aIter, &aResult->mMouseButtonEventData);
|
|
default:
|
|
return true;
|
|
}
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WidgetPluginEvent>
|
|
{
|
|
typedef mozilla::WidgetPluginEvent paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, static_cast<mozilla::WidgetGUIEvent>(aParam));
|
|
WriteParam(aMsg, aParam.retargetToFocusedDocument);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter,
|
|
static_cast<mozilla::WidgetGUIEvent*>(aResult)) &&
|
|
ReadParam(aMsg, aIter, &aResult->retargetToFocusedDocument);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::WritingMode>
|
|
{
|
|
typedef mozilla::WritingMode paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mWritingMode);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mWritingMode);
|
|
}
|
|
};
|
|
|
|
template<>
|
|
struct ParamTraits<mozilla::ContentCache>
|
|
{
|
|
typedef mozilla::ContentCache paramType;
|
|
|
|
static void Write(Message* aMsg, const paramType& aParam)
|
|
{
|
|
WriteParam(aMsg, aParam.mText);
|
|
WriteParam(aMsg, aParam.mSelection.mAnchor);
|
|
WriteParam(aMsg, aParam.mSelection.mFocus);
|
|
WriteParam(aMsg, aParam.mSelection.mWritingMode);
|
|
WriteParam(aMsg, aParam.mSelection.mAnchorCharRect);
|
|
WriteParam(aMsg, aParam.mSelection.mFocusCharRect);
|
|
WriteParam(aMsg, aParam.mSelection.mRect);
|
|
WriteParam(aMsg, aParam.mFirstCharRect);
|
|
WriteParam(aMsg, aParam.mCaret.mOffset);
|
|
WriteParam(aMsg, aParam.mCaret.mRect);
|
|
WriteParam(aMsg, aParam.mTextRectArray.mStart);
|
|
WriteParam(aMsg, aParam.mTextRectArray.mRects);
|
|
WriteParam(aMsg, aParam.mEditorRect);
|
|
}
|
|
|
|
static bool Read(const Message* aMsg, void** aIter, paramType* aResult)
|
|
{
|
|
return ReadParam(aMsg, aIter, &aResult->mText) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSelection.mAnchor) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSelection.mFocus) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSelection.mWritingMode) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSelection.mAnchorCharRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSelection.mFocusCharRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mSelection.mRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mFirstCharRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCaret.mOffset) &&
|
|
ReadParam(aMsg, aIter, &aResult->mCaret.mRect) &&
|
|
ReadParam(aMsg, aIter, &aResult->mTextRectArray.mStart) &&
|
|
ReadParam(aMsg, aIter, &aResult->mTextRectArray.mRects) &&
|
|
ReadParam(aMsg, aIter, &aResult->mEditorRect);
|
|
}
|
|
};
|
|
|
|
} // namespace IPC
|
|
|
|
#endif // nsGUIEventIPC_h__
|
|
|