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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 void TestRenderWidgetHostView::StopSpeaking() { | 209 void TestRenderWidgetHostView::StopSpeaking() { |
210 } | 210 } |
211 | 211 |
212 #endif | 212 #endif |
213 | 213 |
214 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 214 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
215 return gfx::Rect(); | 215 return gfx::Rect(); |
216 } | 216 } |
217 | 217 |
218 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 218 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
219 uint32_t output_surface_id, | 219 uint32_t compositor_frame_sink_id, |
220 cc::CompositorFrame frame) { | 220 cc::CompositorFrame frame) { |
221 did_swap_compositor_frame_ = true; | 221 did_swap_compositor_frame_ = true; |
222 } | 222 } |
223 | 223 |
224 bool TestRenderWidgetHostView::LockMouse() { | 224 bool TestRenderWidgetHostView::LockMouse() { |
225 return false; | 225 return false; |
226 } | 226 } |
227 | 227 |
228 void TestRenderWidgetHostView::UnlockMouse() { | 228 void TestRenderWidgetHostView::UnlockMouse() { |
229 } | 229 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 351 |
352 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 352 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
353 return contents()->GetMainFrame(); | 353 return contents()->GetMainFrame(); |
354 } | 354 } |
355 | 355 |
356 TestWebContents* RenderViewHostImplTestHarness::contents() { | 356 TestWebContents* RenderViewHostImplTestHarness::contents() { |
357 return static_cast<TestWebContents*>(web_contents()); | 357 return static_cast<TestWebContents*>(web_contents()); |
358 } | 358 } |
359 | 359 |
360 } // namespace content | 360 } // namespace content |
OLD | NEW |