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

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: Another trial... 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..ac129270cb5cd7c7289f10b2617946b4ed0c1b32 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;
-}
+struct SpellCheckResult;
// 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_;
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_platform_mac.mm ('k') | chrome/browser/spellchecker/spelling_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698