OLD | NEW |
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_SPELLCHECK_H_ | 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ |
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ | 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Message handlers. | 120 // Message handlers. |
121 void OnInit(IPC::PlatformFileForTransit bdict_file, | 121 void OnInit(IPC::PlatformFileForTransit bdict_file, |
122 const std::set<std::string>& custom_words, | 122 const std::set<std::string>& custom_words, |
123 const std::string& language, | 123 const std::string& language, |
124 bool auto_spell_correct); | 124 bool auto_spell_correct); |
125 void OnCustomDictionaryChanged( | 125 void OnCustomDictionaryChanged( |
126 const std::vector<std::string>& words_added, | 126 const std::vector<std::string>& words_added, |
127 const std::vector<std::string>& words_removed); | 127 const std::vector<std::string>& words_removed); |
128 void OnEnableAutoSpellCorrect(bool enable); | 128 void OnEnableAutoSpellCorrect(bool enable); |
129 void OnEnableSpellCheck(bool enable); | 129 void OnEnableSpellCheck(bool enable); |
| 130 void OnRequestDocumentMarkers(); |
130 | 131 |
131 #if !defined (OS_MACOSX) | 132 #if !defined (OS_MACOSX) |
132 // Posts delayed spellcheck task and clear it if any. | 133 // Posts delayed spellcheck task and clear it if any. |
133 // Takes ownership of |request|. | 134 // Takes ownership of |request|. |
134 void PostDelayedSpellCheckTask(SpellcheckRequest* request); | 135 void PostDelayedSpellCheckTask(SpellcheckRequest* request); |
135 | 136 |
136 // Performs spell checking from the request queue. | 137 // Performs spell checking from the request queue. |
137 void PerformSpellCheck(SpellcheckRequest* request); | 138 void PerformSpellCheck(SpellcheckRequest* request); |
138 | 139 |
139 // The parameters of a pending background-spellchecking request. When WebKit | 140 // The parameters of a pending background-spellchecking request. When WebKit |
(...skipping 12 matching lines...) Expand all Loading... |
152 // Remember state for auto spell correct. | 153 // Remember state for auto spell correct. |
153 bool auto_spell_correct_turned_on_; | 154 bool auto_spell_correct_turned_on_; |
154 | 155 |
155 // Remember state for spellchecking. | 156 // Remember state for spellchecking. |
156 bool spellcheck_enabled_; | 157 bool spellcheck_enabled_; |
157 | 158 |
158 DISALLOW_COPY_AND_ASSIGN(SpellCheck); | 159 DISALLOW_COPY_AND_ASSIGN(SpellCheck); |
159 }; | 160 }; |
160 | 161 |
161 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ | 162 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ |
OLD | NEW |