| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 void TestRenderWidgetHostView::StopSpeaking() {} | 176 void TestRenderWidgetHostView::StopSpeaking() {} |
| 177 | 177 |
| 178 #endif | 178 #endif |
| 179 | 179 |
| 180 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 180 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
| 181 return gfx::Rect(); | 181 return gfx::Rect(); |
| 182 } | 182 } |
| 183 | 183 |
| 184 void TestRenderWidgetHostView::DidCreateNewRendererCompositorFrameSink( | 184 void TestRenderWidgetHostView::DidCreateNewRendererCompositorFrameSink() { |
| 185 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) { | |
| 186 did_change_compositor_frame_sink_ = true; | 185 did_change_compositor_frame_sink_ = true; |
| 187 } | 186 } |
| 188 | 187 |
| 189 void TestRenderWidgetHostView::SubmitCompositorFrame( | 188 void TestRenderWidgetHostView::SubmitCompositorFrame( |
| 190 const cc::LocalSurfaceId& local_surface_id, | 189 const cc::LocalSurfaceId& local_surface_id, |
| 191 cc::CompositorFrame frame) { | 190 cc::CompositorFrame frame) { |
| 192 did_swap_compositor_frame_ = true; | 191 did_swap_compositor_frame_ = true; |
| 193 } | 192 } |
| 194 | 193 |
| 195 bool TestRenderWidgetHostView::LockMouse() { | 194 bool TestRenderWidgetHostView::LockMouse() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 318 |
| 320 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 319 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 321 return contents()->GetMainFrame(); | 320 return contents()->GetMainFrame(); |
| 322 } | 321 } |
| 323 | 322 |
| 324 TestWebContents* RenderViewHostImplTestHarness::contents() { | 323 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 325 return static_cast<TestWebContents*>(web_contents()); | 324 return static_cast<TestWebContents*>(web_contents()); |
| 326 } | 325 } |
| 327 | 326 |
| 328 } // namespace content | 327 } // namespace content |
| OLD | NEW |