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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void TestRenderWidgetHostView::Destroy() { delete this; } | 117 void TestRenderWidgetHostView::Destroy() { delete this; } |
118 | 118 |
119 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 119 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
120 return gfx::Rect(); | 120 return gfx::Rect(); |
121 } | 121 } |
122 | 122 |
123 void TestRenderWidgetHostView::CopyFromCompositingSurface( | 123 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
124 const gfx::Rect& src_subrect, | 124 const gfx::Rect& src_subrect, |
125 const gfx::Size& dst_size, | 125 const gfx::Size& dst_size, |
126 ReadbackRequestCallback& callback, | 126 ReadbackRequestCallback& callback, |
127 const SkColorType color_type) { | 127 const SkColorType preferred_color_type) { |
128 callback.Run(SkBitmap(), content::READBACK_NOT_SUPPORTED); | 128 callback.Run(SkBitmap(), content::READBACK_FAILED); |
129 } | 129 } |
130 | 130 |
131 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( | 131 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( |
132 const gfx::Rect& src_subrect, | 132 const gfx::Rect& src_subrect, |
133 const scoped_refptr<media::VideoFrame>& target, | 133 const scoped_refptr<media::VideoFrame>& target, |
134 const base::Callback<void(bool)>& callback) { | 134 const base::Callback<void(bool)>& callback) { |
135 callback.Run(false); | 135 callback.Run(false); |
136 } | 136 } |
137 | 137 |
138 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { | 138 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 310 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
311 return contents()->GetMainFrame(); | 311 return contents()->GetMainFrame(); |
312 } | 312 } |
313 | 313 |
314 TestWebContents* RenderViewHostImplTestHarness::contents() { | 314 TestWebContents* RenderViewHostImplTestHarness::contents() { |
315 return static_cast<TestWebContents*>(web_contents()); | 315 return static_cast<TestWebContents*>(web_contents()); |
316 } | 316 } |
317 | 317 |
318 } // namespace content | 318 } // namespace content |
OLD | NEW |