| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/resources/returned_resource.h" | 9 #include "cc/resources/returned_resource.h" |
| 10 #include "cc/surfaces/surface_factory_client.h" | 10 #include "cc/surfaces/surface_factory_client.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 // cc::SurfaceFactoryClient implementation. | 153 // cc::SurfaceFactoryClient implementation. |
| 154 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 154 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 155 void SetBeginFrameSource(cc::SurfaceId surface_id, | 155 void SetBeginFrameSource(cc::SurfaceId surface_id, |
| 156 cc::BeginFrameSource* begin_frame_source) override; | 156 cc::BeginFrameSource* begin_frame_source) override; |
| 157 | 157 |
| 158 // Declared 'public' instead of 'protected' here to allow derived classes | 158 // Declared 'public' instead of 'protected' here to allow derived classes |
| 159 // to Bind() to it. | 159 // to Bind() to it. |
| 160 void SurfaceDrawn(uint32 output_surface_id, cc::SurfaceDrawStatus drawn); | 160 void SurfaceDrawn(uint32 output_surface_id, cc::SurfaceDrawStatus drawn); |
| 161 | 161 |
| 162 // Called when the visibility is changed at the renderer side. |
| 163 void SetVisibility(bool visible); |
| 164 |
| 162 protected: | 165 protected: |
| 163 friend class RenderWidgetHostView; | 166 friend class RenderWidgetHostView; |
| 164 friend class RenderWidgetHostViewChildFrameTest; | 167 friend class RenderWidgetHostViewChildFrameTest; |
| 165 friend class RenderWidgetHostViewGuestSurfaceTest; | 168 friend class RenderWidgetHostViewGuestSurfaceTest; |
| 166 | 169 |
| 167 // Clears current compositor surface, if one is in use. | 170 // Clears current compositor surface, if one is in use. |
| 168 void ClearCompositorSurfaceIfNecessary(); | 171 void ClearCompositorSurfaceIfNecessary(); |
| 169 | 172 |
| 170 // The last scroll offset of the view. | 173 // The last scroll offset of the view. |
| 171 gfx::Vector2dF last_scroll_offset_; | 174 gfx::Vector2dF last_scroll_offset_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 197 } | 200 } |
| 198 | 201 |
| 199 private: | 202 private: |
| 200 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 203 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 201 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 204 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 } // namespace content | 207 } // namespace content |
| 205 | 208 |
| 206 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 209 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |