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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698