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