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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 void TestRenderWidgetHostView::WasOccluded() { | 115 void TestRenderWidgetHostView::WasOccluded() { |
116 is_occluded_ = true; | 116 is_occluded_ = true; |
117 } | 117 } |
118 | 118 |
119 void TestRenderWidgetHostView::RenderProcessGone(base::TerminationStatus status, | 119 void TestRenderWidgetHostView::RenderProcessGone(base::TerminationStatus status, |
120 int error_code) { | 120 int error_code) { |
121 delete this; | 121 delete this; |
122 } | 122 } |
123 | 123 |
124 void TestRenderWidgetHostView::Destroy() { delete this; } | 124 void TestRenderWidgetHostView::Destroy() { |
| 125 NotifyHostDelegateAboutShutdown(); |
| 126 delete this; |
| 127 } |
125 | 128 |
126 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { | 129 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { |
127 return gfx::Rect(); | 130 return gfx::Rect(); |
128 } | 131 } |
129 | 132 |
130 void TestRenderWidgetHostView::CopyFromCompositingSurface( | 133 void TestRenderWidgetHostView::CopyFromCompositingSurface( |
131 const gfx::Rect& src_subrect, | 134 const gfx::Rect& src_subrect, |
132 const gfx::Size& dst_size, | 135 const gfx::Size& dst_size, |
133 const ReadbackRequestCallback& callback, | 136 const ReadbackRequestCallback& callback, |
134 const SkColorType preferred_color_type) { | 137 const SkColorType preferred_color_type) { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 314 |
312 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 315 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
313 return contents()->GetMainFrame(); | 316 return contents()->GetMainFrame(); |
314 } | 317 } |
315 | 318 |
316 TestWebContents* RenderViewHostImplTestHarness::contents() { | 319 TestWebContents* RenderViewHostImplTestHarness::contents() { |
317 return static_cast<TestWebContents*>(web_contents()); | 320 return static_cast<TestWebContents*>(web_contents()); |
318 } | 321 } |
319 | 322 |
320 } // namespace content | 323 } // namespace content |
OLD | NEW |