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/browser/renderer_host/test_render_view_host.h" | 5 #include "content/browser/renderer_host/test_render_view_host.h" |
6 | 6 |
7 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 7 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
8 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 8 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
9 #include "content/browser/renderer_host/test_backing_store.h" | 9 #include "content/browser/renderer_host/test_backing_store.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 | 101 |
102 void TestRenderWidgetHostView::Hide() { | 102 void TestRenderWidgetHostView::Hide() { |
103 is_showing_ = false; | 103 is_showing_ = false; |
104 } | 104 } |
105 | 105 |
106 bool TestRenderWidgetHostView::IsShowing() { | 106 bool TestRenderWidgetHostView::IsShowing() { |
107 return is_showing_; | 107 return is_showing_; |
108 } | 108 } |
109 | 109 |
110 void TestRenderWidgetHostView::RenderViewGone(base::TerminationStatus status, | 110 void TestRenderWidgetHostView::RenderProcessGone(base::TerminationStatus status, |
111 int error_code) { | 111 int error_code) { |
112 delete this; | 112 delete this; |
113 } | 113 } |
114 | 114 |
115 void TestRenderWidgetHostView::Destroy() { delete this; } | 115 void TestRenderWidgetHostView::Destroy() { delete this; } |
116 | 116 |
117 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 117 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
118 return gfx::Rect(); | 118 return gfx::Rect(); |
119 } | 119 } |
120 | 120 |
121 BackingStore* TestRenderWidgetHostView::AllocBackingStore( | 121 BackingStore* TestRenderWidgetHostView::AllocBackingStore( |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 424 |
425 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 425 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
426 return static_cast<TestRenderViewHost*>(active_rvh()); | 426 return static_cast<TestRenderViewHost*>(active_rvh()); |
427 } | 427 } |
428 | 428 |
429 TestWebContents* RenderViewHostImplTestHarness::contents() { | 429 TestWebContents* RenderViewHostImplTestHarness::contents() { |
430 return static_cast<TestWebContents*>(web_contents()); | 430 return static_cast<TestWebContents*>(web_contents()); |
431 } | 431 } |
432 | 432 |
433 } // namespace content | 433 } // namespace content |
OLD | NEW |