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

Unified Diff: third_party/WebKit/public/web/WebTextCheckingResult.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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b63cae74343e54c4ab543f1dd87a4befc7f76222..4eb36d86665193c42929e06a28c726c719b29795 100644
--- a/third_party/WebKit/public/web/WebTextCheckingResult.h
+++ b/third_party/WebKit/public/web/WebTextCheckingResult.h
@@ -31,10 +31,9 @@
#ifndef WebTextCheckingResult_h
#define WebTextCheckingResult_h
-#include "WebTextDecorationType.h"
#include "public/platform/WebCommon.h"
#include "public/platform/WebString.h"
-#include "public/platform/WebVector.h"
+#include "WebTextDecorationType.h"
namespace blink {
@@ -45,15 +44,14 @@ struct WebTextCheckingResult {
WebTextCheckingResult()
: decoration(kWebTextDecorationTypeSpelling), location(0), length(0) {}
- WebTextCheckingResult(
- WebTextDecorationType decoration,
- int location,
- int length,
- const WebVector<WebString>& replacements = WebVector<WebString>())
+ WebTextCheckingResult(WebTextDecorationType decoration,
+ int location,
+ int length,
+ const WebString& replacement = WebString())
: decoration(decoration),
location(location),
length(length),
- replacements(replacements) {}
+ replacement(replacement) {}
#if BLINK_IMPLEMENTATION
operator TextCheckingResult() const;
@@ -62,7 +60,7 @@ struct WebTextCheckingResult {
WebTextDecorationType decoration;
int location;
int length;
- WebVector<WebString> replacements;
+ WebString replacement;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698