Bug 1725593 - Get rid of SendCheckAndSuggest sync IPC. r=masayuki,ipc-reviewers,mccr8

Depends on D122579

Differential Revision: https://phabricator.services.mozilla.com/D122580
This commit is contained in:
Makoto Kato 2021-08-16 01:40:00 +00:00
parent 3401597785
commit 329f65c790
4 changed files with 0 additions and 19 deletions

View File

@ -14,8 +14,6 @@ parent:
async CheckAsync(nsString[] aWord) returns (bool[] aIsMisspelled);
sync CheckAndSuggest(nsString aWord) returns (bool aIsMisspelled, nsString[] aSuggestions);
sync SetDictionary(nsCString aDictionary) returns (bool success);
async Suggest(nsString aWord, uint32_t aCount) returns (nsString[] aSuggestions);

View File

@ -53,17 +53,6 @@ mozilla::ipc::IPCResult RemoteSpellcheckEngineParent::RecvCheckAsync(
return IPC_OK();
}
mozilla::ipc::IPCResult RemoteSpellcheckEngineParent::RecvCheckAndSuggest(
const nsString& aWord, bool* aIsMisspelled,
nsTArray<nsString>* aSuggestions) {
nsresult rv = mSpellChecker->CheckWord(aWord, aIsMisspelled, aSuggestions);
if (NS_FAILED(rv)) {
aSuggestions->Clear();
*aIsMisspelled = false;
}
return IPC_OK();
}
mozilla::ipc::IPCResult RemoteSpellcheckEngineParent::RecvSuggest(
const nsString& aWord, uint32_t aCount, SuggestResolver&& aResolve) {
nsTArray<nsString> suggestions;

View File

@ -29,10 +29,6 @@ class RemoteSpellcheckEngineParent : public PRemoteSpellcheckEngineParent {
virtual mozilla::ipc::IPCResult RecvCheckAsync(nsTArray<nsString>&& aWord,
CheckAsyncResolver&& aResolve);
virtual mozilla::ipc::IPCResult RecvCheckAndSuggest(
const nsString& aWord, bool* aIsMisspelled,
nsTArray<nsString>* aSuggestions);
virtual mozilla::ipc::IPCResult RecvSuggest(const nsString& aWord,
uint32_t aCount,
SuggestResolver&& aResolve);

View File

@ -864,8 +864,6 @@ description = See corresponding comment in PBackgroundLSSnapshot.ipdl
description = See corresponding comment in PBackgroundLSSnapshot.ipdl
[PBackgroundSessionStorageCache::Load]
description = See corresponding comment in PBackgroundSessionStorageCache.ipdl
[PRemoteSpellcheckEngine::CheckAndSuggest]
description = legacy sync IPC - please add detailed description
[PRemoteSpellcheckEngine::SetDictionary]
description = legacy sync IPC - please add detailed description
[PGPU::AddLayerTreeIdMapping]