Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: components/spellcheck/common/spellcheck.mojom

Issue 2828313002: Convert render process component common Spellcheck IPC to mojo (Closed)
Patch Set: Build fix. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/spellcheck/common/OWNERS ('k') | components/spellcheck/common/spellcheck_bdict_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/spellcheck/common/spellcheck.mojom
diff --git a/components/spellcheck/common/spellcheck.mojom b/components/spellcheck/common/spellcheck.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..91952616731a552d95c63ebbb6cfa93a6889e1e3
--- /dev/null
+++ b/components/spellcheck/common/spellcheck.mojom
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module spellcheck.mojom;
+
+import "mojo/common/file.mojom";
+
+// Render process interface exposed to the browser for receiving process-
+// wide spellcheck control and updates from the browser process.
+//
+interface SpellChecker {
+ // Initialize the render process spellchecker. Called after startup and
+ // also in response to a render process RequestDictionary request.
+ Initialize(array<SpellCheckBDictLanguage> dictionaries,
+ array<string> custom_words,
+ bool enable);
+
+ // Custom dictionary words have been added or removed: update the local
+ // custom word list.
+ CustomDictionaryChanged(array<string> words_added,
+ array<string> words_removed);
+};
+
+struct SpellCheckBDictLanguage {
+ mojo.common.mojom.File? file;
+ string language;
+};
« no previous file with comments | « components/spellcheck/common/OWNERS ('k') | components/spellcheck/common/spellcheck_bdict_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698