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

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

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable cursor rendering on windows until resources are available Created 5 years, 1 month 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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
10 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 10 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 const gfx::Rect& src_subrect, 130 const gfx::Rect& src_subrect,
131 const gfx::Size& dst_size, 131 const gfx::Size& dst_size,
132 const ReadbackRequestCallback& callback, 132 const ReadbackRequestCallback& callback,
133 const SkColorType preferred_color_type) { 133 const SkColorType preferred_color_type) {
134 callback.Run(SkBitmap(), content::READBACK_FAILED); 134 callback.Run(SkBitmap(), content::READBACK_FAILED);
135 } 135 }
136 136
137 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( 137 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame(
138 const gfx::Rect& src_subrect, 138 const gfx::Rect& src_subrect,
139 const scoped_refptr<media::VideoFrame>& target, 139 const scoped_refptr<media::VideoFrame>& target,
140 const base::Callback<void(bool)>& callback) { 140 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
141 callback.Run(false); 141 callback.Run(gfx::Rect(), false);
142 } 142 }
143 143
144 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { 144 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const {
145 return false; 145 return false;
146 } 146 }
147 147
148 bool TestRenderWidgetHostView::HasAcceleratedSurface( 148 bool TestRenderWidgetHostView::HasAcceleratedSurface(
149 const gfx::Size& desired_size) { 149 const gfx::Size& desired_size) {
150 return false; 150 return false;
151 } 151 }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 335 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
336 return contents()->GetMainFrame(); 336 return contents()->GetMainFrame();
337 } 337 }
338 338
339 TestWebContents* RenderViewHostImplTestHarness::contents() { 339 TestWebContents* RenderViewHostImplTestHarness::contents() {
340 return static_cast<TestWebContents*>(web_contents()); 340 return static_cast<TestWebContents*>(web_contents());
341 } 341 }
342 342
343 } // namespace content 343 } // 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