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

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

Issue 11362063: Editing the custom spelling dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Exclude custom dictionary WebUI from mac 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 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // RenderProcessObserver implementation: 104 // RenderProcessObserver implementation:
105 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 105 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
106 106
107 // Message handlers. 107 // Message handlers.
108 void OnInit(IPC::PlatformFileForTransit bdict_file, 108 void OnInit(IPC::PlatformFileForTransit bdict_file,
109 const std::vector<std::string>& custom_words, 109 const std::vector<std::string>& custom_words,
110 const std::string& language, 110 const std::string& language,
111 bool auto_spell_correct); 111 bool auto_spell_correct);
112 void OnWordAdded(const std::string& word); 112 void OnWordAdded(const std::string& word);
113 void OnWordRemoved(const std::string& word);
113 void OnEnableAutoSpellCorrect(bool enable); 114 void OnEnableAutoSpellCorrect(bool enable);
114 115
115 // If there is no dictionary file, then this requests one from the browser 116 // If there is no dictionary file, then this requests one from the browser
116 // and does not block. In this case it returns true. 117 // and does not block. In this case it returns true.
117 // If there is a dictionary file, but Hunspell has not been loaded, then 118 // If there is a dictionary file, but Hunspell has not been loaded, then
118 // this loads Hunspell. 119 // this loads Hunspell.
119 // If Hunspell is already loaded, this does nothing. In both the latter cases 120 // If Hunspell is already loaded, this does nothing. In both the latter cases
120 // it returns false, meaning that it is OK to continue spellchecking. 121 // it returns false, meaning that it is OK to continue spellchecking.
121 bool InitializeIfNeeded(); 122 bool InitializeIfNeeded();
122 123
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // hunspell. (When WebKit sends two or more requests, we cancel the previous 168 // hunspell. (When WebKit sends two or more requests, we cancel the previous
168 // requests so we do not have to use vectors.) 169 // requests so we do not have to use vectors.)
169 #if !defined (OS_MACOSX) 170 #if !defined (OS_MACOSX)
170 scoped_ptr<SpellcheckRequest> pending_request_param_; 171 scoped_ptr<SpellcheckRequest> pending_request_param_;
171 #endif 172 #endif
172 173
173 DISALLOW_COPY_AND_ASSIGN(SpellCheck); 174 DISALLOW_COPY_AND_ASSIGN(SpellCheck);
174 }; 175 };
175 176
176 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ 177 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/hunspell_engine.cc ('k') | chrome/renderer/spellchecker/spellcheck.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698