| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/browser/render_view_host.h" | 5 #include "chrome/browser/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 } | 443 } |
| 444 | 444 |
| 445 void RenderViewHost::Paste() { | 445 void RenderViewHost::Paste() { |
| 446 Send(new ViewMsg_Paste(routing_id_)); | 446 Send(new ViewMsg_Paste(routing_id_)); |
| 447 } | 447 } |
| 448 | 448 |
| 449 void RenderViewHost::Replace(const std::wstring& text_to_replace) { | 449 void RenderViewHost::Replace(const std::wstring& text_to_replace) { |
| 450 Send(new ViewMsg_Replace(routing_id_, text_to_replace)); | 450 Send(new ViewMsg_Replace(routing_id_, text_to_replace)); |
| 451 } | 451 } |
| 452 | 452 |
| 453 void RenderViewHost::ToggleSpellCheck() { |
| 454 Send(new ViewMsg_ToggleSpellCheck(routing_id_)); |
| 455 } |
| 456 |
| 453 void RenderViewHost::AddToDictionary(const std::wstring& word) { | 457 void RenderViewHost::AddToDictionary(const std::wstring& word) { |
| 454 process_->AddWord(word); | 458 process_->AddWord(word); |
| 455 } | 459 } |
| 456 | 460 |
| 457 void RenderViewHost::Delete() { | 461 void RenderViewHost::Delete() { |
| 458 Send(new ViewMsg_Delete(routing_id_)); | 462 Send(new ViewMsg_Delete(routing_id_)); |
| 459 } | 463 } |
| 460 | 464 |
| 461 void RenderViewHost::SelectAll() { | 465 void RenderViewHost::SelectAll() { |
| 462 Send(new ViewMsg_SelectAll(routing_id_)); | 466 Send(new ViewMsg_SelectAll(routing_id_)); |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 Send(new ViewMsg_PersonalizationEvent(routing_id_, | 1277 Send(new ViewMsg_PersonalizationEvent(routing_id_, |
| 1274 event_name, | 1278 event_name, |
| 1275 event_arg)); | 1279 event_arg)); |
| 1276 } | 1280 } |
| 1277 #endif | 1281 #endif |
| 1278 | 1282 |
| 1279 void RenderViewHost::ForwardMessageFromExternalHost( | 1283 void RenderViewHost::ForwardMessageFromExternalHost( |
| 1280 const std::string& target, const std::string& message) { | 1284 const std::string& target, const std::string& message) { |
| 1281 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); | 1285 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); |
| 1282 } | 1286 } |
| OLD | NEW |