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

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

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the patch to catch up WebKit side changes. Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
Hironori Bono 2011/02/09 05:43:51 nit: '2006-2008' -> '2011'.
gmorrita 2011/02/10 02:15:21 This file is removed.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_TEXT_CHECKING_RESULT_H_
6 #define CHROME_COMMON_TEXT_CHECKING_RESULT_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include <vector>
11
12 // Indicates a substring of text that is checked by the checker.
13 class TextCheckingResult {
Hironori Bono 2011/02/09 05:43:51 Would it be better to add '#include "third_party/W
gmorrita 2011/02/10 02:15:21 Ah, I didn't know that file! So I removed this cla
14 public:
15 // Type of found problem
16 enum Type {
17 MISSPELLING,
18 BAD_GRAMMAR,
19 UNKNWON
20 };
21
22 TextCheckingResult() {}
23 TextCheckingResult(Type t, int loc, int len)
24 : type(t), location(loc), length(len) {}
25
26 Type type;
27 int location;
28 int length;
29 };
30
31 typedef std::vector<TextCheckingResult> TextCheckingResultList;
32
33 #endif // CHROME_COMMON_TEXT_CHECKING_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698