| 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/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 BackingStore* TestRenderWidgetHostView::AllocBackingStore( | 103 BackingStore* TestRenderWidgetHostView::AllocBackingStore( |
| 104 const gfx::Size& size) { | 104 const gfx::Size& size) { |
| 105 return new TestBackingStore(rwh_, size); | 105 return new TestBackingStore(rwh_, size); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void TestRenderWidgetHostView::CopyFromCompositingSurface( | 108 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
| 109 const gfx::Rect& src_subrect, | 109 const gfx::Rect& src_subrect, |
| 110 const gfx::Size& dst_size, | 110 const gfx::Size& dst_size, |
| 111 const base::Callback<void(bool, const SkBitmap&)>& callback, | 111 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 112 const SkBitmap::Config config) { | 112 const SkBitmap::Config config, |
| 113 scoped_ptr<SkBitmap> bitmap) { |
| 113 callback.Run(false, SkBitmap()); | 114 callback.Run(false, SkBitmap()); |
| 114 } | 115 } |
| 115 | 116 |
| 116 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( | 117 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( |
| 117 const gfx::Rect& src_subrect, | 118 const gfx::Rect& src_subrect, |
| 118 const scoped_refptr<media::VideoFrame>& target, | 119 const scoped_refptr<media::VideoFrame>& target, |
| 119 const base::Callback<void(bool)>& callback) { | 120 const base::Callback<void(bool)>& callback) { |
| 120 callback.Run(false); | 121 callback.Run(false); |
| 121 } | 122 } |
| 122 | 123 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 396 |
| 396 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 397 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 397 return static_cast<TestRenderFrameHost*>(main_rfh()); | 398 return static_cast<TestRenderFrameHost*>(main_rfh()); |
| 398 } | 399 } |
| 399 | 400 |
| 400 TestWebContents* RenderViewHostImplTestHarness::contents() { | 401 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 401 return static_cast<TestWebContents*>(web_contents()); | 402 return static_cast<TestWebContents*>(web_contents()); |
| 402 } | 403 } |
| 403 | 404 |
| 404 } // namespace content | 405 } // namespace content |
| OLD | NEW |