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

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

Issue 1952003002: Mac: Plumb AcceleratedWidgetMac through RWHVMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move out of base Created 4 years, 7 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') | no next file » | 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698