| 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 |
| 197 protected: | 199 protected: |
| 198 friend class RenderWidgetHostView; | 200 friend class RenderWidgetHostView; |
| 199 friend class RenderWidgetHostViewChildFrameTest; | 201 friend class RenderWidgetHostViewChildFrameTest; |
| 200 friend class RenderWidgetHostViewGuestSurfaceTest; | 202 friend class RenderWidgetHostViewGuestSurfaceTest; |
| 201 | 203 |
| 202 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); | 204 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); |
| 203 void Init(); | 205 void Init(); |
| 204 | 206 |
| 205 // Clears current compositor surface, if one is in use. | 207 // Clears current compositor surface, if one is in use. |
| 206 void ClearCompositorSurfaceIfNecessary(); | 208 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. | 256 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
| 255 cc::FrameSinkId parent_frame_sink_id_; | 257 cc::FrameSinkId parent_frame_sink_id_; |
| 256 | 258 |
| 257 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 259 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 258 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 260 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 259 }; | 261 }; |
| 260 | 262 |
| 261 } // namespace content | 263 } // namespace content |
| 262 | 264 |
| 263 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 265 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |