| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void TestRenderWidgetHostView::StopSpeaking() {} | 166 void TestRenderWidgetHostView::StopSpeaking() {} |
| 167 | 167 |
| 168 #endif | 168 #endif |
| 169 | 169 |
| 170 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 170 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
| 171 return gfx::Rect(); | 171 return gfx::Rect(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 174 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
| 175 uint32_t compositor_frame_sink_id, | 175 uint32_t compositor_frame_sink_id, |
| 176 const cc::LocalSurfaceId& local_surface_id, |
| 176 cc::CompositorFrame frame) { | 177 cc::CompositorFrame frame) { |
| 177 did_swap_compositor_frame_ = true; | 178 did_swap_compositor_frame_ = true; |
| 178 } | 179 } |
| 179 | 180 |
| 180 bool TestRenderWidgetHostView::LockMouse() { | 181 bool TestRenderWidgetHostView::LockMouse() { |
| 181 return false; | 182 return false; |
| 182 } | 183 } |
| 183 | 184 |
| 184 void TestRenderWidgetHostView::UnlockMouse() { | 185 void TestRenderWidgetHostView::UnlockMouse() { |
| 185 } | 186 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 305 |
| 305 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 306 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 306 return contents()->GetMainFrame(); | 307 return contents()->GetMainFrame(); |
| 307 } | 308 } |
| 308 | 309 |
| 309 TestWebContents* RenderViewHostImplTestHarness::contents() { | 310 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 310 return static_cast<TestWebContents*>(web_contents()); | 311 return static_cast<TestWebContents*>(web_contents()); |
| 311 } | 312 } |
| 312 | 313 |
| 313 } // namespace content | 314 } // namespace content |
| OLD | NEW |