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

Side by Side Diff: chrome/renderer/spellchecker/spelling_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_unittest.cc ('k') | ipc/ipc_platform_file.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/platform_file.h" 11 #include "base/files/file.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 13
14 // Creates the platform's "native" spelling engine. 14 // Creates the platform's "native" spelling engine.
15 class SpellingEngine* CreateNativeSpellingEngine(); 15 class SpellingEngine* CreateNativeSpellingEngine();
16 16
17 // Interface to different spelling engines. 17 // Interface to different spelling engines.
18 class SpellingEngine { 18 class SpellingEngine {
19 public: 19 public:
20 virtual ~SpellingEngine() {} 20 virtual ~SpellingEngine() {}
21 21
22 // Initialize spelling engine with browser-side info. Must be called before 22 // Initialize spelling engine with browser-side info. Must be called before
23 // any other functions are called. 23 // any other functions are called.
24 virtual void Init(base::PlatformFile bdict_file) = 0; 24 virtual void Init(base::File bdict_file) = 0;
25 virtual bool InitializeIfNeeded() = 0; 25 virtual bool InitializeIfNeeded() = 0;
26 virtual bool IsEnabled() = 0; 26 virtual bool IsEnabled() = 0;
27 virtual bool CheckSpelling(const base::string16& word_to_check, int tag) = 0; 27 virtual bool CheckSpelling(const base::string16& word_to_check, int tag) = 0;
28 virtual void FillSuggestionList( 28 virtual void FillSuggestionList(
29 const base::string16& wrong_word, 29 const base::string16& wrong_word,
30 std::vector<base::string16>* optional_suggestions) = 0; 30 std::vector<base::string16>* optional_suggestions) = 0;
31 }; 31 };
32 32
33 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ 33 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_
34 34
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_unittest.cc ('k') | ipc/ipc_platform_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698