OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1195 OnRouteCloseEvent) | 1195 OnRouteCloseEvent) |
1196 IPC_MESSAGE_HANDLER(ViewHostMsg_RouteMessageEvent, OnRouteMessageEvent) | 1196 IPC_MESSAGE_HANDLER(ViewHostMsg_RouteMessageEvent, OnRouteMessageEvent) |
1197 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, | 1197 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, |
1198 OnRunJavaScriptMessage) | 1198 OnRunJavaScriptMessage) |
1199 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, | 1199 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, |
1200 OnRunBeforeUnloadConfirm) | 1200 OnRunBeforeUnloadConfirm) |
1201 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnStartDragging) | 1201 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnStartDragging) |
1202 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) | 1202 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) |
1203 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK) | 1203 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK) |
1204 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) | 1204 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) |
1205 #if !defined(OS_ANDROID) | |
jamesr
2013/11/05 23:54:08
Hmm, is this so the IPC is unhandled and thus gets
| |
1205 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged) | 1206 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged) |
1207 #endif | |
1206 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) | 1208 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) |
1207 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnShouldCloseACK) | 1209 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnShouldCloseACK) |
1208 IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnClosePageACK) | 1210 IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnClosePageACK) |
1209 IPC_MESSAGE_HANDLER(ViewHostMsg_SwapOut_ACK, OnSwapOutACK) | 1211 IPC_MESSAGE_HANDLER(ViewHostMsg_SwapOut_ACK, OnSwapOutACK) |
1210 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged) | 1212 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged) |
1211 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, | 1213 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
1212 OnSelectionBoundsChanged) | 1214 OnSelectionBoundsChanged) |
1213 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) | 1215 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) |
1214 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) | 1216 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) |
1215 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, | 1217 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2249 void RenderViewHostImpl::AttachToFrameTree() { | 2251 void RenderViewHostImpl::AttachToFrameTree() { |
2250 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2252 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2251 | 2253 |
2252 frame_tree->SwapMainFrame(main_render_frame_host_.get()); | 2254 frame_tree->SwapMainFrame(main_render_frame_host_.get()); |
2253 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2255 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2254 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2256 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2255 } | 2257 } |
2256 } | 2258 } |
2257 | 2259 |
2258 } // namespace content | 2260 } // namespace content |
OLD | NEW |