1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef RemoteSpellcheckEngineChild_h_
6 #define RemoteSpellcheckEngineChild_h_
8 #include "mozilla/MozPromise.h"
9 #include "mozilla/mozSpellChecker.h"
10 #include "mozilla/PRemoteSpellcheckEngineChild.h"
12 class mozSpellChecker
;
16 class RemoteSpellcheckEngineChild
17 : public mozilla::PRemoteSpellcheckEngineChild
{
19 explicit RemoteSpellcheckEngineChild(mozSpellChecker
* aOwner
);
20 virtual ~RemoteSpellcheckEngineChild();
22 RefPtr
<GenericPromise
> SetCurrentDictionaries(
23 const nsTArray
<nsCString
>& aDictionaries
);
25 RefPtr
<GenericPromise
> SetCurrentDictionaryFromList(
26 const nsTArray
<nsCString
>& aList
);
28 RefPtr
<CheckWordPromise
> CheckWords(const nsTArray
<nsString
>& aWords
);
31 mozSpellChecker
* mOwner
;
34 } // namespace mozilla
36 #endif // RemoteSpellcheckEngineChild_h_