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