| 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
|
|
|