| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 } | 535 } |
| 536 | 536 |
| 537 void RenderViewHost::Paste() { | 537 void RenderViewHost::Paste() { |
| 538 Send(new ViewMsg_Paste(routing_id())); | 538 Send(new ViewMsg_Paste(routing_id())); |
| 539 } | 539 } |
| 540 | 540 |
| 541 void RenderViewHost::ToggleSpellCheck() { | 541 void RenderViewHost::ToggleSpellCheck() { |
| 542 Send(new ViewMsg_ToggleSpellCheck(routing_id())); | 542 Send(new ViewMsg_ToggleSpellCheck(routing_id())); |
| 543 } | 543 } |
| 544 | 544 |
| 545 void RenderViewHost::AddToDictionary(const string16& word) { | |
| 546 process()->AddWord(word); | |
| 547 } | |
| 548 | |
| 549 void RenderViewHost::Delete() { | 545 void RenderViewHost::Delete() { |
| 550 Send(new ViewMsg_Delete(routing_id())); | 546 Send(new ViewMsg_Delete(routing_id())); |
| 551 } | 547 } |
| 552 | 548 |
| 553 void RenderViewHost::SelectAll() { | 549 void RenderViewHost::SelectAll() { |
| 554 Send(new ViewMsg_SelectAll(routing_id())); | 550 Send(new ViewMsg_SelectAll(routing_id())); |
| 555 } | 551 } |
| 556 | 552 |
| 557 void RenderViewHost::ToggleSpellPanel(bool is_currently_visible) { | 553 void RenderViewHost::ToggleSpellPanel(bool is_currently_visible) { |
| 558 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); | 554 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); |
| (...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 #endif | 1774 #endif |
| 1779 } | 1775 } |
| 1780 | 1776 |
| 1781 void RenderViewHost::OnCSSInserted() { | 1777 void RenderViewHost::OnCSSInserted() { |
| 1782 delegate_->DidInsertCSS(); | 1778 delegate_->DidInsertCSS(); |
| 1783 } | 1779 } |
| 1784 | 1780 |
| 1785 void RenderViewHost::UpdateBrowserWindowId(int window_id) { | 1781 void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
| 1786 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); | 1782 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
| 1787 } | 1783 } |
| OLD | NEW |