tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RemoteSpellCheckEngineParent.h (1504B)


      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 #ifndef RemoteSpellcheckEngineParent_h_
      5 #define RemoteSpellcheckEngineParent_h_
      6 
      7 #include "mozilla/PRemoteSpellcheckEngineParent.h"
      8 #include "nsCOMPtr.h"
      9 #include "nsTArray.h"
     10 
     11 class mozSpellChecker;
     12 
     13 namespace mozilla {
     14 
     15 class RemoteSpellcheckEngineParent : public PRemoteSpellcheckEngineParent {
     16 public:
     17  RemoteSpellcheckEngineParent();
     18 
     19  virtual ~RemoteSpellcheckEngineParent();
     20 
     21  virtual void ActorDestroy(ActorDestroyReason aWhy) override;
     22 
     23  virtual mozilla::ipc::IPCResult RecvSetDictionary(
     24      const nsACString& aDictionary, bool* success);
     25 
     26  virtual mozilla::ipc::IPCResult RecvSetDictionaries(
     27      const nsTArray<nsCString>& aDictionaries,
     28      SetDictionariesResolver&& aResolve);
     29 
     30  virtual mozilla::ipc::IPCResult RecvSetDictionaryFromList(
     31      nsTArray<nsCString>&& aList, SetDictionaryFromListResolver&& aResolve);
     32 
     33  virtual mozilla::ipc::IPCResult RecvCheckAsync(nsTArray<nsString>&& aWord,
     34                                                 CheckAsyncResolver&& aResolve);
     35 
     36  virtual mozilla::ipc::IPCResult RecvSuggest(const nsAString& aWord,
     37                                              uint32_t aCount,
     38                                              SuggestResolver&& aResolve);
     39 
     40 private:
     41  RefPtr<mozSpellChecker> mSpellChecker;
     42 };
     43 
     44 }  // namespace mozilla
     45 
     46 #endif