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

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

Issue 1275813002: Implemented typo recognition in Chrome for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@4_remove_mac_redundancies
Patch Set: Changed pending requests to be handled in native, other comment addressing Created 5 years, 4 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 #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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // list of SpellCheckResult objects (used by Chrome). This function also 104 // list of SpellCheckResult objects (used by Chrome). This function also
105 // checks misspelled words returned by the Spelling service and changes the 105 // checks misspelled words returned by the Spelling service and changes the
106 // underline colors of contextually-misspelled words. 106 // underline colors of contextually-misspelled words.
107 void CreateTextCheckingResults( 107 void CreateTextCheckingResults(
108 ResultFilter filter, 108 ResultFilter filter,
109 int line_offset, 109 int line_offset,
110 const base::string16& line_text, 110 const base::string16& line_text,
111 const std::vector<SpellCheckResult>& spellcheck_results, 111 const std::vector<SpellCheckResult>& spellcheck_results,
112 blink::WebVector<blink::WebTextCheckingResult>* textcheck_results); 112 blink::WebVector<blink::WebTextCheckingResult>* textcheck_results);
113 113
114 bool is_spellcheck_enabled() { return spellcheck_enabled_; } 114 bool IsSpellcheckEnabled();
115 115
116 private: 116 private:
117 friend class SpellCheckTest; 117 friend class SpellCheckTest;
118 FRIEND_TEST_ALL_PREFIXES(SpellCheckTest, GetAutoCorrectionWord_EN_US); 118 FRIEND_TEST_ALL_PREFIXES(SpellCheckTest, GetAutoCorrectionWord_EN_US);
119 FRIEND_TEST_ALL_PREFIXES(SpellCheckTest, 119 FRIEND_TEST_ALL_PREFIXES(SpellCheckTest,
120 RequestSpellCheckMultipleTimesWithoutInitialization); 120 RequestSpellCheckMultipleTimesWithoutInitialization);
121 121
122 // RenderProcessObserver implementation: 122 // RenderProcessObserver implementation:
123 bool OnControlMessageReceived(const IPC::Message& message) override; 123 bool OnControlMessageReceived(const IPC::Message& message) override;
124 124
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Remember state for auto spell correct. 158 // Remember state for auto spell correct.
159 bool auto_spell_correct_turned_on_; 159 bool auto_spell_correct_turned_on_;
160 160
161 // Remember state for spellchecking. 161 // Remember state for spellchecking.
162 bool spellcheck_enabled_; 162 bool spellcheck_enabled_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(SpellCheck); 164 DISALLOW_COPY_AND_ASSIGN(SpellCheck);
165 }; 165 };
166 166
167 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_ 167 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698