| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 10 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 return false; | 198 return false; |
| 199 } | 199 } |
| 200 | 200 |
| 201 void TestRenderWidgetHostView::UnlockMouse() { | 201 void TestRenderWidgetHostView::UnlockMouse() { |
| 202 } | 202 } |
| 203 | 203 |
| 204 #if defined(OS_WIN) | 204 #if defined(OS_WIN) |
| 205 void TestRenderWidgetHostView::SetParentNativeViewAccessible( | 205 void TestRenderWidgetHostView::SetParentNativeViewAccessible( |
| 206 gfx::NativeViewAccessible accessible_parent) { | 206 gfx::NativeViewAccessible accessible_parent) { |
| 207 } | 207 } |
| 208 | |
| 209 gfx::NativeViewId TestRenderWidgetHostView::GetParentForWindowlessPlugin() | |
| 210 const { | |
| 211 return 0; | |
| 212 } | |
| 213 #endif | 208 #endif |
| 214 | 209 |
| 215 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, | 210 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, |
| 216 scoped_ptr<RenderWidgetHostImpl> widget, | 211 scoped_ptr<RenderWidgetHostImpl> widget, |
| 217 RenderViewHostDelegate* delegate, | 212 RenderViewHostDelegate* delegate, |
| 218 int32_t main_frame_routing_id, | 213 int32_t main_frame_routing_id, |
| 219 bool swapped_out) | 214 bool swapped_out) |
| 220 : RenderViewHostImpl(instance, | 215 : RenderViewHostImpl(instance, |
| 221 std::move(widget), | 216 std::move(widget), |
| 222 delegate, | 217 delegate, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 322 |
| 328 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 323 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 329 return contents()->GetMainFrame(); | 324 return contents()->GetMainFrame(); |
| 330 } | 325 } |
| 331 | 326 |
| 332 TestWebContents* RenderViewHostImplTestHarness::contents() { | 327 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 333 return static_cast<TestWebContents*>(web_contents()); | 328 return static_cast<TestWebContents*>(web_contents()); |
| 334 } | 329 } |
| 335 | 330 |
| 336 } // namespace content | 331 } // namespace content |
| OLD | NEW |