| 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 "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 is_showing_(false), | 54 is_showing_(false), |
| 55 is_occluded_(false), | 55 is_occluded_(false), |
| 56 did_swap_compositor_frame_(false) { | 56 did_swap_compositor_frame_(false) { |
| 57 rwh_->SetView(this); | 57 rwh_->SetView(this); |
| 58 } | 58 } |
| 59 | 59 |
| 60 TestRenderWidgetHostView::~TestRenderWidgetHostView() { | 60 TestRenderWidgetHostView::~TestRenderWidgetHostView() { |
| 61 } | 61 } |
| 62 | 62 |
| 63 RenderWidgetHost* TestRenderWidgetHostView::GetRenderWidgetHost() const { | 63 RenderWidgetHost* TestRenderWidgetHostView::GetRenderWidgetHost() const { |
| 64 return NULL; | 64 return rwh_; |
| 65 } | 65 } |
| 66 | 66 |
| 67 gfx::Vector2dF TestRenderWidgetHostView::GetLastScrollOffset() const { | 67 gfx::Vector2dF TestRenderWidgetHostView::GetLastScrollOffset() const { |
| 68 return gfx::Vector2dF(); | 68 return gfx::Vector2dF(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 gfx::NativeView TestRenderWidgetHostView::GetNativeView() const { | 71 gfx::NativeView TestRenderWidgetHostView::GetNativeView() const { |
| 72 return NULL; | 72 return NULL; |
| 73 } | 73 } |
| 74 | 74 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 330 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 331 return contents()->GetMainFrame(); | 331 return contents()->GetMainFrame(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 TestWebContents* RenderViewHostImplTestHarness::contents() { | 334 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 335 return static_cast<TestWebContents*>(web_contents()); | 335 return static_cast<TestWebContents*>(web_contents()); |
| 336 } | 336 } |
| 337 | 337 |
| 338 } // namespace content | 338 } // namespace content |
| OLD | NEW |