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

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

Issue 11377045: Removing cruft. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comment. Created 8 years, 1 month 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/spellcheck.h
diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h
index 6292005cebf2f06e4c5166f2c68b9a9cac261b17..7a2253a588e0bf9656c51c83fce76f7d2e81ad11 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 {
+ DO_NOT_MODIFY = 1, // Do not modify results.
+ 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,

Powered by Google App Engine
This is Rietveld 408576698