OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/test_runner/spell_check_client.h" | 5 #include "components/test_runner/spell_check_client.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "components/test_runner/mock_grammar_check.h" | 10 #include "components/test_runner/mock_grammar_check.h" |
8 #include "components/test_runner/web_test_delegate.h" | 11 #include "components/test_runner/web_test_delegate.h" |
9 #include "components/test_runner/web_test_proxy.h" | 12 #include "components/test_runner/web_test_proxy.h" |
10 #include "third_party/WebKit/public/web/WebTextCheckingCompletion.h" | 13 #include "third_party/WebKit/public/web/WebTextCheckingCompletion.h" |
11 #include "third_party/WebKit/public/web/WebTextCheckingResult.h" | 14 #include "third_party/WebKit/public/web/WebTextCheckingResult.h" |
12 | 15 |
13 namespace test_runner { | 16 namespace test_runner { |
14 | 17 |
15 namespace { | 18 namespace { |
16 | 19 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 MockGrammarCheck::CheckGrammarOfString(last_requested_text_check_string_, | 137 MockGrammarCheck::CheckGrammarOfString(last_requested_text_check_string_, |
135 &results); | 138 &results); |
136 } | 139 } |
137 last_requested_text_checking_completion_->didFinishCheckingText(results); | 140 last_requested_text_checking_completion_->didFinishCheckingText(results); |
138 last_requested_text_checking_completion_ = 0; | 141 last_requested_text_checking_completion_ = 0; |
139 | 142 |
140 web_test_proxy_->PostSpellCheckEvent(blink::WebString("FinishLastTextCheck")); | 143 web_test_proxy_->PostSpellCheckEvent(blink::WebString("FinishLastTextCheck")); |
141 } | 144 } |
142 | 145 |
143 } // namespace test_runner | 146 } // namespace test_runner |
OLD | NEW |