Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: content/test/test_render_view_host.cc

Issue 2164483006: [MacViews] Implemented text context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for tapted 2 Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 ui::AcceleratedWidgetMac* TestRenderWidgetHostView::GetAcceleratedWidgetMac() 183 ui::AcceleratedWidgetMac* TestRenderWidgetHostView::GetAcceleratedWidgetMac()
184 const { 184 const {
185 return nullptr; 185 return nullptr;
186 } 186 }
187 187
188 void TestRenderWidgetHostView::SetActive(bool active) { 188 void TestRenderWidgetHostView::SetActive(bool active) {
189 // <viettrungluu@gmail.com>: Do I need to do anything here? 189 // <viettrungluu@gmail.com>: Do I need to do anything here?
190 } 190 }
191 191
192 bool TestRenderWidgetHostView::SupportsSpeech() const {
193 return false;
194 }
195
196 void TestRenderWidgetHostView::SpeakSelection() { 192 void TestRenderWidgetHostView::SpeakSelection() {
197 } 193 }
198 194
199 bool TestRenderWidgetHostView::IsSpeaking() const {
200 return false;
201 }
202
203 void TestRenderWidgetHostView::StopSpeaking() {
204 }
205
206 #endif 195 #endif
207 196
208 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { 197 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
209 return gfx::Rect(); 198 return gfx::Rect();
210 } 199 }
211 200
212 void TestRenderWidgetHostView::OnSwapCompositorFrame( 201 void TestRenderWidgetHostView::OnSwapCompositorFrame(
213 uint32_t compositor_frame_sink_id, 202 uint32_t compositor_frame_sink_id,
214 cc::CompositorFrame frame) { 203 cc::CompositorFrame frame) {
215 did_swap_compositor_frame_ = true; 204 did_swap_compositor_frame_ = true;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 328
340 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 329 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
341 return contents()->GetMainFrame(); 330 return contents()->GetMainFrame();
342 } 331 }
343 332
344 TestWebContents* RenderViewHostImplTestHarness::contents() { 333 TestWebContents* RenderViewHostImplTestHarness::contents() {
345 return static_cast<TestWebContents*>(web_contents()); 334 return static_cast<TestWebContents*>(web_contents());
346 } 335 }
347 336
348 } // namespace content 337 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698