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

Unified Diff: chrome/renderer/spellchecker/spelling_engine.h

Issue 11316090: [Spellcheck] Cleanup. Resubmit, again (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_unittest.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spelling_engine.h
diff --git a/chrome/renderer/spellchecker/spelling_engine.h b/chrome/renderer/spellchecker/spelling_engine.h
index 13d3b28fc7e7851139fc71b3dd51e310a545ff7e..af19a655042e9b960072c2d2a58eb6fd5fb4d7d8 100644
--- a/chrome/renderer/spellchecker/spelling_engine.h
+++ b/chrome/renderer/spellchecker/spelling_engine.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/platform_file.h"
#include "base/string16.h"
// Creates the platform's "native" spelling engine.
@@ -18,6 +19,10 @@ class SpellingEngine {
public:
virtual ~SpellingEngine() {}
+ // Initialize spelling engine with browser-side info. Must be called before
+ // any other functions are called.
+ virtual void Init(base::PlatformFile bdict_file,
+ const std::vector<std::string>& custom_words) = 0;
virtual bool InitializeIfNeeded() = 0;
virtual bool IsEnabled() = 0;
virtual bool CheckSpelling(const string16& word_to_check, int tag) = 0;
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_unittest.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698