| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 88 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
| 89 return gfx::Rect(); | 89 return gfx::Rect(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 BackingStore* TestRenderWidgetHostView::AllocBackingStore( | 92 BackingStore* TestRenderWidgetHostView::AllocBackingStore( |
| 93 const gfx::Size& size) { | 93 const gfx::Size& size) { |
| 94 return new TestBackingStore(rwh_, size); | 94 return new TestBackingStore(rwh_, size); |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool TestRenderWidgetHostView::CopyFromCompositingSurface( | 97 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
| 98 const gfx::Size& size, | |
| 99 skia::PlatformCanvas* output) { | |
| 100 return false; | |
| 101 } | |
| 102 | |
| 103 void TestRenderWidgetHostView::AsyncCopyFromCompositingSurface( | |
| 104 const gfx::Size& size, | 98 const gfx::Size& size, |
| 105 skia::PlatformCanvas* output, | 99 skia::PlatformCanvas* output, |
| 106 base::Callback<void(bool)> callback) { | 100 base::Callback<void(bool)> callback) { |
| 107 callback.Run(false); | 101 callback.Run(false); |
| 108 } | 102 } |
| 109 | 103 |
| 110 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { | 104 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { |
| 111 } | 105 } |
| 112 | 106 |
| 113 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | 107 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 320 |
| 327 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 321 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
| 328 return static_cast<TestRenderViewHost*>(active_rvh()); | 322 return static_cast<TestRenderViewHost*>(active_rvh()); |
| 329 } | 323 } |
| 330 | 324 |
| 331 TestWebContents* RenderViewHostImplTestHarness::contents() { | 325 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 332 return static_cast<TestWebContents*>(web_contents()); | 326 return static_cast<TestWebContents*>(web_contents()); |
| 333 } | 327 } |
| 334 | 328 |
| 335 } // namespace content | 329 } // namespace content |
| OLD | NEW |