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