OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/spellcheck/common/spellcheck_result.h" |
| 6 #include <vector> |
| 7 |
| 8 SpellCheckResult::SpellCheckResult(Decoration d, |
| 9 int loc, |
| 10 int len, |
| 11 const std::vector<base::string16>& rep) |
| 12 : decoration(d), location(loc), length(len), replacements(rep) {} |
| 13 |
| 14 SpellCheckResult::SpellCheckResult(Decoration d, |
| 15 int loc, |
| 16 int len, |
| 17 const base::string16& rep) |
| 18 : decoration(d), |
| 19 location(loc), |
| 20 length(len), |
| 21 replacements(std::vector<base::string16>({rep})) {} |
| 22 |
| 23 SpellCheckResult::~SpellCheckResult() = default; |
| 24 |
| 25 SpellCheckResult::SpellCheckResult(const SpellCheckResult&) = default; |
OLD | NEW |