| 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_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 float current_surface_scale_factor() { return current_surface_scale_factor_; } | 187 float current_surface_scale_factor() { return current_surface_scale_factor_; } |
| 188 | 188 |
| 189 // Returns the view into which this view is directly embedded. This can | 189 // Returns the view into which this view is directly embedded. This can |
| 190 // return nullptr when this view's associated child frame is not connected | 190 // return nullptr when this view's associated child frame is not connected |
| 191 // to the frame tree. | 191 // to the frame tree. |
| 192 RenderWidgetHostViewBase* GetParentView(); | 192 RenderWidgetHostViewBase* GetParentView(); |
| 193 | 193 |
| 194 void RegisterFrameSinkId(); | 194 void RegisterFrameSinkId(); |
| 195 void UnregisterFrameSinkId(); | 195 void UnregisterFrameSinkId(); |
| 196 | 196 |
| 197 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection, |
| 198 const gfx::Point& root_offset); |
| 199 |
| 197 protected: | 200 protected: |
| 198 friend class RenderWidgetHostView; | 201 friend class RenderWidgetHostView; |
| 199 friend class RenderWidgetHostViewChildFrameTest; | 202 friend class RenderWidgetHostViewChildFrameTest; |
| 200 friend class RenderWidgetHostViewGuestSurfaceTest; | 203 friend class RenderWidgetHostViewGuestSurfaceTest; |
| 201 | 204 |
| 202 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); | 205 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); |
| 203 void Init(); | 206 void Init(); |
| 204 | 207 |
| 205 // Clears current compositor surface, if one is in use. | 208 // Clears current compositor surface, if one is in use. |
| 206 void ClearCompositorSurfaceIfNecessary(); | 209 void ClearCompositorSurfaceIfNecessary(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // The surface client ID of the parent RenderWidgetHostView. 0 if none. | 257 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
| 255 cc::FrameSinkId parent_frame_sink_id_; | 258 cc::FrameSinkId parent_frame_sink_id_; |
| 256 | 259 |
| 257 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 260 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 258 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 261 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 259 }; | 262 }; |
| 260 | 263 |
| 261 } // namespace content | 264 } // namespace content |
| 262 | 265 |
| 263 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 266 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |