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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 did_swap_compositor_frame_ = true; | 194 did_swap_compositor_frame_ = true; |
195 } | 195 } |
196 | 196 |
197 bool TestRenderWidgetHostView::LockMouse() { | 197 bool TestRenderWidgetHostView::LockMouse() { |
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) | |
205 void TestRenderWidgetHostView::SetParentNativeViewAccessible( | |
206 gfx::NativeViewAccessible accessible_parent) { | |
207 } | |
208 #endif | |
209 | |
210 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, | 204 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, |
211 scoped_ptr<RenderWidgetHostImpl> widget, | 205 scoped_ptr<RenderWidgetHostImpl> widget, |
212 RenderViewHostDelegate* delegate, | 206 RenderViewHostDelegate* delegate, |
213 int32_t main_frame_routing_id, | 207 int32_t main_frame_routing_id, |
214 bool swapped_out) | 208 bool swapped_out) |
215 : RenderViewHostImpl(instance, | 209 : RenderViewHostImpl(instance, |
216 std::move(widget), | 210 std::move(widget), |
217 delegate, | 211 delegate, |
218 main_frame_routing_id, | 212 main_frame_routing_id, |
219 swapped_out, | 213 swapped_out, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 316 |
323 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 317 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
324 return contents()->GetMainFrame(); | 318 return contents()->GetMainFrame(); |
325 } | 319 } |
326 | 320 |
327 TestWebContents* RenderViewHostImplTestHarness::contents() { | 321 TestWebContents* RenderViewHostImplTestHarness::contents() { |
328 return static_cast<TestWebContents*>(web_contents()); | 322 return static_cast<TestWebContents*>(web_contents()); |
329 } | 323 } |
330 | 324 |
331 } // namespace content | 325 } // namespace content |
OLD | NEW |