| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Input events propagate from parent to child. | 43 // Input events propagate from parent to child. |
| 44 case FrameHostMsg_ForwardInputEvent::ID: | 44 case FrameHostMsg_ForwardInputEvent::ID: |
| 45 case FrameHostMsg_InitializeChildFrame::ID: | 45 case FrameHostMsg_InitializeChildFrame::ID: |
| 46 // The browser should always have an accurate mirror of the renderer's | 46 // The browser should always have an accurate mirror of the renderer's |
| 47 // notion of the current page id. | 47 // notion of the current page id. |
| 48 case FrameHostMsg_DidAssignPageId::ID: | 48 case FrameHostMsg_DidAssignPageId::ID: |
| 49 // A swapped-out frame's opener might be updated with window.open. | 49 // A swapped-out frame's opener might be updated with window.open. |
| 50 case FrameHostMsg_DidChangeOpener::ID: | 50 case FrameHostMsg_DidChangeOpener::ID: |
| 51 // Used in layout tests; handled in BlinkTestController. | 51 // Used in layout tests; handled in BlinkTestController. |
| 52 case ShellViewHostMsg_PrintMessage::ID: | 52 case ShellViewHostMsg_PrintMessage::ID: |
| 53 case ShellViewHostMsg_LayoutDumpFlagsChanged::ID: |
| 53 return true; | 54 return true; |
| 54 default: | 55 default: |
| 55 break; | 56 break; |
| 56 } | 57 } |
| 57 | 58 |
| 58 // Check with the embedder as well. | 59 // Check with the embedder as well. |
| 59 ContentClient* client = GetContentClient(); | 60 ContentClient* client = GetContentClient(); |
| 60 return client->CanSendWhileSwappedOut(msg); | 61 return client->CanSendWhileSwappedOut(msg); |
| 61 } | 62 } |
| 62 | 63 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 91 case AccessibilityHostMsg_Events::ID: | 92 case AccessibilityHostMsg_Events::ID: |
| 92 return true; | 93 return true; |
| 93 default: | 94 default: |
| 94 break; | 95 break; |
| 95 } | 96 } |
| 96 | 97 |
| 97 return false; | 98 return false; |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace content | 101 } // namespace content |
| OLD | NEW |