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

Side by Side Diff: components/spellcheck/common/spellcheck_result.cc

Issue 2848943002: Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698