| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 bool TestRenderWidgetHostView::IsSpeaking() const { | 182 bool TestRenderWidgetHostView::IsSpeaking() const { |
| 183 return false; | 183 return false; |
| 184 } | 184 } |
| 185 | 185 |
| 186 void TestRenderWidgetHostView::StopSpeaking() { | 186 void TestRenderWidgetHostView::StopSpeaking() { |
| 187 } | 187 } |
| 188 | 188 |
| 189 #endif | 189 #endif |
| 190 | 190 |
| 191 bool TestRenderWidgetHostView::GetScreenColorProfile( | |
| 192 std::vector<char>* color_profile) { | |
| 193 DCHECK(color_profile->empty()); | |
| 194 return false; | |
| 195 } | |
| 196 | |
| 197 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 191 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
| 198 return gfx::Rect(); | 192 return gfx::Rect(); |
| 199 } | 193 } |
| 200 | 194 |
| 201 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 195 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
| 202 uint32_t output_surface_id, | 196 uint32_t output_surface_id, |
| 203 std::unique_ptr<cc::CompositorFrame> frame) { | 197 std::unique_ptr<cc::CompositorFrame> frame) { |
| 204 did_swap_compositor_frame_ = true; | 198 did_swap_compositor_frame_ = true; |
| 205 } | 199 } |
| 206 | 200 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 328 |
| 335 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 329 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 336 return contents()->GetMainFrame(); | 330 return contents()->GetMainFrame(); |
| 337 } | 331 } |
| 338 | 332 |
| 339 TestWebContents* RenderViewHostImplTestHarness::contents() { | 333 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 340 return static_cast<TestWebContents*>(web_contents()); | 334 return static_cast<TestWebContents*>(web_contents()); |
| 341 } | 335 } |
| 342 | 336 |
| 343 } // namespace content | 337 } // namespace content |
| OLD | NEW |