| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void TestRenderWidgetHostView::Destroy() { delete this; } | 100 void TestRenderWidgetHostView::Destroy() { delete this; } |
| 101 | 101 |
| 102 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 102 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
| 103 return gfx::Rect(); | 103 return gfx::Rect(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void TestRenderWidgetHostView::CopyFromCompositingSurface( | 106 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
| 107 const gfx::Rect& src_subrect, | 107 const gfx::Rect& src_subrect, |
| 108 const gfx::Size& dst_size, | 108 const gfx::Size& dst_size, |
| 109 const base::Callback<void(bool, const SkBitmap&)>& callback, | 109 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 110 const SkBitmap::Config config) { | 110 const SkColorType color_type) { |
| 111 callback.Run(false, SkBitmap()); | 111 callback.Run(false, SkBitmap()); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( | 114 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( |
| 115 const gfx::Rect& src_subrect, | 115 const gfx::Rect& src_subrect, |
| 116 const scoped_refptr<media::VideoFrame>& target, | 116 const scoped_refptr<media::VideoFrame>& target, |
| 117 const base::Callback<void(bool)>& callback) { | 117 const base::Callback<void(bool)>& callback) { |
| 118 callback.Run(false); | 118 callback.Run(false); |
| 119 } | 119 } |
| 120 | 120 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 389 return static_cast<TestRenderFrameHost*>(main_rfh()); | 389 return static_cast<TestRenderFrameHost*>(main_rfh()); |
| 390 } | 390 } |
| 391 | 391 |
| 392 TestWebContents* RenderViewHostImplTestHarness::contents() { | 392 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 393 return static_cast<TestWebContents*>(web_contents()); | 393 return static_cast<TestWebContents*>(web_contents()); |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace content | 396 } // namespace content |
| OLD | NEW |