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

Unified Diff: chrome/browser/spellchecker/spellcheck_platform_mac.mm

Issue 8890022: Remove Hunspell on OS X - step 2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix rename in unittest Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spellcheck_platform_mac.mm
diff --git a/chrome/browser/spellchecker/spellchecker_mac.mm b/chrome/browser/spellchecker/spellcheck_platform_mac.mm
similarity index 97%
rename from chrome/browser/spellchecker/spellchecker_mac.mm
rename to chrome/browser/spellchecker/spellcheck_platform_mac.mm
index 2f4f57abdf782c0054f23a3484324ddf5fc50e68..e107e7ea334f5d429118a9b0728b7539388ba614 100644
--- a/chrome/browser/spellchecker/spellchecker_mac.mm
+++ b/chrome/browser/spellchecker/spellcheck_platform_mac.mm
@@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This file implements the interface defined in spellchecker_platform_engine.h
-// for the OS X platform.
+// Integration with OS X native spellchecker.
-#include "chrome/browser/spellchecker/spellchecker_platform_engine.h"
+#include "chrome/browser/spellchecker/spellcheck_platform_mac.h"
#import <Cocoa/Cocoa.h>
@@ -149,7 +148,7 @@ std::string ConvertLanguageCodeFromMac(NSString* lang_code) {
} // namespace
-namespace SpellCheckerPlatform {
+namespace spellcheck_mac {
void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) {
NSArray* availableLanguages = [[NSSpellChecker sharedSpellChecker]
@@ -200,9 +199,6 @@ void UpdateSpellingPanelWithMisspelledWord(const string16& word) {
waitUntilDone:YES];
}
-void Init() {
-}
-
bool PlatformSupportsLanguage(const std::string& current_language) {
// First, convert the language to an OS X language code.
NSString* mac_lang_code = ConvertLanguageCodeToMac(current_language);
@@ -297,4 +293,4 @@ void RequestTextCheck(int route_id,
destination, route_id, identifier, text, document_tag));
}
-} // namespace SpellCheckerPlatform
+} // namespace spellcheck_mac
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_platform_mac.h ('k') | chrome/browser/spellchecker/spellcheck_platform_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698