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 ui::AcceleratedWidgetMac* TestRenderWidgetHostView::GetAcceleratedWidgetMac() | 182 ui::AcceleratedWidgetMac* TestRenderWidgetHostView::GetAcceleratedWidgetMac() |
183 const { | 183 const { |
184 return nullptr; | 184 return nullptr; |
185 } | 185 } |
186 | 186 |
187 void TestRenderWidgetHostView::SetActive(bool active) { | 187 void TestRenderWidgetHostView::SetActive(bool active) { |
188 // <viettrungluu@gmail.com>: Do I need to do anything here? | 188 // <viettrungluu@gmail.com>: Do I need to do anything here? |
189 } | 189 } |
190 | 190 |
191 bool TestRenderWidgetHostView::SupportsSpeech() const { | |
192 return false; | |
193 } | |
194 | |
195 void TestRenderWidgetHostView::SpeakSelection() { | 191 void TestRenderWidgetHostView::SpeakSelection() { |
196 } | 192 } |
197 | 193 |
198 bool TestRenderWidgetHostView::IsSpeaking() const { | |
199 return false; | |
200 } | |
201 | |
202 void TestRenderWidgetHostView::StopSpeaking() { | |
203 } | |
204 | |
205 #endif | 194 #endif |
206 | 195 |
207 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 196 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
208 return gfx::Rect(); | 197 return gfx::Rect(); |
209 } | 198 } |
210 | 199 |
211 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 200 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
212 uint32_t compositor_frame_sink_id, | 201 uint32_t compositor_frame_sink_id, |
213 cc::CompositorFrame frame) { | 202 cc::CompositorFrame frame) { |
214 did_swap_compositor_frame_ = true; | 203 did_swap_compositor_frame_ = true; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 330 |
342 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 331 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
343 return contents()->GetMainFrame(); | 332 return contents()->GetMainFrame(); |
344 } | 333 } |
345 | 334 |
346 TestWebContents* RenderViewHostImplTestHarness::contents() { | 335 TestWebContents* RenderViewHostImplTestHarness::contents() { |
347 return static_cast<TestWebContents*>(web_contents()); | 336 return static_cast<TestWebContents*>(web_contents()); |
348 } | 337 } |
349 | 338 |
350 } // namespace content | 339 } // namespace content |
OLD | NEW |