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

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

Issue 209193002: Remove PlatformFile from spell checker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert IsEnabled behavior Created 6 years, 9 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
Index: chrome/renderer/spellchecker/hunspell_engine.h
diff --git a/chrome/renderer/spellchecker/hunspell_engine.h b/chrome/renderer/spellchecker/hunspell_engine.h
index fbd8ac8915351c5b62edf6cfe3f37ca844e986e5..534eb87f82d2a2d01c9e0f4f51ac1e2f46ed5857 100644
--- a/chrome/renderer/spellchecker/hunspell_engine.h
+++ b/chrome/renderer/spellchecker/hunspell_engine.h
@@ -25,7 +25,7 @@ class HunspellEngine : public SpellingEngine {
HunspellEngine();
virtual ~HunspellEngine();
- virtual void Init(base::PlatformFile file) OVERRIDE;
+ virtual void Init(base::File file) OVERRIDE;
virtual bool InitializeIfNeeded() OVERRIDE;
virtual bool IsEnabled() OVERRIDE;
@@ -46,15 +46,18 @@ class HunspellEngine : public SpellingEngine {
// The hunspell dictionary in use.
scoped_ptr<Hunspell> hunspell_;
- base::PlatformFile file_;
+ base::File file_;
- // This flags is true if we have been initialized.
+ // This flag is true if hunspell is enabled.
+ bool hunspell_enabled_;
+
+ // This flag is true if we have been initialized.
// The value indicates whether we should request a
// dictionary from the browser when the render view asks us to check the
// spelling of a word.
bool initialized_;
- // This flags is true if we have requested dictionary.
+ // This flag is true if we have requested dictionary.
bool dictionary_requested_;
};
« no previous file with comments | « chrome/renderer/spellchecker/cocoa_spelling_engine_mac.cc ('k') | chrome/renderer/spellchecker/hunspell_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698