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

Side by Side Diff: chrome/renderer/spellchecker/platform_engine.h

Issue 1204293003: Patch 3: Added files for platform-based spellcheck. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@platform_flag
Patch Set: Comment cleanup Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NSSPELLCHECKER_ENGINE_H_ 5 #ifndef CHROME_RENDERER_SPELLCHECKER_PLATFORM_ENGINE_H_
6 #define CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ 6 #define CHROME_RENDERER_SPELLCHECKER_PLATFORM_ENGINE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/renderer/spellchecker/spelling_engine.h" 9 #include "chrome/renderer/spellchecker/spelling_engine.h"
10 10
11 class CocoaSpellingEngine : public SpellingEngine { 11 class PlatformSpellingEngine : public SpellingEngine {
12 public: 12 public:
13 void Init(base::File bdict_file) override; 13 void Init(base::File bdict_file) override;
14 bool InitializeIfNeeded() override; 14 bool InitializeIfNeeded() override;
15 bool IsEnabled() override; 15 bool IsEnabled() override;
16 bool CheckSpelling(const base::string16& word_to_check, int tag) override; 16 bool CheckSpelling(const base::string16& word_to_check, int tag) override;
17 void FillSuggestionList( 17 void FillSuggestionList(
18 const base::string16& wrong_word, 18 const base::string16& wrong_word,
19 std::vector<base::string16>* optional_suggestions) override; 19 std::vector<base::string16>* optional_suggestions) override;
20 }; 20 };
21 21
22 #endif // CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ 22 #endif // CHROME_RENDERER_SPELLCHECKER_PLATFORM_ENGINE_H_
please use gerrit instead 2015/07/09 19:45:32 Please make a separate patch that moves (not copie
23 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698