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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) | 768 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) |
769 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) | 769 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) |
770 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredWidthChange, | 770 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredWidthChange, |
771 OnMsgDidContentsPreferredWidthChange) | 771 OnMsgDidContentsPreferredWidthChange) |
772 IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse, | 772 IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse, |
773 OnMsgDomOperationResponse) | 773 OnMsgDomOperationResponse) |
774 IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend, | 774 IPC_MESSAGE_HANDLER(ViewHostMsg_DOMUISend, |
775 OnMsgDOMUISend) | 775 OnMsgDOMUISend) |
776 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, | 776 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardMessageToExternalHost, |
777 OnMsgForwardMessageToExternalHost) | 777 OnMsgForwardMessageToExternalHost) |
| 778 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentLoadedInFrame, |
| 779 OnMsgDocumentLoadedInFrame) |
778 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, | 780 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, |
779 OnMsgGoToEntryAtOffset) | 781 OnMsgGoToEntryAtOffset) |
780 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) | 782 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnMsgSetTooltipText) |
781 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) | 783 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnMsgRunFileChooser) |
782 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, | 784 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, |
783 OnMsgRunJavaScriptMessage) | 785 OnMsgRunJavaScriptMessage) |
784 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, | 786 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, |
785 OnMsgRunBeforeUnloadConfirm) | 787 OnMsgRunBeforeUnloadConfirm) |
786 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog, | 788 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_ShowModalHTMLDialog, |
787 OnMsgShowModalHTMLDialog) | 789 OnMsgShowModalHTMLDialog) |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 } | 1147 } |
1146 delegate_->ProcessDOMUIMessage(message, content); | 1148 delegate_->ProcessDOMUIMessage(message, content); |
1147 } | 1149 } |
1148 | 1150 |
1149 void RenderViewHost::OnMsgForwardMessageToExternalHost( | 1151 void RenderViewHost::OnMsgForwardMessageToExternalHost( |
1150 const std::string& message, const std::string& origin, | 1152 const std::string& message, const std::string& origin, |
1151 const std::string& target) { | 1153 const std::string& target) { |
1152 delegate_->ProcessExternalHostMessage(message, origin, target); | 1154 delegate_->ProcessExternalHostMessage(message, origin, target); |
1153 } | 1155 } |
1154 | 1156 |
| 1157 void RenderViewHost::OnMsgDocumentLoadedInFrame() { |
| 1158 delegate_->DocumentLoadedInFrame(); |
| 1159 } |
| 1160 |
1155 void RenderViewHost::DisassociateFromPopupCount() { | 1161 void RenderViewHost::DisassociateFromPopupCount() { |
1156 Send(new ViewMsg_DisassociateFromPopupCount(routing_id())); | 1162 Send(new ViewMsg_DisassociateFromPopupCount(routing_id())); |
1157 } | 1163 } |
1158 | 1164 |
1159 void RenderViewHost::PopupNotificationVisibilityChanged(bool visible) { | 1165 void RenderViewHost::PopupNotificationVisibilityChanged(bool visible) { |
1160 Send(new ViewMsg_PopupNotificationVisibilityChanged(routing_id(), visible)); | 1166 Send(new ViewMsg_PopupNotificationVisibilityChanged(routing_id(), visible)); |
1161 } | 1167 } |
1162 | 1168 |
1163 void RenderViewHost::OnMsgGoToEntryAtOffset(int offset) { | 1169 void RenderViewHost::OnMsgGoToEntryAtOffset(int offset) { |
1164 delegate_->GoToEntryAtOffset(offset); | 1170 delegate_->GoToEntryAtOffset(offset); |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 } | 1487 } |
1482 | 1488 |
1483 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { | 1489 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { |
1484 #if defined(OS_WIN) | 1490 #if defined(OS_WIN) |
1485 BrowserAccessibilityManager::GetInstance()-> | 1491 BrowserAccessibilityManager::GetInstance()-> |
1486 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); | 1492 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); |
1487 #else | 1493 #else |
1488 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. | 1494 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. |
1489 #endif | 1495 #endif |
1490 } | 1496 } |
OLD | NEW |