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