зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3401597785
Коммит
329f65c790
|
@ -14,8 +14,6 @@ parent:
|
||||||
|
|
||||||
async CheckAsync(nsString[] aWord) returns (bool[] aIsMisspelled);
|
async CheckAsync(nsString[] aWord) returns (bool[] aIsMisspelled);
|
||||||
|
|
||||||
sync CheckAndSuggest(nsString aWord) returns (bool aIsMisspelled, nsString[] aSuggestions);
|
|
||||||
|
|
||||||
sync SetDictionary(nsCString aDictionary) returns (bool success);
|
sync SetDictionary(nsCString aDictionary) returns (bool success);
|
||||||
|
|
||||||
async Suggest(nsString aWord, uint32_t aCount) returns (nsString[] aSuggestions);
|
async Suggest(nsString aWord, uint32_t aCount) returns (nsString[] aSuggestions);
|
||||||
|
|
|
@ -53,17 +53,6 @@ mozilla::ipc::IPCResult RemoteSpellcheckEngineParent::RecvCheckAsync(
|
||||||
return IPC_OK();
|
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(
|
mozilla::ipc::IPCResult RemoteSpellcheckEngineParent::RecvSuggest(
|
||||||
const nsString& aWord, uint32_t aCount, SuggestResolver&& aResolve) {
|
const nsString& aWord, uint32_t aCount, SuggestResolver&& aResolve) {
|
||||||
nsTArray<nsString> suggestions;
|
nsTArray<nsString> suggestions;
|
||||||
|
|
|
@ -29,10 +29,6 @@ class RemoteSpellcheckEngineParent : public PRemoteSpellcheckEngineParent {
|
||||||
virtual mozilla::ipc::IPCResult RecvCheckAsync(nsTArray<nsString>&& aWord,
|
virtual mozilla::ipc::IPCResult RecvCheckAsync(nsTArray<nsString>&& aWord,
|
||||||
CheckAsyncResolver&& aResolve);
|
CheckAsyncResolver&& aResolve);
|
||||||
|
|
||||||
virtual mozilla::ipc::IPCResult RecvCheckAndSuggest(
|
|
||||||
const nsString& aWord, bool* aIsMisspelled,
|
|
||||||
nsTArray<nsString>* aSuggestions);
|
|
||||||
|
|
||||||
virtual mozilla::ipc::IPCResult RecvSuggest(const nsString& aWord,
|
virtual mozilla::ipc::IPCResult RecvSuggest(const nsString& aWord,
|
||||||
uint32_t aCount,
|
uint32_t aCount,
|
||||||
SuggestResolver&& aResolve);
|
SuggestResolver&& aResolve);
|
||||||
|
|
|
@ -864,8 +864,6 @@ description = See corresponding comment in PBackgroundLSSnapshot.ipdl
|
||||||
description = See corresponding comment in PBackgroundLSSnapshot.ipdl
|
description = See corresponding comment in PBackgroundLSSnapshot.ipdl
|
||||||
[PBackgroundSessionStorageCache::Load]
|
[PBackgroundSessionStorageCache::Load]
|
||||||
description = See corresponding comment in PBackgroundSessionStorageCache.ipdl
|
description = See corresponding comment in PBackgroundSessionStorageCache.ipdl
|
||||||
[PRemoteSpellcheckEngine::CheckAndSuggest]
|
|
||||||
description = legacy sync IPC - please add detailed description
|
|
||||||
[PRemoteSpellcheckEngine::SetDictionary]
|
[PRemoteSpellcheckEngine::SetDictionary]
|
||||||
description = legacy sync IPC - please add detailed description
|
description = legacy sync IPC - please add detailed description
|
||||||
[PGPU::AddLayerTreeIdMapping]
|
[PGPU::AddLayerTreeIdMapping]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче