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

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

Issue 12090109: Tab Capture: Backing store readbacks to YV12 VideoFrames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix per wjia Created 7 years, 10 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 | Annotate | Revision Log
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 #include <QuartzCore/QuartzCore.h> 7 #include <QuartzCore/QuartzCore.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 959
960 gfx::Rect src_pixel_gl_subrect = gfx::ToEnclosingRect( 960 gfx::Rect src_pixel_gl_subrect = gfx::ToEnclosingRect(
961 gfx::ScaleRect(src_gl_subrect, scale)); 961 gfx::ScaleRect(src_gl_subrect, scale));
962 compositing_iosurface_->CopyTo( 962 compositing_iosurface_->CopyTo(
963 src_pixel_gl_subrect, 963 src_pixel_gl_subrect,
964 dst_pixel_size, 964 dst_pixel_size,
965 output, 965 output,
966 callback); 966 callback);
967 } 967 }
968 968
969 void RenderWidgetHostViewMac::CopyFromCompositingSurfaceToVideoFrame(
970 const gfx::Rect& src_subrect,
971 const scoped_refptr<media::VideoFrame>& target,
972 const base::Callback<void(bool)>& callback) {
973 NOTIMPLEMENTED();
974 callback.Run(false);
975 }
976
977 bool RenderWidgetHostViewMac::CanCopyToVideoFrame() const {
978 return false;
979 }
980
969 // Sets whether or not to accept first responder status. 981 // Sets whether or not to accept first responder status.
970 void RenderWidgetHostViewMac::SetTakesFocusOnlyOnMouseDown(bool flag) { 982 void RenderWidgetHostViewMac::SetTakesFocusOnlyOnMouseDown(bool flag) {
971 [cocoa_view_ setTakesFocusOnlyOnMouseDown:flag]; 983 [cocoa_view_ setTakesFocusOnlyOnMouseDown:flag];
972 } 984 }
973 985
974 void RenderWidgetHostViewMac::ForwardMouseEvent(const WebMouseEvent& event) { 986 void RenderWidgetHostViewMac::ForwardMouseEvent(const WebMouseEvent& event) {
975 if (render_widget_host_) 987 if (render_widget_host_)
976 render_widget_host_->ForwardMouseEvent(event); 988 render_widget_host_->ForwardMouseEvent(event);
977 989
978 if (event.type == WebInputEvent::MouseLeave) { 990 if (event.type == WebInputEvent::MouseLeave) {
(...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 if (!string) return NO; 3434 if (!string) return NO;
3423 3435
3424 // If the user is currently using an IME, confirm the IME input, 3436 // If the user is currently using an IME, confirm the IME input,
3425 // and then insert the text from the service, the same as TextEdit and Safari. 3437 // and then insert the text from the service, the same as TextEdit and Safari.
3426 [self confirmComposition]; 3438 [self confirmComposition];
3427 [self insertText:string]; 3439 [self insertText:string];
3428 return YES; 3440 return YES;
3429 } 3441 }
3430 3442
3431 @end 3443 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698