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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 11362063: Editing the custom spelling dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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/browser/spellchecker/spellcheck_hunspell_dictionary.h" 5 #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 return hunspell::BDict::Verify( 273 return hunspell::BDict::Verify(
274 reinterpret_cast<const char*>(map.data()), map.length()); 274 reinterpret_cast<const char*>(map.data()), map.length());
275 } 275 }
276 276
277 bool SpellcheckHunspellDictionary::IsReady() const { 277 bool SpellcheckHunspellDictionary::IsReady() const {
278 return GetDictionaryFile() != 278 return GetDictionaryFile() !=
279 base::kInvalidPlatformFileValue || IsUsingPlatformChecker(); 279 base::kInvalidPlatformFileValue || IsUsingPlatformChecker();
280 } 280 }
281 281
282 void SpellcheckHunspellDictionary::InformProfileOfInitialization() { 282 void SpellcheckHunspellDictionary::InformProfileOfInitialization() {
283 spellcheck_service_->InformProfileOfInitializationWithCustomWords(NULL); 283 spellcheck_service_->InitForAllRenderers();
284 } 284 }
285 285
286 const base::PlatformFile& 286 const base::PlatformFile&
287 SpellcheckHunspellDictionary::GetDictionaryFile() const { 287 SpellcheckHunspellDictionary::GetDictionaryFile() const {
288 return file_; 288 return file_;
289 } 289 }
290 290
291 const std::string& SpellcheckHunspellDictionary::GetLanguage() const { 291 const std::string& SpellcheckHunspellDictionary::GetLanguage() const {
292 return language_; 292 return language_;
293 } 293 }
294 294
295 bool SpellcheckHunspellDictionary::IsUsingPlatformChecker() const { 295 bool SpellcheckHunspellDictionary::IsUsingPlatformChecker() const {
296 return use_platform_spellchecker_; 296 return use_platform_spellchecker_;
297 } 297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698