| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 return false; | 143 return false; |
| 144 } | 144 } |
| 145 | 145 |
| 146 bool TestRenderWidgetHostView::HasAcceleratedSurface( | 146 bool TestRenderWidgetHostView::HasAcceleratedSurface( |
| 147 const gfx::Size& desired_size) { | 147 const gfx::Size& desired_size) { |
| 148 return false; | 148 return false; |
| 149 } | 149 } |
| 150 | 150 |
| 151 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
| 152 | 152 |
| 153 ui::AcceleratedWidgetMac* TestRenderWidgetHostView::GetAcceleratedWidgetMac() |
| 154 const { |
| 155 return nullptr; |
| 156 } |
| 157 |
| 153 void TestRenderWidgetHostView::SetActive(bool active) { | 158 void TestRenderWidgetHostView::SetActive(bool active) { |
| 154 // <viettrungluu@gmail.com>: Do I need to do anything here? | 159 // <viettrungluu@gmail.com>: Do I need to do anything here? |
| 155 } | 160 } |
| 156 | 161 |
| 157 bool TestRenderWidgetHostView::SupportsSpeech() const { | 162 bool TestRenderWidgetHostView::SupportsSpeech() const { |
| 158 return false; | 163 return false; |
| 159 } | 164 } |
| 160 | 165 |
| 161 void TestRenderWidgetHostView::SpeakSelection() { | 166 void TestRenderWidgetHostView::SpeakSelection() { |
| 162 } | 167 } |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 314 |
| 310 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 315 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 311 return contents()->GetMainFrame(); | 316 return contents()->GetMainFrame(); |
| 312 } | 317 } |
| 313 | 318 |
| 314 TestWebContents* RenderViewHostImplTestHarness::contents() { | 319 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 315 return static_cast<TestWebContents*>(web_contents()); | 320 return static_cast<TestWebContents*>(web_contents()); |
| 316 } | 321 } |
| 317 | 322 |
| 318 } // namespace content | 323 } // namespace content |
| OLD | NEW |