forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb_test_grammar_checker.h
30 lines (23 loc) · 1018 Bytes
/
web_test_grammar_checker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_WEB_TEST_RENDERER_WEB_TEST_GRAMMAR_CHECKER_H_
#define CONTENT_WEB_TEST_RENDERER_WEB_TEST_GRAMMAR_CHECKER_H_
#include <vector>
namespace blink {
class WebString;
struct WebTextCheckingResult;
} // namespace blink
namespace content {
// A grammar-checker used for web tests. This class only implements the minimal
// functionarities required by web tests, i.e. this class just compares the
// given string with known grammar mistakes in web tests and adds grammar
// markers on them. Even though this is sufficient for web tests, this class is
// not suitable for any other usages.
class WebTestGrammarChecker {
public:
static bool CheckGrammarOfString(const blink::WebString&,
std::vector<blink::WebTextCheckingResult>*);
};
} // namespace content
#endif // CONTENT_WEB_TEST_RENDERER_WEB_TEST_GRAMMAR_CHECKER_H_