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/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
6 #include "content/browser/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
7 #include "content/browser/site_instance_impl.h" | 7 #include "content/browser/site_instance_impl.h" |
8 #include "content/browser/web_contents/navigation_controller_impl.h" | 8 #include "content/browser/web_contents/navigation_controller_impl.h" |
9 #include "content/browser/web_contents/test_web_contents.h" | 9 #include "content/browser/web_contents/test_web_contents.h" |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 93 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
94 return gfx::Rect(); | 94 return gfx::Rect(); |
95 } | 95 } |
96 | 96 |
97 BackingStore* TestRenderWidgetHostView::AllocBackingStore( | 97 BackingStore* TestRenderWidgetHostView::AllocBackingStore( |
98 const gfx::Size& size) { | 98 const gfx::Size& size) { |
99 return new TestBackingStore(rwh_, size); | 99 return new TestBackingStore(rwh_, size); |
100 } | 100 } |
101 | 101 |
102 void TestRenderWidgetHostView::CopyFromCompositingSurface( | 102 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
103 const gfx::Size& size, | 103 const gfx::Rect& src_subrect, |
| 104 const gfx::Size& dst_size, |
104 const base::Callback<void(bool)>& callback, | 105 const base::Callback<void(bool)>& callback, |
105 skia::PlatformCanvas* output) { | 106 skia::PlatformCanvas* output) { |
106 callback.Run(false); | 107 callback.Run(false); |
107 } | 108 } |
108 | 109 |
109 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { | 110 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { |
110 } | 111 } |
111 | 112 |
112 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | 113 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( |
113 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 114 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 337 |
337 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 338 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
338 return static_cast<TestRenderViewHost*>(active_rvh()); | 339 return static_cast<TestRenderViewHost*>(active_rvh()); |
339 } | 340 } |
340 | 341 |
341 TestWebContents* RenderViewHostImplTestHarness::contents() { | 342 TestWebContents* RenderViewHostImplTestHarness::contents() { |
342 return static_cast<TestWebContents*>(web_contents()); | 343 return static_cast<TestWebContents*>(web_contents()); |
343 } | 344 } |
344 | 345 |
345 } // namespace content | 346 } // namespace content |
OLD | NEW |