| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 bool HasFocus(); | 110 bool HasFocus(); |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 // Handlers for messages received from the parent frame. | 113 // Handlers for messages received from the parent frame. |
| 114 void OnCompositorFrameSwappedACK( | 114 void OnCompositorFrameSwappedACK( |
| 115 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); | 115 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); |
| 116 void OnReclaimCompositorResources( | 116 void OnReclaimCompositorResources( |
| 117 const FrameHostMsg_ReclaimCompositorResources_Params& params); | 117 const FrameHostMsg_ReclaimCompositorResources_Params& params); |
| 118 void OnForwardInputEvent(const blink::WebInputEvent* event); | 118 void OnForwardInputEvent(const blink::WebInputEvent* event); |
| 119 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 119 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
| 120 void OnVisibilityChanged(bool visible); |
| 120 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); | 121 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
| 121 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 122 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
| 122 void OnRequireSequence(const cc::SurfaceId& id, | 123 void OnRequireSequence(const cc::SurfaceId& id, |
| 123 const cc::SurfaceSequence& sequence); | 124 const cc::SurfaceSequence& sequence); |
| 124 | 125 |
| 125 void SetDeviceScaleFactor(float scale_factor); | 126 void SetDeviceScaleFactor(float scale_factor); |
| 126 void SetSize(gfx::Rect frame_rect); | 127 void SetSize(gfx::Rect frame_rect); |
| 127 | 128 |
| 128 // Retrieve the view for the top-level frame under the same WebContents. | 129 // Retrieve the view for the top-level frame under the same WebContents. |
| 129 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); | 130 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); |
| 130 | 131 |
| 131 // The RenderFrameProxyHost that routes messages to the parent frame's | 132 // The RenderFrameProxyHost that routes messages to the parent frame's |
| 132 // renderer process. | 133 // renderer process. |
| 133 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; | 134 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; |
| 134 | 135 |
| 135 // The RenderWidgetHostView for the frame. Initially NULL. | 136 // The RenderWidgetHostView for the frame. Initially NULL. |
| 136 RenderWidgetHostViewChildFrame* view_; | 137 RenderWidgetHostViewChildFrame* view_; |
| 137 | 138 |
| 138 gfx::Rect child_frame_rect_; | 139 gfx::Rect child_frame_rect_; |
| 139 float device_scale_factor_; | 140 float device_scale_factor_; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace content | 143 } // namespace content |
| 143 | 144 |
| 144 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 145 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 145 | 146 |
| OLD | NEW |