OLD | NEW |
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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 ForwardMouseEvent(web_event); | 1176 ForwardMouseEvent(web_event); |
1177 } | 1177 } |
1178 | 1178 |
1179 bool RenderWidgetHostViewMac::IsPopup() const { | 1179 bool RenderWidgetHostViewMac::IsPopup() const { |
1180 return popup_type_ != blink::WebPopupTypeNone; | 1180 return popup_type_ != blink::WebPopupTypeNone; |
1181 } | 1181 } |
1182 | 1182 |
1183 void RenderWidgetHostViewMac::CopyFromCompositingSurface( | 1183 void RenderWidgetHostViewMac::CopyFromCompositingSurface( |
1184 const gfx::Rect& src_subrect, | 1184 const gfx::Rect& src_subrect, |
1185 const gfx::Size& dst_size, | 1185 const gfx::Size& dst_size, |
1186 const base::Callback<void(bool, const SkBitmap&)>& callback, | 1186 ReadbackRequestCallback& callback, |
1187 const SkColorType color_type) { | 1187 const SkColorType color_type) { |
1188 if (delegated_frame_host_) { | 1188 if (delegated_frame_host_) { |
1189 delegated_frame_host_->CopyFromCompositingSurface( | 1189 delegated_frame_host_->CopyFromCompositingSurface( |
1190 src_subrect, dst_size, callback, color_type); | 1190 src_subrect, dst_size, callback, color_type); |
1191 } | 1191 } |
1192 } | 1192 } |
1193 | 1193 |
1194 void RenderWidgetHostViewMac::CopyFromCompositingSurfaceToVideoFrame( | 1194 void RenderWidgetHostViewMac::CopyFromCompositingSurfaceToVideoFrame( |
1195 const gfx::Rect& src_subrect, | 1195 const gfx::Rect& src_subrect, |
1196 const scoped_refptr<media::VideoFrame>& target, | 1196 const scoped_refptr<media::VideoFrame>& target, |
(...skipping 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3345 | 3345 |
3346 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3346 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3347 // regions that are not draggable. (See ControlRegionView in | 3347 // regions that are not draggable. (See ControlRegionView in |
3348 // native_app_window_cocoa.mm). This requires the render host view to be | 3348 // native_app_window_cocoa.mm). This requires the render host view to be |
3349 // draggable by default. | 3349 // draggable by default. |
3350 - (BOOL)mouseDownCanMoveWindow { | 3350 - (BOOL)mouseDownCanMoveWindow { |
3351 return YES; | 3351 return YES; |
3352 } | 3352 } |
3353 | 3353 |
3354 @end | 3354 @end |
OLD | NEW |