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

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: rebased 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
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
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
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