Chromium Code Reviews| Index: chrome/renderer/spellchecker/spellcheck.h |
| diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h |
| index 6292005cebf2f06e4c5166f2c68b9a9cac261b17..0aa051210198d3a7a7236dd0ccfe98431fc70f61 100644 |
| --- a/chrome/renderer/spellchecker/spellcheck.h |
| +++ b/chrome/renderer/spellchecker/spellcheck.h |
| @@ -37,6 +37,11 @@ struct WebTextCheckingResult; |
| class SpellCheck : public content::RenderProcessObserver, |
| public base::SupportsWeakPtr<SpellCheck> { |
| public: |
| + enum ResultFilter { |
| + DONT_MODIFY = 1, // Do not modify results. |
|
rpetterson
2012/11/10 00:14:30
nit: I would use DO_NOT_MODIFY for clarity.
groby-ooo-7-16
2012/11/13 02:05:15
Done.
|
| + USE_NATIVE_CHECKER, // Use native checker to double-check. |
| + }; |
| + |
| SpellCheck(); |
| virtual ~SpellCheck(); |
| @@ -89,6 +94,7 @@ class SpellCheck : public content::RenderProcessObserver, |
| // checks misspelled words returned by the Spelling service and changes the |
| // underline colors of contextually-misspelled words. |
| void CreateTextCheckingResults( |
| + ResultFilter filter, |
| int line_offset, |
| const string16& line_text, |
| const std::vector<SpellCheckResult>& spellcheck_results, |