diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 22:08:36 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 22:08:36 +0000 |
commit | 64ffa044742115f8b41abe5af6e7119aeb25c32e (patch) | |
tree | 3cc03be952db7e6004709ed7bf51550bf881499a /chrome/renderer/spellchecker | |
parent | 26be0e2ad24016cdba8f079142420adb67894ac6 (diff) | |
download | chromium_src-64ffa044742115f8b41abe5af6e7119aeb25c32e.zip chromium_src-64ffa044742115f8b41abe5af6e7119aeb25c32e.tar.gz chromium_src-64ffa044742115f8b41abe5af6e7119aeb25c32e.tar.bz2 |
Move RenderProcessObserver and RenderViewVisitor to content\public\renderer and put them in the content namespace.
BUG=98716
Review URL: http://codereview.chromium.org/8116009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103796 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/spellchecker')
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck.cc | 12 | ||||
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck.h | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc index ac35844..d16ac0c 100644 --- a/chrome/renderer/spellchecker/spellcheck.cc +++ b/chrome/renderer/spellchecker/spellcheck.cc @@ -11,6 +11,7 @@ #include "chrome/common/render_messages.h" #include "chrome/common/spellcheck_common.h" #include "chrome/common/spellcheck_messages.h" +#include "content/renderer/render_thread.h" #include "third_party/hunspell/src/hunspell/hunspell.hxx" using base::TimeTicks; @@ -221,7 +222,7 @@ bool SpellCheck::InitializeIfNeeded() { return false; if (!initialized_) { - Send(new SpellCheckHostMsg_RequestDictionary); + RenderThread::current()->Send(new SpellCheckHostMsg_RequestDictionary); initialized_ = true; return true; } @@ -239,8 +240,8 @@ bool SpellCheck::CheckSpelling(const string16& word_to_check, int tag) { bool word_correct = false; if (is_using_platform_spelling_engine_) { - Send(new SpellCheckHostMsg_PlatformCheckSpelling(word_to_check, tag, - &word_correct)); + RenderThread::current()->Send(new SpellCheckHostMsg_PlatformCheckSpelling( + word_to_check, tag, &word_correct)); } else { std::string word_to_check_utf8(UTF16ToUTF8(word_to_check)); // Hunspell shouldn't let us exceed its max, but check just in case @@ -264,8 +265,9 @@ void SpellCheck::FillSuggestionList( const string16& wrong_word, std::vector<string16>* optional_suggestions) { if (is_using_platform_spelling_engine_) { - Send(new SpellCheckHostMsg_PlatformFillSuggestionList( - wrong_word, optional_suggestions)); + RenderThread::current()->Send( + new SpellCheckHostMsg_PlatformFillSuggestionList( + wrong_word, optional_suggestions)); return; } diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h index c2a4086..6e28fbd 100644 --- a/chrome/renderer/spellchecker/spellcheck.h +++ b/chrome/renderer/spellchecker/spellcheck.h @@ -15,7 +15,7 @@ #include "base/string16.h" #include "base/time.h" #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" -#include "content/renderer/render_process_observer.h" +#include "content/public/renderer/render_process_observer.h" #include "ipc/ipc_platform_file.h" #include "unicode/uscript.h" @@ -27,7 +27,7 @@ class MemoryMappedFile; // TODO(morrita): Needs reorg with SpellCheckProvider. // See http://crbug.com/73699. -class SpellCheck : public RenderProcessObserver { +class SpellCheck : public content::RenderProcessObserver { public: SpellCheck(); virtual ~SpellCheck(); |