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

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

Issue 1602303002: [mac] Send the system spellchecker language to the renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_platform.h" 5 #include "chrome/browser/spellchecker/spellcheck_platform.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 10
11 namespace spellcheck_platform { 11 namespace spellcheck_platform {
12 12
13 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) { 13 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) {
14 } 14 }
15 15
16 std::string GetSpellCheckerLanguage() {
17 return std::string();
18 }
19
16 bool SpellCheckerAvailable() { 20 bool SpellCheckerAvailable() {
17 return base::CommandLine::ForCurrentProcess()->HasSwitch( 21 return base::CommandLine::ForCurrentProcess()->HasSwitch(
18 switches::kEnableAndroidSpellChecker); 22 switches::kEnableAndroidSpellChecker);
19 } 23 }
20 24
21 bool SpellCheckerProvidesPanel() { 25 bool SpellCheckerProvidesPanel() {
22 return false; 26 return false;
23 } 27 }
24 28
25 bool SpellingPanelVisible() { 29 bool SpellingPanelVisible() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void CloseDocumentWithTag(int tag) { 67 void CloseDocumentWithTag(int tag) {
64 } 68 }
65 69
66 void RequestTextCheck(int document_tag, 70 void RequestTextCheck(int document_tag,
67 const base::string16& text, 71 const base::string16& text,
68 TextCheckCompleteCallback callback) { 72 TextCheckCompleteCallback callback) {
69 73
70 } 74 }
71 75
72 } // namespace spellcheck_platform 76 } // namespace spellcheck_platform
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698