| 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 #include "content/test/test_render_view_host.h" | 5 #include "content/test/test_render_view_host.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 void TestRenderWidgetHostView::Destroy() { delete this; } | 107 void TestRenderWidgetHostView::Destroy() { delete this; } |
| 108 | 108 |
| 109 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 109 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
| 110 return gfx::Rect(); | 110 return gfx::Rect(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 void TestRenderWidgetHostView::CopyFromCompositingSurface( | 113 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
| 114 const gfx::Rect& src_subrect, | 114 const gfx::Rect& src_subrect, |
| 115 const gfx::Size& dst_size, | 115 const gfx::Size& dst_size, |
| 116 CopyFromCompositingSurfaceCallback& callback, | 116 ReadbackRequestCallback& callback, |
| 117 const SkColorType color_type) { | 117 const SkColorType color_type) { |
| 118 callback.Run(false, SkBitmap()); | 118 callback.Run(SkBitmap(), content::READBACK_NOT_SUPPORTED); |
| 119 } | 119 } |
| 120 | 120 |
| 121 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( | 121 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( |
| 122 const gfx::Rect& src_subrect, | 122 const gfx::Rect& src_subrect, |
| 123 const scoped_refptr<media::VideoFrame>& target, | 123 const scoped_refptr<media::VideoFrame>& target, |
| 124 const base::Callback<void(bool)>& callback) { | 124 const base::Callback<void(bool)>& callback) { |
| 125 callback.Run(false); | 125 callback.Run(false); |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { | 128 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 295 |
| 296 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 296 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 297 return contents()->GetMainFrame(); | 297 return contents()->GetMainFrame(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 TestWebContents* RenderViewHostImplTestHarness::contents() { | 300 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 301 return static_cast<TestWebContents*>(web_contents()); | 301 return static_cast<TestWebContents*>(web_contents()); |
| 302 } | 302 } |
| 303 | 303 |
| 304 } // namespace content | 304 } // namespace content |
| OLD | NEW |