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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 #endif | 189 #endif |
190 | 190 |
191 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 191 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
192 return gfx::Rect(); | 192 return gfx::Rect(); |
193 } | 193 } |
194 | 194 |
195 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 195 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
196 uint32_t output_surface_id, | 196 uint32_t output_surface_id, |
197 std::unique_ptr<cc::CompositorFrame> frame) { | 197 cc::CompositorFrame frame) { |
198 did_swap_compositor_frame_ = true; | 198 did_swap_compositor_frame_ = true; |
199 } | 199 } |
200 | 200 |
201 bool TestRenderWidgetHostView::LockMouse() { | 201 bool TestRenderWidgetHostView::LockMouse() { |
202 return false; | 202 return false; |
203 } | 203 } |
204 | 204 |
205 void TestRenderWidgetHostView::UnlockMouse() { | 205 void TestRenderWidgetHostView::UnlockMouse() { |
206 } | 206 } |
207 | 207 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 329 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
330 return contents()->GetMainFrame(); | 330 return contents()->GetMainFrame(); |
331 } | 331 } |
332 | 332 |
333 TestWebContents* RenderViewHostImplTestHarness::contents() { | 333 TestWebContents* RenderViewHostImplTestHarness::contents() { |
334 return static_cast<TestWebContents*>(web_contents()); | 334 return static_cast<TestWebContents*>(web_contents()); |
335 } | 335 } |
336 | 336 |
337 } // namespace content | 337 } // namespace content |
OLD | NEW |