OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
7 | 7 |
8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 gfx::Rect ChildFrameRect(); | 87 gfx::Rect ChildFrameRect(); |
88 | 88 |
89 private: | 89 private: |
90 // Handlers for messages received from the parent frame. | 90 // Handlers for messages received from the parent frame. |
91 void OnBuffersSwappedACK( | 91 void OnBuffersSwappedACK( |
92 const FrameHostMsg_BuffersSwappedACK_Params& params); | 92 const FrameHostMsg_BuffersSwappedACK_Params& params); |
93 void OnCompositorFrameSwappedACK( | 93 void OnCompositorFrameSwappedACK( |
94 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); | 94 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); |
95 void OnReclaimCompositorResources( | 95 void OnReclaimCompositorResources( |
96 const FrameHostMsg_ReclaimCompositorResources_Params& params); | 96 const FrameHostMsg_ReclaimCompositorResources_Params& params); |
| 97 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
97 | 98 |
98 // The RenderFrameHost that routes messages to the parent frame's renderer | 99 // The RenderFrameHost that routes messages to the parent frame's renderer |
99 // process. | 100 // process. |
100 // TODO(kenrb): The type becomes RenderFrameProxyHost when that class comes | 101 // TODO(kenrb): The type becomes RenderFrameProxyHost when that class comes |
101 // to exist. | 102 // to exist. |
102 RenderFrameHostImpl* frame_proxy_in_parent_renderer_; | 103 RenderFrameHostImpl* frame_proxy_in_parent_renderer_; |
103 | 104 |
104 // The RenderWidgetHostView for the frame. Initially NULL. | 105 // The RenderWidgetHostView for the frame. Initially NULL. |
105 RenderWidgetHostViewChildFrame* view_; | 106 RenderWidgetHostViewChildFrame* view_; |
106 | 107 |
107 gfx::Rect child_frame_rect_; | 108 gfx::Rect child_frame_rect_; |
| 109 float device_scale_factor_; |
108 }; | 110 }; |
109 | 111 |
110 } // namespace content | 112 } // namespace content |
111 | 113 |
112 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 114 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
113 | 115 |
OLD | NEW |