| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) | 752 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) |
| 753 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) | 753 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) |
| 754 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredWidthChange, | 754 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredWidthChange, |
| 755 OnMsgDidContentsPreferredWidthChange) | 755 OnMsgDidContentsPreferredWidthChange) |
| 756 IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse, | 756 IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse, |
| 757 OnMsgDomOperationResponse) | 757 OnMsgDomOperationResponse) |
| 758 IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend, | 758 IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend, |
| 759 OnMsgDOMUISend) | 759 OnMsgDOMUISend) |
| 760 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, | 760 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, |
| 761 OnMsgForwardMessageToExternalHost) | 761 OnMsgForwardMessageToExternalHost) |
| 762 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentLoadedInFrame, |
| 763 OnMsgDocumentLoadedInFrame) |
| 762 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, | 764 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, |
| 763 OnMsgGoToEntryAtOffset) | 765 OnMsgGoToEntryAtOffset) |
| 764 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) | 766 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) |
| 765 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) | 767 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) |
| 766 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, | 768 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, |
| 767 OnMsgRunJavaScriptMessage) | 769 OnMsgRunJavaScriptMessage) |
| 768 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, | 770 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, |
| 769 OnMsgRunBeforeUnloadConfirm) | 771 OnMsgRunBeforeUnloadConfirm) |
| 770 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog, | 772 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog, |
| 771 OnMsgShowModalHTMLDialog) | 773 OnMsgShowModalHTMLDialog) |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 } | 1131 } |
| 1130 delegate_->ProcessDOMUIMessage(message, content); | 1132 delegate_->ProcessDOMUIMessage(message, content); |
| 1131 } | 1133 } |
| 1132 | 1134 |
| 1133 void RenderViewHost::OnMsgForwardMessageToExternalHost( | 1135 void RenderViewHost::OnMsgForwardMessageToExternalHost( |
| 1134 const std::string& message, const std::string& origin, | 1136 const std::string& message, const std::string& origin, |
| 1135 const std::string& target) { | 1137 const std::string& target) { |
| 1136 delegate_->ProcessExternalHostMessage(message, origin, target); | 1138 delegate_->ProcessExternalHostMessage(message, origin, target); |
| 1137 } | 1139 } |
| 1138 | 1140 |
| 1141 void RenderViewHost::OnMsgDocumentLoadedInFrame() { |
| 1142 delegate_->DocumentLoadedInFrame(); |
| 1143 } |
| 1144 |
| 1139 void RenderViewHost::DisassociateFromPopupCount() { | 1145 void RenderViewHost::DisassociateFromPopupCount() { |
| 1140 Send(new ViewMsg_DisassociateFromPopupCount(routing_id())); | 1146 Send(new ViewMsg_DisassociateFromPopupCount(routing_id())); |
| 1141 } | 1147 } |
| 1142 | 1148 |
| 1143 void RenderViewHost::PopupNotificationVisibilityChanged(bool visible) { | 1149 void RenderViewHost::PopupNotificationVisibilityChanged(bool visible) { |
| 1144 Send(new ViewMsg_PopupNotificationVisibilityChanged(routing_id(), visible)); | 1150 Send(new ViewMsg_PopupNotificationVisibilityChanged(routing_id(), visible)); |
| 1145 } | 1151 } |
| 1146 | 1152 |
| 1147 void RenderViewHost::OnMsgGoToEntryAtOffset(int offset) { | 1153 void RenderViewHost::OnMsgGoToEntryAtOffset(int offset) { |
| 1148 delegate_->GoToEntryAtOffset(offset); | 1154 delegate_->GoToEntryAtOffset(offset); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 } | 1468 } |
| 1463 | 1469 |
| 1464 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { | 1470 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { |
| 1465 #if defined(OS_WIN) | 1471 #if defined(OS_WIN) |
| 1466 BrowserAccessibilityManager::GetInstance()-> | 1472 BrowserAccessibilityManager::GetInstance()-> |
| 1467 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); | 1473 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); |
| 1468 #else | 1474 #else |
| 1469 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. | 1475 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. |
| 1470 #endif | 1476 #endif |
| 1471 } | 1477 } |
| OLD | NEW |