| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 } | 1740 } |
| 1741 | 1741 |
| 1742 void RenderViewHost::UpdateBrowserWindowId(int window_id) { | 1742 void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
| 1743 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); | 1743 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
| 1744 } | 1744 } |
| 1745 | 1745 |
| 1746 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { | 1746 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { |
| 1747 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); | 1747 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); |
| 1748 } | 1748 } |
| 1749 | 1749 |
| 1750 void RenderViewHost::TranslatePage(int page_id, |
| 1751 const std::string& source_lang, |
| 1752 const std::string& target_lang) { |
| 1753 Send(new ViewMsg_TranslatePage(routing_id(), page_id, |
| 1754 source_lang, target_lang)); |
| 1755 } |
| 1756 |
| 1750 void RenderViewHost::OnExtensionPostMessage( | 1757 void RenderViewHost::OnExtensionPostMessage( |
| 1751 int port_id, const std::string& message) { | 1758 int port_id, const std::string& message) { |
| 1752 if (process()->profile()->GetExtensionMessageService()) { | 1759 if (process()->profile()->GetExtensionMessageService()) { |
| 1753 process()->profile()->GetExtensionMessageService()-> | 1760 process()->profile()->GetExtensionMessageService()-> |
| 1754 PostMessageFromRenderer(port_id, message); | 1761 PostMessageFromRenderer(port_id, message); |
| 1755 } | 1762 } |
| 1756 } | 1763 } |
| 1757 | 1764 |
| 1758 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { | 1765 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { |
| 1759 #if defined(OS_WIN) | 1766 #if defined(OS_WIN) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1772 int32 page_id, | 1779 int32 page_id, |
| 1773 const std::wstring& contents, | 1780 const std::wstring& contents, |
| 1774 const std::string& language) { | 1781 const std::string& language) { |
| 1775 RenderViewHostDelegate::BrowserIntegration* integration_delegate = | 1782 RenderViewHostDelegate::BrowserIntegration* integration_delegate = |
| 1776 delegate_->GetBrowserIntegrationDelegate(); | 1783 delegate_->GetBrowserIntegrationDelegate(); |
| 1777 if (!integration_delegate) | 1784 if (!integration_delegate) |
| 1778 return; | 1785 return; |
| 1779 integration_delegate->OnPageContents(url, process()->id(), page_id, contents, | 1786 integration_delegate->OnPageContents(url, process()->id(), page_id, contents, |
| 1780 language); | 1787 language); |
| 1781 } | 1788 } |
| OLD | NEW |