Index: components/spellcheck/common/spellcheck_result.cc |
diff --git a/components/spellcheck/common/spellcheck_result.cc b/components/spellcheck/common/spellcheck_result.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ba5e0c922c1ed88c26883b8e08106627f1186b2b |
--- /dev/null |
+++ b/components/spellcheck/common/spellcheck_result.cc |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/spellcheck/common/spellcheck_result.h" |
+#include <vector> |
+ |
+SpellCheckResult::SpellCheckResult(Decoration d, |
+ int loc, |
+ int len, |
+ const std::vector<base::string16>& rep) |
+ : decoration(d), location(loc), length(len), replacements(rep) {} |
+ |
+SpellCheckResult::SpellCheckResult(Decoration d, |
+ int loc, |
+ int len, |
+ const base::string16& rep) |
+ : decoration(d), |
+ location(loc), |
+ length(len), |
+ replacements(std::vector<base::string16>({rep})) {} |
+ |
+SpellCheckResult::~SpellCheckResult() = default; |
+ |
+SpellCheckResult::SpellCheckResult(const SpellCheckResult&) = default; |