spellcheck_result.cc 972 B

12345678910111213141516171819202122232425
  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. #include "components/spellcheck/common/spellcheck_result.h"
  5. #include <vector>
  6. SpellCheckResult::SpellCheckResult(Decoration d,
  7. int loc,
  8. int len,
  9. const std::vector<std::u16string>& rep)
  10. : decoration(d), location(loc), length(len), replacements(rep) {}
  11. SpellCheckResult::SpellCheckResult(Decoration d,
  12. int loc,
  13. int len,
  14. const std::u16string& rep)
  15. : decoration(d),
  16. location(loc),
  17. length(len),
  18. replacements(std::vector<std::u16string>({rep})) {}
  19. SpellCheckResult::~SpellCheckResult() = default;
  20. SpellCheckResult::SpellCheckResult(const SpellCheckResult&) = default;