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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 explicit CrossProcessFrameConnector( | 67 explicit CrossProcessFrameConnector( |
68 RenderFrameHostImpl* frame_proxy_in_parent_renderer); | 68 RenderFrameHostImpl* frame_proxy_in_parent_renderer); |
69 virtual ~CrossProcessFrameConnector(); | 69 virtual ~CrossProcessFrameConnector(); |
70 | 70 |
71 bool OnMessageReceived(const IPC::Message &msg); | 71 bool OnMessageReceived(const IPC::Message &msg); |
72 | 72 |
73 // |view| corresponds to B2's RenderWidgetHostViewChildFrame in the example | 73 // |view| corresponds to B2's RenderWidgetHostViewChildFrame in the example |
74 // above. | 74 // above. |
75 void set_view(RenderWidgetHostViewChildFrame* view); | 75 void set_view(RenderWidgetHostViewChildFrame* view); |
76 | 76 |
| 77 RenderWidgetHostViewChildFrame* view() const { return view_; } |
| 78 |
77 void RenderProcessGone(); | 79 void RenderProcessGone(); |
78 | 80 |
79 // 'Platform' functionality exposed to RenderWidgetHostViewChildFrame. | 81 // 'Platform' functionality exposed to RenderWidgetHostViewChildFrame. |
80 // These methods can forward messages to the child frame proxy in the parent | 82 // These methods can forward messages to the child frame proxy in the parent |
81 // frame's renderer or attempt to handle them within the browser process. | 83 // frame's renderer or attempt to handle them within the browser process. |
82 void ChildFrameBuffersSwapped( | 84 void ChildFrameBuffersSwapped( |
83 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 85 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
84 int gpu_host_id); | 86 int gpu_host_id); |
85 | 87 |
86 void ChildFrameCompositorFrameSwapped(uint32 output_surface_id, | 88 void ChildFrameCompositorFrameSwapped(uint32 output_surface_id, |
(...skipping 24 matching lines...) Expand all Loading... |
111 RenderWidgetHostViewChildFrame* view_; | 113 RenderWidgetHostViewChildFrame* view_; |
112 | 114 |
113 gfx::Rect child_frame_rect_; | 115 gfx::Rect child_frame_rect_; |
114 float device_scale_factor_; | 116 float device_scale_factor_; |
115 }; | 117 }; |
116 | 118 |
117 } // namespace content | 119 } // namespace content |
118 | 120 |
119 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 121 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
120 | 122 |
OLD | NEW |