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 } |
208 #endif | 213 #endif |
209 | 214 |
210 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, | 215 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, |
211 scoped_ptr<RenderWidgetHostImpl> widget, | 216 scoped_ptr<RenderWidgetHostImpl> widget, |
212 RenderViewHostDelegate* delegate, | 217 RenderViewHostDelegate* delegate, |
213 int32_t main_frame_routing_id, | 218 int32_t main_frame_routing_id, |
214 bool swapped_out) | 219 bool swapped_out) |
215 : RenderViewHostImpl(instance, | 220 : RenderViewHostImpl(instance, |
216 std::move(widget), | 221 std::move(widget), |
217 delegate, | 222 delegate, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 327 |
323 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 328 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
324 return contents()->GetMainFrame(); | 329 return contents()->GetMainFrame(); |
325 } | 330 } |
326 | 331 |
327 TestWebContents* RenderViewHostImplTestHarness::contents() { | 332 TestWebContents* RenderViewHostImplTestHarness::contents() { |
328 return static_cast<TestWebContents*>(web_contents()); | 333 return static_cast<TestWebContents*>(web_contents()); |
329 } | 334 } |
330 | 335 |
331 } // namespace content | 336 } // namespace content |
OLD | NEW |