summaryrefslogtreecommitdiff
path: root/chromium/components/spellcheck/common/spellcheck_result.cc
blob: 73923d83354536e48b91b6c6004a2ff3c4ff680f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2017 The Chromium Authors
// 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<std::u16string>& rep)
    : decoration(d), location(loc), length(len), replacements(rep) {}

SpellCheckResult::SpellCheckResult(Decoration d,
                                   int loc,
                                   int len,
                                   const std::u16string& rep)
    : decoration(d),
      location(loc),
      length(len),
      replacements(std::vector<std::u16string>({rep})) {}

SpellCheckResult::~SpellCheckResult() = default;

SpellCheckResult::SpellCheckResult(const SpellCheckResult&) = default;