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