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

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

Issue 2688883002: Revert [MacViews] Implemented text context menu (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
191 void TestRenderWidgetHostView::SpeakSelection() { 195 void TestRenderWidgetHostView::SpeakSelection() {
192 } 196 }
193 197
198 bool TestRenderWidgetHostView::IsSpeaking() const {
199 return false;
200 }
201
202 void TestRenderWidgetHostView::StopSpeaking() {}
203
194 #endif 204 #endif
195 205
196 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { 206 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
197 return gfx::Rect(); 207 return gfx::Rect();
198 } 208 }
199 209
200 void TestRenderWidgetHostView::OnSwapCompositorFrame( 210 void TestRenderWidgetHostView::OnSwapCompositorFrame(
201 uint32_t compositor_frame_sink_id, 211 uint32_t compositor_frame_sink_id,
202 cc::CompositorFrame frame) { 212 cc::CompositorFrame frame) {
203 did_swap_compositor_frame_ = true; 213 did_swap_compositor_frame_ = true;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 340
331 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 341 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
332 return contents()->GetMainFrame(); 342 return contents()->GetMainFrame();
333 } 343 }
334 344
335 TestWebContents* RenderViewHostImplTestHarness::contents() { 345 TestWebContents* RenderViewHostImplTestHarness::contents() {
336 return static_cast<TestWebContents*>(web_contents()); 346 return static_cast<TestWebContents*>(web_contents());
337 } 347 }
338 348
339 } // namespace content 349 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698