mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
3401597785
commit
329f65c790
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user