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

Side by Side Diff: chrome/common/spellcheck_result.h

Issue 11419050: [Spellcheck] Fix owners to spellcheck group. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Proper capitalization. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/OWNERS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_SPELLCHECK_RESULT_H_ 5 #ifndef CHROME_COMMON_SPELLCHECK_RESULT_H_
6 #define CHROME_COMMON_SPELLCHECK_RESULT_H_ 6 #define CHROME_COMMON_SPELLCHECK_RESULT_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 9
10 // This class mirrors WebKit::WebTextCheckingResult which holds a 10 // This class mirrors WebKit::WebTextCheckingResult which holds a
11 // misspelled range inside the checked text. It also contains a 11 // misspelled range inside the checked text. It also contains a
12 // possible replacement of the misspelling if it is available. 12 // possible replacement of the misspelling if it is available.
13 // 13 //
14 // Although SpellCheckResult::Type defines various values Chromium 14 // Although SpellCheckResult::Type defines various values Chromium
15 // only uses the |Spelling| type. otehr values are just reflecting the 15 // only uses the |Spelling| type. Other values are just reflecting the
16 // enum definition in the original WebKit class. 16 // enum definition in the original WebKit class.
17 // 17 //
18 struct SpellCheckResult { 18 struct SpellCheckResult {
19 enum Type { 19 enum Type {
20 SPELLING = 1 << 1, 20 SPELLING = 1 << 1,
21 GRAMMAR = 1 << 2, 21 GRAMMAR = 1 << 2,
22 LINK = 1 << 5, 22 LINK = 1 << 5,
23 QUOTE = 1 << 6, 23 QUOTE = 1 << 6,
24 DASH = 1 << 7, 24 DASH = 1 << 7,
25 REPLACEMENT = 1 << 8, 25 REPLACEMENT = 1 << 8,
26 CORRECTION = 1 << 9, 26 CORRECTION = 1 << 9,
27 SHOWCORRECTIONPANEL = 1 << 10 27 SHOWCORRECTIONPANEL = 1 << 10
28 }; 28 };
29 29
30 explicit SpellCheckResult( 30 explicit SpellCheckResult(
31 Type t = SPELLING, 31 Type t = SPELLING,
32 int loc = 0, 32 int loc = 0,
33 int len = 0, 33 int len = 0,
34 const string16& rep = string16()) 34 const string16& rep = string16())
35 : type(t), location(loc), length(len), replacement(rep) { 35 : type(t), location(loc), length(len), replacement(rep) {
36 } 36 }
37 37
38 Type type; 38 Type type;
39 int location; 39 int location;
40 int length; 40 int length;
41 string16 replacement; 41 string16 replacement;
42 }; 42 };
43 43
44 #endif // CHROME_COMMON_SPELLCHECK_RESULT_H_ 44 #endif // CHROME_COMMON_SPELLCHECK_RESULT_H_
OLDNEW
« no previous file with comments | « chrome/common/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698