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

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.cc
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
index f09a11e4547721a2d6efaec0f600dade78cd25b7..9af496ba8a292f6bd9c42cdc5ce24ee35230feb6 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -21,9 +21,9 @@
#include "third_party/WebKit/public/web/WebTextDecorationType.h"
#include "third_party/WebKit/public/web/WebView.h"
-using WebKit::WebVector;
-using WebKit::WebTextCheckingResult;
-using WebKit::WebTextDecorationType;
+using blink::WebVector;
+using blink::WebTextCheckingResult;
+using blink::WebTextDecorationType;
namespace {
@@ -72,20 +72,20 @@ bool DocumentMarkersCollector::Visit(content::RenderView* render_view) {
class SpellCheck::SpellcheckRequest {
public:
SpellcheckRequest(const string16& text,
- WebKit::WebTextCheckingCompletion* completion)
+ blink::WebTextCheckingCompletion* completion)
: text_(text), completion_(completion) {
DCHECK(completion);
}
~SpellcheckRequest() {}
string16 text() { return text_; }
- WebKit::WebTextCheckingCompletion* completion() { return completion_; }
+ blink::WebTextCheckingCompletion* completion() { return completion_; }
private:
string16 text_; // Text to be checked in this task.
// The interface to send the misspelled ranges to WebKit.
- WebKit::WebTextCheckingCompletion* completion_;
+ blink::WebTextCheckingCompletion* completion_;
DISALLOW_COPY_AND_ASSIGN(SpellcheckRequest);
};
@@ -227,7 +227,7 @@ bool SpellCheck::SpellCheckParagraph(
text, misspelling_start + offset, misspelling_length)) {
string16 replacement;
textcheck_results.push_back(WebTextCheckingResult(
- WebKit::WebTextDecorationTypeSpelling,
+ blink::WebTextDecorationTypeSpelling,
misspelling_start + offset,
misspelling_length,
replacement));
@@ -299,7 +299,7 @@ string16 SpellCheck::GetAutoCorrectionWord(const string16& word, int tag) {
#if !defined(OS_MACOSX) // OSX uses its own spell checker
void SpellCheck::RequestTextChecking(
const string16& text,
- WebKit::WebTextCheckingCompletion* completion) {
+ blink::WebTextCheckingCompletion* completion) {
// Clean up the previous request before starting a new request.
if (pending_request_param_.get())
pending_request_param_->completion()->didCancelCheckingText();
@@ -337,7 +337,7 @@ void SpellCheck::PerformSpellCheck(SpellcheckRequest* param) {
if (!spellcheck_.IsEnabled()) {
param->completion()->didCancelCheckingText();
} else {
- WebVector<WebKit::WebTextCheckingResult> results;
+ WebVector<blink::WebTextCheckingResult> results;
SpellCheckParagraph(param->text(), &results);
param->completion()->didFinishCheckingText(results);
}
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698