| 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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 10 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 10 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 185 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
| 186 return gfx::Rect(); | 186 return gfx::Rect(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 189 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
| 190 uint32 output_surface_id, | 190 uint32 output_surface_id, |
| 191 scoped_ptr<cc::CompositorFrame> frame) { | 191 scoped_ptr<cc::CompositorFrame> frame) { |
| 192 did_swap_compositor_frame_ = true; | 192 did_swap_compositor_frame_ = true; |
| 193 } | 193 } |
| 194 | 194 |
| 195 | |
| 196 gfx::GLSurfaceHandle TestRenderWidgetHostView::GetCompositingSurface() { | |
| 197 return gfx::GLSurfaceHandle(); | |
| 198 } | |
| 199 | |
| 200 bool TestRenderWidgetHostView::LockMouse() { | 195 bool TestRenderWidgetHostView::LockMouse() { |
| 201 return false; | 196 return false; |
| 202 } | 197 } |
| 203 | 198 |
| 204 void TestRenderWidgetHostView::UnlockMouse() { | 199 void TestRenderWidgetHostView::UnlockMouse() { |
| 205 } | 200 } |
| 206 | 201 |
| 207 #if defined(OS_WIN) | 202 #if defined(OS_WIN) |
| 208 void TestRenderWidgetHostView::SetParentNativeViewAccessible( | 203 void TestRenderWidgetHostView::SetParentNativeViewAccessible( |
| 209 gfx::NativeViewAccessible accessible_parent) { | 204 gfx::NativeViewAccessible accessible_parent) { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 333 |
| 339 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 334 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 340 return contents()->GetMainFrame(); | 335 return contents()->GetMainFrame(); |
| 341 } | 336 } |
| 342 | 337 |
| 343 TestWebContents* RenderViewHostImplTestHarness::contents() { | 338 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 344 return static_cast<TestWebContents*>(web_contents()); | 339 return static_cast<TestWebContents*>(web_contents()); |
| 345 } | 340 } |
| 346 | 341 |
| 347 } // namespace content | 342 } // namespace content |
| OLD | NEW |