| 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 "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 10 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 10 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const gfx::Rect& src_subrect, | 129 const gfx::Rect& src_subrect, |
| 130 const gfx::Size& dst_size, | 130 const gfx::Size& dst_size, |
| 131 const ReadbackRequestCallback& callback, | 131 const ReadbackRequestCallback& callback, |
| 132 const SkColorType preferred_color_type) { | 132 const SkColorType preferred_color_type) { |
| 133 callback.Run(SkBitmap(), content::READBACK_FAILED); | 133 callback.Run(SkBitmap(), content::READBACK_FAILED); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( | 136 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( |
| 137 const gfx::Rect& src_subrect, | 137 const gfx::Rect& src_subrect, |
| 138 const scoped_refptr<media::VideoFrame>& target, | 138 const scoped_refptr<media::VideoFrame>& target, |
| 139 const base::Callback<void(bool)>& callback) { | 139 const base::Callback<void(gfx::Rect, bool)>& callback) { |
| 140 callback.Run(false); | 140 callback.Run(gfx::Rect(), false); |
| 141 } | 141 } |
| 142 | 142 |
| 143 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { | 143 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { |
| 144 return false; | 144 return false; |
| 145 } | 145 } |
| 146 | 146 |
| 147 bool TestRenderWidgetHostView::HasAcceleratedSurface( | 147 bool TestRenderWidgetHostView::HasAcceleratedSurface( |
| 148 const gfx::Size& desired_size) { | 148 const gfx::Size& desired_size) { |
| 149 return false; | 149 return false; |
| 150 } | 150 } |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 332 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 333 return contents()->GetMainFrame(); | 333 return contents()->GetMainFrame(); |
| 334 } | 334 } |
| 335 | 335 |
| 336 TestWebContents* RenderViewHostImplTestHarness::contents() { | 336 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 337 return static_cast<TestWebContents*>(web_contents()); | 337 return static_cast<TestWebContents*>(web_contents()); |
| 338 } | 338 } |
| 339 | 339 |
| 340 } // namespace content | 340 } // namespace content |
| OLD | NEW |