1 // Copyright (c) 2012 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.
5 #ifndef CHROME_COMMON_SPELLCHECK_RESULT_H_
6 #define CHROME_COMMON_SPELLCHECK_RESULT_H_
8 #include "base/string16.h"
10 // This class mirrors WebKit::WebTextCheckingResult which holds a
11 // misspelled range inside the checked text. It also contains a
12 // possible replacement of the misspelling if it is available.
14 // Although SpellCheckResult::Type defines various values Chromium
15 // only uses the |Spelling| type. Other values are just reflecting the
16 // enum definition in the original WebKit class.
18 struct SpellCheckResult
{
27 SHOWCORRECTIONPANEL
= 1 << 10
30 explicit SpellCheckResult(
34 const string16
& rep
= string16())
35 : type(t
), location(loc
), length(len
), replacement(rep
) {
44 #endif // CHROME_COMMON_SPELLCHECK_RESULT_H_