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" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // TODO(darin): There's actually no reason for this to be here. We should | 195 // TODO(darin): There's actually no reason for this to be here. We should |
196 // have the browser side manage the document tag. | 196 // have the browser side manage the document tag. |
197 #if defined(OS_MACOSX) | 197 #if defined(OS_MACOSX) |
198 if (!has_document_tag_) { | 198 if (!has_document_tag_) { |
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 |
| 206 void SpellCheckProvider::SetSpellCheck(SpellCheck* spellcheck) { |
| 207 spellcheck_ = spellcheck; |
| 208 } |
OLD | NEW |