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