RemoteSpellCheckEngineChild.h (1032B)
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/. */ 4 5 #ifndef RemoteSpellcheckEngineChild_h_ 6 #define RemoteSpellcheckEngineChild_h_ 7 8 #include "mozilla/MozPromise.h" 9 #include "mozilla/mozSpellChecker.h" 10 #include "mozilla/PRemoteSpellcheckEngineChild.h" 11 12 class mozSpellChecker; 13 14 namespace mozilla { 15 16 class RemoteSpellcheckEngineChild 17 : public mozilla::PRemoteSpellcheckEngineChild { 18 public: 19 explicit RemoteSpellcheckEngineChild(mozSpellChecker* aOwner); 20 virtual ~RemoteSpellcheckEngineChild(); 21 22 RefPtr<GenericPromise> SetCurrentDictionaries( 23 const nsTArray<nsCString>& aDictionaries); 24 25 RefPtr<GenericPromise> SetCurrentDictionaryFromList( 26 const nsTArray<nsCString>& aList); 27 28 RefPtr<CheckWordPromise> CheckWords(const nsTArray<nsString>& aWords); 29 30 private: 31 mozSpellChecker* mOwner; 32 }; 33 34 } // namespace mozilla 35 36 #endif // RemoteSpellcheckEngineChild_h_