OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module spellcheck.mojom; |
| 6 |
| 7 import "mojo/common/file.mojom"; |
| 8 |
| 9 // Render process interface exposed to the browser for receiving process- |
| 10 // wide spellcheck control and updates from the browser process. |
| 11 // |
| 12 interface SpellChecker { |
| 13 // Initialize the render process spellchecker. Called after startup and |
| 14 // also in response to a render process RequestDictionary request. |
| 15 Initialize(array<SpellCheckBDictLanguage> dictionaries, |
| 16 array<string> custom_words, |
| 17 bool enable); |
| 18 |
| 19 // Custom dictionary words have been added or removed: update the local |
| 20 // custom word list. |
| 21 CustomDictionaryChanged(array<string> words_added, |
| 22 array<string> words_removed); |
| 23 }; |
| 24 |
| 25 struct SpellCheckBDictLanguage { |
| 26 mojo.common.mojom.File? file; |
| 27 string language; |
| 28 }; |
OLD | NEW |