Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: content/common/swapped_out_messages.cc

Issue 132383005: Set correct viewport size for an out of process iframe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 25 matching lines...) Expand all
36 // Allow cross-process JavaScript calls. 36 // Allow cross-process JavaScript calls.
37 case ViewHostMsg_RouteCloseEvent::ID: 37 case ViewHostMsg_RouteCloseEvent::ID:
38 case ViewHostMsg_RouteMessageEvent::ID: 38 case ViewHostMsg_RouteMessageEvent::ID:
39 // Handled by RenderFrameHost. 39 // Handled by RenderFrameHost.
40 case FrameHostMsg_SwapOut_ACK::ID: 40 case FrameHostMsg_SwapOut_ACK::ID:
41 // Frame detach must occur after the RenderView has swapped out. 41 // Frame detach must occur after the RenderView has swapped out.
42 case FrameHostMsg_Detach::ID: 42 case FrameHostMsg_Detach::ID:
43 case FrameHostMsg_CompositorFrameSwappedACK::ID: 43 case FrameHostMsg_CompositorFrameSwappedACK::ID:
44 case FrameHostMsg_BuffersSwappedACK::ID: 44 case FrameHostMsg_BuffersSwappedACK::ID:
45 case FrameHostMsg_ReclaimCompositorResources::ID: 45 case FrameHostMsg_ReclaimCompositorResources::ID:
46 case FrameHostMsg_InitializeChildFrame::ID:
46 return true; 47 return true;
47 default: 48 default:
48 break; 49 break;
49 } 50 }
50 51
51 // Check with the embedder as well. 52 // Check with the embedder as well.
52 ContentClient* client = GetContentClient(); 53 ContentClient* client = GetContentClient();
53 return client->CanSendWhileSwappedOut(msg); 54 return client->CanSendWhileSwappedOut(msg);
54 } 55 }
55 56
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 default: 94 default:
94 break; 95 break;
95 } 96 }
96 97
97 // Check with the embedder as well. 98 // Check with the embedder as well.
98 ContentClient* client = GetContentClient(); 99 ContentClient* client = GetContentClient();
99 return client->CanHandleWhileSwappedOut(msg); 100 return client->CanHandleWhileSwappedOut(msg);
100 } 101 }
101 102
102 } // namespace content 103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698