| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Returns the view into which this view is directly embedded. This can | 180 // Returns the view into which this view is directly embedded. This can |
| 181 // return nullptr when this view's associated child frame is not connected | 181 // return nullptr when this view's associated child frame is not connected |
| 182 // to the frame tree. | 182 // to the frame tree. |
| 183 RenderWidgetHostViewBase* GetParentView(); | 183 RenderWidgetHostViewBase* GetParentView(); |
| 184 | 184 |
| 185 void RegisterFrameSinkId(); | 185 void RegisterFrameSinkId(); |
| 186 void UnregisterFrameSinkId(); | 186 void UnregisterFrameSinkId(); |
| 187 | 187 |
| 188 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection); | 188 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection); |
| 189 | 189 |
| 190 void SetIsInert(bool); |
| 191 |
| 190 bool has_frame() { return has_frame_; } | 192 bool has_frame() { return has_frame_; } |
| 191 | 193 |
| 192 protected: | 194 protected: |
| 193 friend class RenderWidgetHostView; | 195 friend class RenderWidgetHostView; |
| 194 friend class RenderWidgetHostViewChildFrameTest; | 196 friend class RenderWidgetHostViewChildFrameTest; |
| 195 friend class RenderWidgetHostViewGuestSurfaceTest; | 197 friend class RenderWidgetHostViewGuestSurfaceTest; |
| 196 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewChildFrameTest, | 198 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewChildFrameTest, |
| 197 ForwardsBeginFrameAcks); | 199 ForwardsBeginFrameAcks); |
| 198 | 200 |
| 199 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); | 201 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // The background color of the widget. | 267 // The background color of the widget. |
| 266 SkColor background_color_; | 268 SkColor background_color_; |
| 267 | 269 |
| 268 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 270 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 269 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 271 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 270 }; | 272 }; |
| 271 | 273 |
| 272 } // namespace content | 274 } // namespace content |
| 273 | 275 |
| 274 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 276 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |