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

Unified Diff: chrome/browser/spellchecker/spelling_service_client.h

Issue 9368052: Removed WebTextCheckingResult legacy API use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a build break on Mac. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spelling_service_client.h
diff --git a/chrome/browser/spellchecker/spelling_service_client.h b/chrome/browser/spellchecker/spelling_service_client.h
index 89a561f946e84027c3427d328f831405dfe24331..3b3037263e6559b5e38117533bccdfdde2a0dc27 100644
--- a/chrome/browser/spellchecker/spelling_service_client.h
+++ b/chrome/browser/spellchecker/spelling_service_client.h
@@ -17,10 +17,7 @@
class Profile;
class TextCheckClientDelegate;
-
-namespace WebKit {
-struct WebTextCheckingResult;
-}
+class SpellCheckResult;
Hironori Bono 2012/02/16 04:22:45 nit: class -> struct.
// A class that encapsulates a JSON-RPC call to the Spelling service to check
// text there. This class creates a JSON-RPC request, sends the request to the
@@ -37,7 +34,7 @@ struct WebTextCheckingResult;
//
// void OnTextCheckComplete(
// int tag,
-// const std::vector<WebKit::WebTextCheckingResult>& results) {
+// const std::vector<SpellCheckResult>& results) {
// ...
// }
//
@@ -55,7 +52,7 @@ class SpellingServiceClient : public content::URLFetcherDelegate {
public:
typedef base::Callback<void(
int /* tag */,
- const std::vector<WebKit::WebTextCheckingResult>& /* results */)>
+ const std::vector<SpellCheckResult>& /* results */)>
TextCheckCompleteCallback;
SpellingServiceClient();
@@ -76,7 +73,7 @@ class SpellingServiceClient : public content::URLFetcherDelegate {
private:
// Parses a JSON-RPC response from the Spelling service.
bool ParseResponse(const std::string& data,
- std::vector<WebKit::WebTextCheckingResult>* results);
+ std::vector<SpellCheckResult>* results);
// The URLFetcher object used for sending a JSON-RPC request.
scoped_ptr<content::URLFetcher> fetcher_;

Powered by Google App Engine
This is Rietveld 408576698