Chromium Code Reviews| Index: chrome/common/text_checking_result.h |
| diff --git a/chrome/common/text_checking_result.h b/chrome/common/text_checking_result.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bf39df2ffb6c6f01fae404bda515342bb7e071d6 |
| --- /dev/null |
| +++ b/chrome/common/text_checking_result.h |
| @@ -0,0 +1,33 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_COMMON_TEXT_CHECKING_RESULT_H_ |
| +#define CHROME_COMMON_TEXT_CHECKING_RESULT_H_ |
| +#pragma once |
| + |
| +#include "base/basictypes.h" |
| +#include <vector> |
| + |
| +// Indicates a substring of text that is checked by the checker. |
| +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
|
| + public: |
| + // Type of found problem |
| + enum Type { |
| + MISSPELLING, |
| + BAD_GRAMMAR, |
| + UNKNWON |
| + }; |
| + |
| + TextCheckingResult() {} |
| + TextCheckingResult(Type t, int loc, int len) |
| + : type(t), location(loc), length(len) {} |
| + |
| + Type type; |
| + int location; |
| + int length; |
| +}; |
| + |
| +typedef std::vector<TextCheckingResult> TextCheckingResultList; |
| + |
| +#endif // CHROME_COMMON_TEXT_CHECKING_RESULT_H_ |