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

Unified Diff: chrome/browser/spellchecker/spellcheck_platform_mac.mm

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/spellcheck_platform_mac.mm
diff --git a/chrome/browser/spellchecker/spellcheck_platform_mac.mm b/chrome/browser/spellchecker/spellcheck_platform_mac.mm
index fdf850dc278162f3b248da268a62ad758eb1c11d..1db8190596ef4038f9c05fc0eb2565ab5eaad575 100644
--- a/chrome/browser/spellchecker/spellcheck_platform_mac.mm
+++ b/chrome/browser/spellchecker/spellcheck_platform_mac.mm
@@ -18,9 +18,9 @@
#include "base/time.h"
#include "chrome/common/spellcheck_common.h"
#include "chrome/common/spellcheck_messages.h"
+#include "chrome/common/spellcheck_result.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/browser_thread.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult.h"
using base::TimeTicks;
using content::BrowserMessageFilter;
@@ -58,7 +58,7 @@ void TextCheckingCallback(
int document_tag) {
// TODO(morrita): Use [NSSpellChecker requestCheckingOfString]
// when the build target goes up to 10.6
- std::vector<WebKit::WebTextCheckingResult> check_results;
+ std::vector<SpellCheckResult> check_results;
NSString* text_to_check = base::SysUTF16ToNSString(text);
size_t starting_at = 0;
while (starting_at < text.size()) {
@@ -71,8 +71,8 @@ void TextCheckingCallback(
wordCount:NULL];
if (range.length == 0)
break;
- check_results.push_back(WebKit::WebTextCheckingResult(
- WebKit::WebTextCheckingResult::ErrorSpelling,
+ check_results.push_back(SpellCheckResult(
+ SpellCheckResult::SPELLING,
range.location,
range.length));
starting_at = range.location + range.length;

Powered by Google App Engine
This is Rietveld 408576698