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

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

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
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_language.h" 5 #include "chrome/renderer/spellchecker/spellcheck_language.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" 8 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h"
9 #include "chrome/renderer/spellchecker/spelling_engine.h" 9 #include "chrome/renderer/spellchecker/spelling_engine.h"
10 10
(...skipping 15 matching lines...) Expand all
26 text_iterator_.Reset(); 26 text_iterator_.Reset();
27 contraction_iterator_.Reset(); 27 contraction_iterator_.Reset();
28 } 28 }
29 29
30 bool SpellcheckLanguage::InitializeIfNeeded() { 30 bool SpellcheckLanguage::InitializeIfNeeded() {
31 DCHECK(platform_spelling_engine_.get()); 31 DCHECK(platform_spelling_engine_.get());
32 return platform_spelling_engine_->InitializeIfNeeded(); 32 return platform_spelling_engine_->InitializeIfNeeded();
33 } 33 }
34 34
35 bool SpellcheckLanguage::SpellCheckWord( 35 bool SpellcheckLanguage::SpellCheckWord(
36 const char16* in_word, 36 const base::char16* in_word,
37 int in_word_len, 37 int in_word_len,
38 int tag, 38 int tag,
39 int* misspelling_start, 39 int* misspelling_start,
40 int* misspelling_len, 40 int* misspelling_len,
41 std::vector<base::string16>* optional_suggestions) { 41 std::vector<base::string16>* optional_suggestions) {
42 DCHECK(in_word_len >= 0); 42 DCHECK(in_word_len >= 0);
43 DCHECK(misspelling_start && misspelling_len) << "Out vars must be given."; 43 DCHECK(misspelling_start && misspelling_len) << "Out vars must be given.";
44 44
45 // Do nothing if we need to delay initialization. (Rather than blocking, 45 // Do nothing if we need to delay initialization. (Rather than blocking,
46 // report the word as correctly spelled.) 46 // report the word as correctly spelled.)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 if (!platform_spelling_engine_->CheckSpelling(word, tag)) 118 if (!platform_spelling_engine_->CheckSpelling(word, tag))
119 return false; 119 return false;
120 } 120 }
121 return true; 121 return true;
122 } 122 }
123 123
124 bool SpellcheckLanguage::IsEnabled() { 124 bool SpellcheckLanguage::IsEnabled() {
125 DCHECK(platform_spelling_engine_.get()); 125 DCHECK(platform_spelling_engine_.get());
126 return platform_spelling_engine_->IsEnabled(); 126 return platform_spelling_engine_->IsEnabled();
127 } 127 }
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_language.h ('k') | chrome/renderer/spellchecker/spellcheck_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698