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