Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |