Bug 1944263 - Get rid of CandidateWindowPosition. r=masayuki

CandidateWindowPosition was for OOP plugin. Unnecessary now.

Differential Revision: https://phabricator.services.mozilla.com/D235759
This commit is contained in:
Makoto Kato
2025-01-29 01:11:36 +00:00
parent 52ecb2de6f
commit 412470320e
3 changed files with 0 additions and 29 deletions

View File

@@ -92,7 +92,6 @@ using mozilla::dom::MaybeDiscardedWindowContext from "mozilla/dom/WindowContext.
using mozilla::EventMessage from "mozilla/EventForwards.h";
using nsEventStatus from "mozilla/EventForwards.h";
using mozilla::Modifiers from "mozilla/EventForwards.h";
using struct mozilla::widget::CandidateWindowPosition from "ipc/nsGUIEventIPC.h";
using struct mozilla::FontRange from "ipc/nsGUIEventIPC.h";
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
using mozilla::dom::EffectsInfo from "mozilla/dom/EffectsInfo.h";

View File

@@ -1064,17 +1064,6 @@ struct IMENotification final {
}
};
struct CandidateWindowPosition {
// Upper left corner of the candidate window if mExcludeRect is false.
// Otherwise, the position currently interested. E.g., caret position.
LayoutDeviceIntPoint mPoint;
// Rect which shouldn't be overlapped with the candidate window.
// This is valid only when mExcludeRect is true.
LayoutDeviceIntRect mRect;
// See explanation of mPoint and mRect.
bool mExcludeRect;
};
std::ostream& operator<<(std::ostream& aStream, const IMEEnabled& aEnabled);
std::ostream& operator<<(std::ostream& aStream, const IMEState::Open& aOpen);
std::ostream& operator<<(std::ostream& aStream, const IMEState& aState);

View File

@@ -997,23 +997,6 @@ struct ParamTraits<mozilla::ContentCache> {
}
};
template <>
struct ParamTraits<mozilla::widget::CandidateWindowPosition> {
using paramType = mozilla::widget::CandidateWindowPosition;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mPoint);
WriteParam(aWriter, aParam.mRect);
WriteParam(aWriter, aParam.mExcludeRect);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, &aResult->mPoint) &&
ReadParam(aReader, &aResult->mRect) &&
ReadParam(aReader, &aResult->mExcludeRect);
}
};
// InputData.h
template <>