| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 virtual void RenderViewGone(base::TerminationStatus status, | 105 virtual void RenderViewGone(base::TerminationStatus status, |
| 106 int error_code) OVERRIDE; | 106 int error_code) OVERRIDE; |
| 107 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 107 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
| 108 virtual void Destroy() OVERRIDE {} | 108 virtual void Destroy() OVERRIDE {} |
| 109 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} | 109 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} |
| 110 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 110 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 111 virtual void CopyFromCompositingSurface( | 111 virtual void CopyFromCompositingSurface( |
| 112 const gfx::Rect& src_subrect, | 112 const gfx::Rect& src_subrect, |
| 113 const gfx::Size& dst_size, | 113 const gfx::Size& dst_size, |
| 114 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 114 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 115 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 116 const gfx::Rect& src_subrect, |
| 117 const scoped_refptr<media::VideoFrame>& target, |
| 118 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 119 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 115 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 120 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 116 virtual void AcceleratedSurfaceBuffersSwapped( | 121 virtual void AcceleratedSurfaceBuffersSwapped( |
| 117 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 122 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 118 int gpu_host_id) OVERRIDE; | 123 int gpu_host_id) OVERRIDE; |
| 119 virtual void AcceleratedSurfacePostSubBuffer( | 124 virtual void AcceleratedSurfacePostSubBuffer( |
| 120 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 125 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 121 int gpu_host_id) OVERRIDE; | 126 int gpu_host_id) OVERRIDE; |
| 122 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 127 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 123 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 128 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 124 #if defined(OS_MACOSX) | 129 #if defined(OS_MACOSX) |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 TestRenderViewHost* active_test_rvh(); | 347 TestRenderViewHost* active_test_rvh(); |
| 343 TestWebContents* contents(); | 348 TestWebContents* contents(); |
| 344 | 349 |
| 345 private: | 350 private: |
| 346 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 351 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 347 }; | 352 }; |
| 348 | 353 |
| 349 } // namespace content | 354 } // namespace content |
| 350 | 355 |
| 351 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 356 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |