| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/spellchecker/spellcheck_provider.h" | 5 #include "chrome/renderer/spellchecker/spellcheck_provider.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/common/spellcheck_messages.h" | 9 #include "chrome/common/spellcheck_messages.h" |
| 10 #include "chrome/renderer/spellchecker/spellcheck.h" | 10 #include "chrome/renderer/spellchecker/spellcheck.h" |
| 11 #include "content/public/renderer/render_view.h" | 11 #include "content/public/renderer/render_view.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingComple
tion.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingComple
tion.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult
.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult
.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 17 | 17 |
| 18 using WebKit::WebFrame; | 18 using WebKit::WebFrame; |
| 19 using WebKit::WebString; | 19 using WebKit::WebString; |
| 20 using WebKit::WebTextCheckingCompletion; | 20 using WebKit::WebTextCheckingCompletion; |
| 21 using WebKit::WebTextCheckingResult; | 21 using WebKit::WebTextCheckingResult; |
| 22 using WebKit::WebVector; | 22 using WebKit::WebVector; |
| 23 | 23 |
| 24 SpellCheckProvider::SpellCheckProvider(content::RenderView* render_view, | 24 SpellCheckProvider::SpellCheckProvider(content::RenderView* render_view, |
| 25 SpellCheck* spellcheck) | 25 SpellCheck* spellcheck) |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Make the call to get the tag. | 199 // Make the call to get the tag. |
| 200 Send(new SpellCheckHostMsg_GetDocumentTag(routing_id(), &document_tag_)); | 200 Send(new SpellCheckHostMsg_GetDocumentTag(routing_id(), &document_tag_)); |
| 201 has_document_tag_ = true; | 201 has_document_tag_ = true; |
| 202 } | 202 } |
| 203 #endif | 203 #endif |
| 204 } | 204 } |
| 205 | 205 |
| 206 void SpellCheckProvider::SetSpellCheck(SpellCheck* spellcheck) { | 206 void SpellCheckProvider::SetSpellCheck(SpellCheck* spellcheck) { |
| 207 spellcheck_ = spellcheck; | 207 spellcheck_ = spellcheck; |
| 208 } | 208 } |
| OLD | NEW |