| 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/common/swapped_out_messages.h" | 5 #include "content/common/swapped_out_messages.h" |
| 6 | 6 |
| 7 #include "content/common/accessibility_messages.h" | 7 #include "content/common/accessibility_messages.h" |
| 8 #include "content/common/frame_messages.h" | 8 #include "content/common/frame_messages.h" |
| 9 #include "content/common/input_messages.h" | 9 #include "content/common/input_messages.h" |
| 10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 case InputHostMsg_HandleInputEvent_ACK::ID: | 21 case InputHostMsg_HandleInputEvent_ACK::ID: |
| 22 case ViewHostMsg_UpdateRect::ID: | 22 case ViewHostMsg_UpdateRect::ID: |
| 23 // Allow targeted navigations while swapped out. | 23 // Allow targeted navigations while swapped out. |
| 24 case ViewHostMsg_OpenURL::ID: | 24 case ViewHostMsg_OpenURL::ID: |
| 25 case ViewHostMsg_Focus::ID: | 25 case ViewHostMsg_Focus::ID: |
| 26 // Handled by RenderViewHost. | 26 // Handled by RenderViewHost. |
| 27 case ViewHostMsg_RenderProcessGone::ID: | 27 case ViewHostMsg_RenderProcessGone::ID: |
| 28 case ViewHostMsg_ShouldClose_ACK::ID: | 28 case ViewHostMsg_ShouldClose_ACK::ID: |
| 29 case ViewHostMsg_SwapOut_ACK::ID: | 29 case ViewHostMsg_SwapOut_ACK::ID: |
| 30 case ViewHostMsg_ClosePage_ACK::ID: | 30 case ViewHostMsg_ClosePage_ACK::ID: |
| 31 case ViewHostMsg_DomOperationResponse::ID: | |
| 32 case ViewHostMsg_SwapCompositorFrame::ID: | 31 case ViewHostMsg_SwapCompositorFrame::ID: |
| 33 case ViewHostMsg_UpdateIsDelayed::ID: | 32 case ViewHostMsg_UpdateIsDelayed::ID: |
| 34 case ViewHostMsg_DidActivateAcceleratedCompositing::ID: | 33 case ViewHostMsg_DidActivateAcceleratedCompositing::ID: |
| 35 // Allow cross-process JavaScript calls. | 34 // Allow cross-process JavaScript calls. |
| 36 case ViewHostMsg_RouteCloseEvent::ID: | 35 case ViewHostMsg_RouteCloseEvent::ID: |
| 37 case ViewHostMsg_RouteMessageEvent::ID: | 36 case ViewHostMsg_RouteMessageEvent::ID: |
| 38 // Handled by RenderFrameHost. | 37 // Handled by RenderFrameHost. |
| 39 case FrameHostMsg_SwapOut_ACK::ID: | 38 case FrameHostMsg_SwapOut_ACK::ID: |
| 40 // Frame detach must occur after the RenderView has swapped out. | 39 // Frame detach must occur after the RenderView has swapped out. |
| 41 case FrameHostMsg_Detach::ID: | 40 case FrameHostMsg_Detach::ID: |
| 41 case FrameHostMsg_DomOperationResponse::ID: |
| 42 case FrameHostMsg_CompositorFrameSwappedACK::ID: | 42 case FrameHostMsg_CompositorFrameSwappedACK::ID: |
| 43 case FrameHostMsg_BuffersSwappedACK::ID: | 43 case FrameHostMsg_BuffersSwappedACK::ID: |
| 44 case FrameHostMsg_ReclaimCompositorResources::ID: | 44 case FrameHostMsg_ReclaimCompositorResources::ID: |
| 45 // Input events propagate from parent to child. | 45 // Input events propagate from parent to child. |
| 46 case FrameHostMsg_ForwardInputEvent::ID: | 46 case FrameHostMsg_ForwardInputEvent::ID: |
| 47 return true; | 47 return true; |
| 48 default: | 48 default: |
| 49 break; | 49 break; |
| 50 } | 50 } |
| 51 | 51 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 default: | 94 default: |
| 95 break; | 95 break; |
| 96 } | 96 } |
| 97 | 97 |
| 98 // Check with the embedder as well. | 98 // Check with the embedder as well. |
| 99 ContentClient* client = GetContentClient(); | 99 ContentClient* client = GetContentClient(); |
| 100 return client->CanHandleWhileSwappedOut(msg); | 100 return client->CanHandleWhileSwappedOut(msg); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace content | 103 } // namespace content |
| OLD | NEW |