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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests 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
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/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 void RenderWidgetHostViewAura::CopyFromCompositingSurface( 1100 void RenderWidgetHostViewAura::CopyFromCompositingSurface(
1101 const gfx::Rect& src_subrect, 1101 const gfx::Rect& src_subrect,
1102 const gfx::Size& dst_size, 1102 const gfx::Size& dst_size,
1103 const ReadbackRequestCallback& callback, 1103 const ReadbackRequestCallback& callback,
1104 const SkColorType preferred_color_type) { 1104 const SkColorType preferred_color_type) {
1105 delegated_frame_host_->CopyFromCompositingSurface( 1105 delegated_frame_host_->CopyFromCompositingSurface(
1106 src_subrect, dst_size, callback, preferred_color_type); 1106 src_subrect, dst_size, callback, preferred_color_type);
1107 } 1107 }
1108 1108
1109 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame( 1109 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame(
1110 const gfx::Rect& src_subrect, 1110 const gfx::Rect& src_subrect,
1111 const scoped_refptr<media::VideoFrame>& target, 1111 const scoped_refptr<media::VideoFrame>& target,
1112 const base::Callback<void(bool)>& callback) { 1112 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
1113 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame( 1113 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame(
1114 src_subrect, target, callback); 1114 src_subrect, target, callback);
1115 } 1115 }
1116 1116
1117 bool RenderWidgetHostViewAura::CanCopyToVideoFrame() const { 1117 bool RenderWidgetHostViewAura::CanCopyToVideoFrame() const {
1118 return delegated_frame_host_->CanCopyToVideoFrame(); 1118 return delegated_frame_host_->CanCopyToVideoFrame();
1119 } 1119 }
1120 1120
1121 void RenderWidgetHostViewAura::BeginFrameSubscription( 1121 void RenderWidgetHostViewAura::BeginFrameSubscription(
1122 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) { 1122 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) {
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 2884
2885 //////////////////////////////////////////////////////////////////////////////// 2885 ////////////////////////////////////////////////////////////////////////////////
2886 // RenderWidgetHostViewBase, public: 2886 // RenderWidgetHostViewBase, public:
2887 2887
2888 // static 2888 // static
2889 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2889 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2890 GetScreenInfoForWindow(results, NULL); 2890 GetScreenInfoForWindow(results, NULL);
2891 } 2891 }
2892 2892
2893 } // namespace content 2893 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698