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

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

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add server-side size limit tests Created 7 years, 11 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
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 "cocoa_spelling_engine_mac.h" 5 #include "cocoa_spelling_engine_mac.h"
6 6
7 #include "chrome/common/spellcheck_messages.h" 7 #include "chrome/common/spellcheck_messages.h"
8 #include "content/public/renderer/render_thread.h" 8 #include "content/public/renderer/render_thread.h"
9 9
10 using content::RenderThread; 10 using content::RenderThread;
(...skipping 29 matching lines...) Expand all
40 // Synchronously query against CocoaSpellinger. 40 // Synchronously query against CocoaSpellinger.
41 // TODO(groby): We might want async support here, too. Ideally, 41 // TODO(groby): We might want async support here, too. Ideally,
42 // all engines share a similar path for async requests. 42 // all engines share a similar path for async requests.
43 void CocoaSpellingEngine::FillSuggestionList( 43 void CocoaSpellingEngine::FillSuggestionList(
44 const string16& wrong_word, 44 const string16& wrong_word,
45 std::vector<string16>* optional_suggestions) { 45 std::vector<string16>* optional_suggestions) {
46 RenderThread::Get()->Send(new SpellCheckHostMsg_FillSuggestionList( 46 RenderThread::Get()->Send(new SpellCheckHostMsg_FillSuggestionList(
47 wrong_word, optional_suggestions)); 47 wrong_word, optional_suggestions));
48 } 48 }
49 49
50 void CocoaSpellingEngine::OnWordAdded(const std::string&) { 50 void CocoaSpellingEngine::OnWordsAddedRemoved(
51 const std::vector<std::string>& words_added,
52 const std::vector<std::string>& words_removed) {
51 // OSX doesn't support the custom dictionary yet. 53 // OSX doesn't support the custom dictionary yet.
52 } 54 }
53
54 void CocoaSpellingEngine::OnWordRemoved(const std::string&) {
55 // OSX doesn't support the custom dictionary yet.
56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698