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

Unified Diff: components/spellcheck/common/spellcheck_result.h

Issue 2906243002: Revert of Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Revert "Allow storing multiple replacements on SpellCheckResult" Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/spellcheck/common/spellcheck_result.h
diff --git a/components/spellcheck/common/spellcheck_result.h b/components/spellcheck/common/spellcheck_result.h
index 1937a8f21d843ad3d66ed38eb4a87732ba04e0ef..0c4fb45eff7752edc88a9b2ba0ea7ca20150a9d7 100644
--- a/components/spellcheck/common/spellcheck_result.h
+++ b/components/spellcheck/common/spellcheck_result.h
@@ -6,7 +6,6 @@
#define COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_RESULT_H_
#include <stdint.h>
-#include <vector>
#include "base/strings/string16.h"
@@ -23,25 +22,16 @@ struct SpellCheckResult {
GRAMMAR = 1 << 2,
};
- // Default values are so we have a default constructor for IPC::ReadParam()
- explicit SpellCheckResult(
- Decoration d = SPELLING,
- int loc = 0,
- int len = 0,
- const std::vector<base::string16>& rep = std::vector<base::string16>());
-
- explicit SpellCheckResult(Decoration d,
- int loc,
- int len,
- const base::string16& rep);
-
- ~SpellCheckResult();
- SpellCheckResult(const SpellCheckResult&);
+ explicit SpellCheckResult(Decoration d = SPELLING,
+ int loc = 0,
+ int len = 0,
+ const base::string16& rep = base::string16())
+ : decoration(d), location(loc), length(len), replacement(rep) {}
Decoration decoration;
int location;
int length;
- std::vector<base::string16> replacements;
+ base::string16 replacement;
};
#endif // COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_RESULT_H_
« no previous file with comments | « components/spellcheck/common/spellcheck_messages.h ('k') | components/spellcheck/common/spellcheck_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698