OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/spellchecker/spellcheck.h" | 5 #include "chrome/renderer/spellchecker/spellcheck.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 if (SpellCheckWord(text + word_location, word_length, 0, | 366 if (SpellCheckWord(text + word_location, word_length, 0, |
367 &misspelling_start, &misspelling_length, NULL)) { | 367 &misspelling_start, &misspelling_length, NULL)) { |
368 type = WebKit::WebTextCheckingTypeGrammar; | 368 type = WebKit::WebTextCheckingTypeGrammar; |
369 } | 369 } |
370 } | 370 } |
371 if (!custom_dictionary_.SpellCheckWord(text, word_location, word_length)) { | 371 if (!custom_dictionary_.SpellCheckWord(text, word_location, word_length)) { |
372 list.push_back(WebTextCheckingResult( | 372 list.push_back(WebTextCheckingResult( |
373 type, | 373 type, |
374 word_location + line_offset, | 374 word_location + line_offset, |
375 word_length, | 375 word_length, |
376 spellcheck_results[i].replacement)); | 376 spellcheck_results[i].replacement, |
| 377 spellcheck_results[i].hash)); |
377 } | 378 } |
378 } | 379 } |
379 textcheck_results->assign(list); | 380 textcheck_results->assign(list); |
380 } | 381 } |
OLD | NEW |