| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 void TestRenderWidgetHostView::StopSpeaking() {} | 194 void TestRenderWidgetHostView::StopSpeaking() {} |
| 195 | 195 |
| 196 #endif | 196 #endif |
| 197 | 197 |
| 198 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 198 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
| 199 return gfx::Rect(); | 199 return gfx::Rect(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void TestRenderWidgetHostView::DidCreateNewRendererCompositorFrameSink( | 202 void TestRenderWidgetHostView::DidCreateNewRendererCompositorFrameSink( |
| 203 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink) { | 203 viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink, |
| 204 viz::mojom::TargetFrameForInputDelegate* input_delegate) { |
| 204 did_change_compositor_frame_sink_ = true; | 205 did_change_compositor_frame_sink_ = true; |
| 205 } | 206 } |
| 206 | 207 |
| 207 void TestRenderWidgetHostView::SubmitCompositorFrame( | 208 void TestRenderWidgetHostView::SubmitCompositorFrame( |
| 208 const viz::LocalSurfaceId& local_surface_id, | 209 const viz::LocalSurfaceId& local_surface_id, |
| 209 cc::CompositorFrame frame) { | 210 cc::CompositorFrame frame) { |
| 210 did_swap_compositor_frame_ = true; | 211 did_swap_compositor_frame_ = true; |
| 211 } | 212 } |
| 212 | 213 |
| 213 bool TestRenderWidgetHostView::LockMouse() { | 214 bool TestRenderWidgetHostView::LockMouse() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 338 |
| 338 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 339 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 339 return contents()->GetMainFrame(); | 340 return contents()->GetMainFrame(); |
| 340 } | 341 } |
| 341 | 342 |
| 342 TestWebContents* RenderViewHostImplTestHarness::contents() { | 343 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 343 return static_cast<TestWebContents*>(web_contents()); | 344 return static_cast<TestWebContents*>(web_contents()); |
| 344 } | 345 } |
| 345 | 346 |
| 346 } // namespace content | 347 } // namespace content |
| OLD | NEW |