mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1835577 - Get rid of typedef
s in nsGUIEventIPC.h r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D179324
This commit is contained in:
parent
29038f2ce8
commit
72e30bb189
@ -32,7 +32,7 @@ struct ParamTraits<mozilla::EventMessage>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::BaseEventFlags> {
|
||||
typedef mozilla::BaseEventFlags paramType;
|
||||
using paramType = mozilla::BaseEventFlags;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
aWriter->WriteBytes(&aParam, sizeof(aParam));
|
||||
@ -45,7 +45,7 @@ struct ParamTraits<mozilla::BaseEventFlags> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetEvent> {
|
||||
typedef mozilla::WidgetEvent paramType;
|
||||
using paramType = mozilla::WidgetEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
// Mark the event as posted to another process.
|
||||
@ -83,7 +83,7 @@ struct ParamTraits<mozilla::WidgetEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetGUIEvent> {
|
||||
typedef mozilla::WidgetGUIEvent paramType;
|
||||
using paramType = mozilla::WidgetGUIEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetEvent&>(aParam));
|
||||
@ -96,7 +96,7 @@ struct ParamTraits<mozilla::WidgetGUIEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetInputEvent> {
|
||||
typedef mozilla::WidgetInputEvent paramType;
|
||||
using paramType = mozilla::WidgetInputEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetGUIEvent&>(aParam));
|
||||
@ -111,7 +111,7 @@ struct ParamTraits<mozilla::WidgetInputEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetMouseEventBase> {
|
||||
typedef mozilla::WidgetMouseEventBase paramType;
|
||||
using paramType = mozilla::WidgetMouseEventBase;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetInputEvent&>(aParam));
|
||||
@ -133,7 +133,7 @@ struct ParamTraits<mozilla::WidgetMouseEventBase> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetWheelEvent> {
|
||||
typedef mozilla::WidgetWheelEvent paramType;
|
||||
using paramType = mozilla::WidgetWheelEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter,
|
||||
@ -191,7 +191,7 @@ struct ParamTraits<mozilla::WidgetWheelEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetPointerHelper> {
|
||||
typedef mozilla::WidgetPointerHelper paramType;
|
||||
using paramType = mozilla::WidgetPointerHelper;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.pointerId);
|
||||
@ -216,7 +216,7 @@ struct ParamTraits<mozilla::WidgetPointerHelper> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetMouseEvent> {
|
||||
typedef mozilla::WidgetMouseEvent paramType;
|
||||
using paramType = mozilla::WidgetMouseEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter,
|
||||
@ -264,7 +264,7 @@ struct ParamTraits<mozilla::WidgetMouseEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetDragEvent> {
|
||||
typedef mozilla::WidgetDragEvent paramType;
|
||||
using paramType = mozilla::WidgetDragEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetMouseEvent&>(aParam));
|
||||
@ -283,7 +283,7 @@ struct ParamTraits<mozilla::WidgetDragEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetPointerEvent> {
|
||||
typedef mozilla::WidgetPointerEvent paramType;
|
||||
using paramType = mozilla::WidgetPointerEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetMouseEvent&>(aParam));
|
||||
@ -365,7 +365,7 @@ struct ParamTraits<mozilla::WidgetTouchEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::AlternativeCharCode> {
|
||||
typedef mozilla::AlternativeCharCode paramType;
|
||||
using paramType = mozilla::AlternativeCharCode;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mUnshiftedCharCode);
|
||||
@ -380,7 +380,7 @@ struct ParamTraits<mozilla::AlternativeCharCode> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::ShortcutKeyCandidate> {
|
||||
typedef mozilla::ShortcutKeyCandidate paramType;
|
||||
using paramType = mozilla::ShortcutKeyCandidate;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mCharCode);
|
||||
@ -395,7 +395,7 @@ struct ParamTraits<mozilla::ShortcutKeyCandidate> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetKeyboardEvent> {
|
||||
typedef mozilla::WidgetKeyboardEvent paramType;
|
||||
using paramType = mozilla::WidgetKeyboardEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetInputEvent&>(aParam));
|
||||
@ -464,7 +464,7 @@ struct ParamTraits<mozilla::WidgetKeyboardEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::TextRangeStyle> {
|
||||
typedef mozilla::TextRangeStyle paramType;
|
||||
using paramType = mozilla::TextRangeStyle;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mDefinedStyles);
|
||||
@ -493,7 +493,7 @@ struct ParamTraits<mozilla::TextRangeStyle> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::TextRange> {
|
||||
typedef mozilla::TextRange paramType;
|
||||
using paramType = mozilla::TextRange;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mStartOffset);
|
||||
@ -517,7 +517,7 @@ struct ParamTraits<mozilla::TextRange> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::TextRangeArray> {
|
||||
typedef mozilla::TextRangeArray paramType;
|
||||
using paramType = mozilla::TextRangeArray;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.Length());
|
||||
@ -545,7 +545,7 @@ struct ParamTraits<mozilla::TextRangeArray> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetCompositionEvent> {
|
||||
typedef mozilla::WidgetCompositionEvent paramType;
|
||||
using paramType = mozilla::WidgetCompositionEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetGUIEvent&>(aParam));
|
||||
@ -583,7 +583,7 @@ struct ParamTraits<mozilla::WidgetCompositionEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::FontRange> {
|
||||
typedef mozilla::FontRange paramType;
|
||||
using paramType = mozilla::FontRange;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mStartOffset);
|
||||
@ -600,7 +600,7 @@ struct ParamTraits<mozilla::FontRange> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WidgetSelectionEvent> {
|
||||
typedef mozilla::WidgetSelectionEvent paramType;
|
||||
using paramType = mozilla::WidgetSelectionEvent;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::WidgetGUIEvent&>(aParam));
|
||||
@ -625,7 +625,7 @@ struct ParamTraits<mozilla::WidgetSelectionEvent> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::IMENotificationRequests> {
|
||||
typedef mozilla::widget::IMENotificationRequests paramType;
|
||||
using paramType = mozilla::widget::IMENotificationRequests;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mWantUpdates);
|
||||
@ -638,7 +638,7 @@ struct ParamTraits<mozilla::widget::IMENotificationRequests> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::NativeIMEContext> {
|
||||
typedef mozilla::widget::NativeIMEContext paramType;
|
||||
using paramType = mozilla::widget::NativeIMEContext;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mRawNativeIMEContext);
|
||||
@ -653,7 +653,7 @@ struct ParamTraits<mozilla::widget::NativeIMEContext> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::IMENotification::SelectionChangeDataBase> {
|
||||
typedef mozilla::widget::IMENotification::SelectionChangeDataBase paramType;
|
||||
using paramType = mozilla::widget::IMENotification::SelectionChangeDataBase;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
MOZ_RELEASE_ASSERT(aParam.mString);
|
||||
@ -684,7 +684,7 @@ struct ParamTraits<mozilla::widget::IMENotification::SelectionChangeDataBase> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::IMENotification::TextChangeDataBase> {
|
||||
typedef mozilla::widget::IMENotification::TextChangeDataBase paramType;
|
||||
using paramType = mozilla::widget::IMENotification::TextChangeDataBase;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mStartOffset);
|
||||
@ -707,7 +707,7 @@ struct ParamTraits<mozilla::widget::IMENotification::TextChangeDataBase> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::IMENotification::MouseButtonEventData> {
|
||||
typedef mozilla::widget::IMENotification::MouseButtonEventData paramType;
|
||||
using paramType = mozilla::widget::IMENotification::MouseButtonEventData;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mEventMessage);
|
||||
@ -732,7 +732,7 @@ struct ParamTraits<mozilla::widget::IMENotification::MouseButtonEventData> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::IMENotification> {
|
||||
typedef mozilla::widget::IMENotification paramType;
|
||||
using paramType = mozilla::widget::IMENotification;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter,
|
||||
@ -786,7 +786,7 @@ struct ParamTraits<mozilla::widget::IMEState::Open>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::IMEState> {
|
||||
typedef mozilla::widget::IMEState paramType;
|
||||
using paramType = mozilla::widget::IMEState;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mEnabled);
|
||||
@ -808,7 +808,7 @@ struct ParamTraits<mozilla::widget::InputContext::Origin>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::InputContext> {
|
||||
typedef mozilla::widget::InputContext paramType;
|
||||
using paramType = mozilla::widget::InputContext;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mIMEState);
|
||||
@ -853,7 +853,7 @@ struct ParamTraits<mozilla::widget::InputContextAction::FocusChange>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::InputContextAction> {
|
||||
typedef mozilla::widget::InputContextAction paramType;
|
||||
using paramType = mozilla::widget::InputContextAction;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mCause);
|
||||
@ -868,7 +868,7 @@ struct ParamTraits<mozilla::widget::InputContextAction> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::WritingMode> {
|
||||
typedef mozilla::WritingMode paramType;
|
||||
using paramType = mozilla::WritingMode;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mWritingMode.bits);
|
||||
@ -881,7 +881,7 @@ struct ParamTraits<mozilla::WritingMode> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::ContentCache::Selection> {
|
||||
typedef mozilla::ContentCache::Selection paramType;
|
||||
using paramType = mozilla::ContentCache::Selection;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mAnchor);
|
||||
@ -910,7 +910,7 @@ struct ParamTraits<mozilla::ContentCache::Selection> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::ContentCache::Caret> {
|
||||
typedef mozilla::ContentCache::Caret paramType;
|
||||
using paramType = mozilla::ContentCache::Caret;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mOffset);
|
||||
@ -925,7 +925,7 @@ struct ParamTraits<mozilla::ContentCache::Caret> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::ContentCache::TextRectArray> {
|
||||
typedef mozilla::ContentCache::TextRectArray paramType;
|
||||
using paramType = mozilla::ContentCache::TextRectArray;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mStart);
|
||||
@ -940,7 +940,7 @@ struct ParamTraits<mozilla::ContentCache::TextRectArray> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::ContentCache> {
|
||||
typedef mozilla::ContentCache paramType;
|
||||
using paramType = mozilla::ContentCache;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mCompositionStart);
|
||||
@ -967,7 +967,7 @@ struct ParamTraits<mozilla::ContentCache> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::widget::CandidateWindowPosition> {
|
||||
typedef mozilla::widget::CandidateWindowPosition paramType;
|
||||
using paramType = mozilla::widget::CandidateWindowPosition;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mPoint);
|
||||
@ -992,7 +992,7 @@ struct ParamTraits<mozilla::InputType>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::InputData> {
|
||||
typedef mozilla::InputData paramType;
|
||||
using paramType = mozilla::InputData;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mInputType);
|
||||
@ -1013,7 +1013,7 @@ struct ParamTraits<mozilla::InputData> {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::SingleTouchData::HistoricalTouchData> {
|
||||
typedef mozilla::SingleTouchData::HistoricalTouchData paramType;
|
||||
using paramType = mozilla::SingleTouchData::HistoricalTouchData;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, aParam.mTimeStamp);
|
||||
@ -1113,7 +1113,7 @@ struct ParamTraits<mozilla::MouseInput::ButtonType>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::MouseInput> {
|
||||
typedef mozilla::MouseInput paramType;
|
||||
using paramType = mozilla::MouseInput;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::InputData&>(aParam));
|
||||
@ -1157,7 +1157,7 @@ struct ParamTraits<mozilla::PanGestureInput::PanDeltaType>
|
||||
template <>
|
||||
struct ParamTraits<mozilla::PanGestureInput>
|
||||
: BitfieldHelper<mozilla::PanGestureInput> {
|
||||
typedef mozilla::PanGestureInput paramType;
|
||||
using paramType = mozilla::PanGestureInput;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::InputData&>(aParam));
|
||||
@ -1219,7 +1219,7 @@ struct ParamTraits<mozilla::PinchGestureInput::PinchGestureSource>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::PinchGestureInput> {
|
||||
typedef mozilla::PinchGestureInput paramType;
|
||||
using paramType = mozilla::PinchGestureInput;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::InputData&>(aParam));
|
||||
@ -1257,7 +1257,7 @@ struct ParamTraits<mozilla::TapGestureInput::TapGestureType>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::TapGestureInput> {
|
||||
typedef mozilla::TapGestureInput paramType;
|
||||
using paramType = mozilla::TapGestureInput;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::InputData&>(aParam));
|
||||
@ -1304,7 +1304,7 @@ struct ParamTraits<mozilla::layers::APZWheelAction>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::ScrollWheelInput> {
|
||||
typedef mozilla::ScrollWheelInput paramType;
|
||||
using paramType = mozilla::ScrollWheelInput;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::InputData&>(aParam));
|
||||
@ -1362,7 +1362,7 @@ struct ParamTraits<mozilla::KeyboardInput::KeyboardEventType>
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::KeyboardInput> {
|
||||
typedef mozilla::KeyboardInput paramType;
|
||||
using paramType = mozilla::KeyboardInput;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
WriteParam(aWriter, static_cast<const mozilla::InputData&>(aParam));
|
||||
|
Loading…
Reference in New Issue
Block a user