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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 15318004: Store feedback for spellcheck results from spelling service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 7 years, 7 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 unified diff | Download patch
« no previous file with comments | « chrome/common/spellcheck_messages.h ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/spellcheck_messages.h ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698