| 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 #if defined(OS_WIN) |
| 116 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 117 const gfx::Rect& src_subrect, |
| 118 const scoped_refptr<media::VideoFrame>& target, |
| 119 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 120 #endif |
| 115 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 121 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 116 virtual void AcceleratedSurfaceBuffersSwapped( | 122 virtual void AcceleratedSurfaceBuffersSwapped( |
| 117 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 123 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 118 int gpu_host_id) OVERRIDE; | 124 int gpu_host_id) OVERRIDE; |
| 119 virtual void AcceleratedSurfacePostSubBuffer( | 125 virtual void AcceleratedSurfacePostSubBuffer( |
| 120 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 126 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 121 int gpu_host_id) OVERRIDE; | 127 int gpu_host_id) OVERRIDE; |
| 122 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 128 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 123 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 129 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 124 #if defined(OS_MACOSX) | 130 #if defined(OS_MACOSX) |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 TestRenderViewHost* active_test_rvh(); | 348 TestRenderViewHost* active_test_rvh(); |
| 343 TestWebContents* contents(); | 349 TestWebContents* contents(); |
| 344 | 350 |
| 345 private: | 351 private: |
| 346 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 352 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 347 }; | 353 }; |
| 348 | 354 |
| 349 } // namespace content | 355 } // namespace content |
| 350 | 356 |
| 351 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 357 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |