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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.h

Issue 357003: Move the spellchecker to the renderer.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rename Created 11 years, 1 month 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
Index: chrome/browser/renderer_host/browser_render_process_host.h
===================================================================
--- chrome/browser/renderer_host/browser_render_process_host.h (revision 31117)
+++ chrome/browser/renderer_host/browser_render_process_host.h (working copy)
@@ -146,6 +146,25 @@
// Returns true if the priority is backgrounded; false otherwise.
void SetBackgrounded(bool boost);
+#if defined(SPELLCHECKER_IN_RENDERER)
+ // The renderer has requested that we initialize its spellchecker. This should
+ // generally only be called once per session, as after the first call, all
+ // future renderers will be passed the initialization information on startup
+ // (or when the dictionary changes in some way).
+ void OnSpellCheckerRequestDictionary();
+
+ // Tell the renderer of a new word that has been added to the custom
+ // dictionary.
+ void AddSpellCheckWord(const std::string& word);
+
+ // Pass the renderer some basic intialization information. Note that the
+ // renderer will not load Hunspell until it needs to.
+ void InitSpellChecker();
+
+ // Tell the renderer that auto spell correction has been enabled/disabled.
+ void EnableAutoSpellCorrect(bool enable);
+#endif
+
NotificationRegistrar registrar_;
// The count of currently visible widgets. Since the host can be a container

Powered by Google App Engine
This is Rietveld 408576698