tor-browser

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

PRemoteSpellcheckEngine.ipdl (1632B)


      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 include protocol PContent;
      6 
      7 include "mozilla/RemoteSpellCheckEngineParent.h";
      8 include "mozilla/RemoteSpellCheckEngineChild.h";
      9 
     10 namespace mozilla {
     11 
     12 [ManualDealloc, ChildImpl="RemoteSpellcheckEngineChild", ParentImpl="RemoteSpellcheckEngineParent"]
     13 sync protocol PRemoteSpellcheckEngine {
     14   manager PContent;
     15 
     16 parent:
     17   async __delete__();
     18 
     19   async CheckAsync(nsString[] aWord) returns (bool[] aIsMisspelled);
     20 
     21   sync SetDictionary(nsCString aDictionary) returns (bool success);
     22 
     23   /*
     24    * Set multiple current dictionaries from a list of dictionary names.
     25    *
     26    * @aDictionaries An array of dictionary names to use. If the array is empty,
     27    *                no dictionary will be used.
     28    * @aSuccess      true if setting the dictionaries succeeded, false otherwise.
     29    */
     30   async SetDictionaries(nsCString[] aDictionaries) returns (bool success);
     31 
     32   async Suggest(nsString aWord, uint32_t aCount) returns (nsString[] aSuggestions);
     33 
     34   /*
     35    * Set current dictionary from list of dictionary name.
     36    *
     37    * @aList         A list of dictionary name.  If a string into this list is
     38    *                empty string, dictionary selection is reset
     39    * @aSuccess      true if setting dictionary is successful
     40    * @aDictionary   Return current dictionary name that set by this method.
     41    */
     42   async SetDictionaryFromList(nsCString[] aList)
     43            returns (bool aSuccess, nsCString aDictionary);
     44 };
     45 
     46 } // namespace mozilla