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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

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
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_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 10
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 const gfx::Rect& src_subrect, 1243 const gfx::Rect& src_subrect,
1244 const gfx::Size& dst_size, 1244 const gfx::Size& dst_size,
1245 const ReadbackRequestCallback& callback, 1245 const ReadbackRequestCallback& callback,
1246 const SkColorType preferred_color_type) { 1246 const SkColorType preferred_color_type) {
1247 DCHECK(delegated_frame_host_); 1247 DCHECK(delegated_frame_host_);
1248 delegated_frame_host_->CopyFromCompositingSurface( 1248 delegated_frame_host_->CopyFromCompositingSurface(
1249 src_subrect, dst_size, callback, preferred_color_type); 1249 src_subrect, dst_size, callback, preferred_color_type);
1250 } 1250 }
1251 1251
1252 void RenderWidgetHostViewMac::CopyFromCompositingSurfaceToVideoFrame( 1252 void RenderWidgetHostViewMac::CopyFromCompositingSurfaceToVideoFrame(
1253 const gfx::Rect& src_subrect, 1253 const gfx::Rect& src_subrect,
1254 const scoped_refptr<media::VideoFrame>& target, 1254 const scoped_refptr<media::VideoFrame>& target,
1255 const base::Callback<void(bool)>& callback) { 1255 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
1256 DCHECK(delegated_frame_host_); 1256 DCHECK(delegated_frame_host_);
1257 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame( 1257 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame(
1258 src_subrect, target, callback); 1258 src_subrect, target, callback);
1259 } 1259 }
1260 1260
1261 bool RenderWidgetHostViewMac::CanCopyToVideoFrame() const { 1261 bool RenderWidgetHostViewMac::CanCopyToVideoFrame() const {
1262 DCHECK(delegated_frame_host_); 1262 DCHECK(delegated_frame_host_);
1263 return delegated_frame_host_->CanCopyToVideoFrame(); 1263 return delegated_frame_host_->CanCopyToVideoFrame();
1264 } 1264 }
1265 1265
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
3441 3441
3442 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3442 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3443 // regions that are not draggable. (See ControlRegionView in 3443 // regions that are not draggable. (See ControlRegionView in
3444 // native_app_window_cocoa.mm). This requires the render host view to be 3444 // native_app_window_cocoa.mm). This requires the render host view to be
3445 // draggable by default. 3445 // draggable by default.
3446 - (BOOL)mouseDownCanMoveWindow { 3446 - (BOOL)mouseDownCanMoveWindow {
3447 return YES; 3447 return YES;
3448 } 3448 }
3449 3449
3450 @end 3450 @end
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698