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

Unified Diff: third_party/WebKit/public/web/WebTextCheckingResult.h

Issue 2848943002: Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Rebase 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: third_party/WebKit/public/web/WebTextCheckingResult.h
diff --git a/third_party/WebKit/public/web/WebTextCheckingResult.h b/third_party/WebKit/public/web/WebTextCheckingResult.h
index 4eb36d86665193c42929e06a28c726c719b29795..b63cae74343e54c4ab543f1dd87a4befc7f76222 100644
--- a/third_party/WebKit/public/web/WebTextCheckingResult.h
+++ b/third_party/WebKit/public/web/WebTextCheckingResult.h
@@ -31,9 +31,10 @@
#ifndef WebTextCheckingResult_h
#define WebTextCheckingResult_h
+#include "WebTextDecorationType.h"
#include "public/platform/WebCommon.h"
#include "public/platform/WebString.h"
-#include "WebTextDecorationType.h"
+#include "public/platform/WebVector.h"
namespace blink {
@@ -44,14 +45,15 @@ struct WebTextCheckingResult {
WebTextCheckingResult()
: decoration(kWebTextDecorationTypeSpelling), location(0), length(0) {}
- WebTextCheckingResult(WebTextDecorationType decoration,
- int location,
- int length,
- const WebString& replacement = WebString())
+ WebTextCheckingResult(
+ WebTextDecorationType decoration,
+ int location,
+ int length,
+ const WebVector<WebString>& replacements = WebVector<WebString>())
: decoration(decoration),
location(location),
length(length),
- replacement(replacement) {}
+ replacements(replacements) {}
#if BLINK_IMPLEMENTATION
operator TextCheckingResult() const;
@@ -60,7 +62,7 @@ struct WebTextCheckingResult {
WebTextDecorationType decoration;
int location;
int length;
- WebString replacement;
+ WebVector<WebString> replacements;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698