OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" | 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
6 | 6 |
7 #include "content/browser/accessibility/browser_accessibility_manager.h" | 7 #include "content/browser/accessibility/browser_accessibility_manager.h" |
8 #include "content/browser/frame_host/cross_process_frame_connector.h" | 8 #include "content/browser/frame_host/cross_process_frame_connector.h" |
9 #include "content/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
10 #include "content/common/gpu/gpu_messages.h" | 10 #include "content/common/gpu/gpu_messages.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 const NativeWebKeyboardEvent& event) { | 285 const NativeWebKeyboardEvent& event) { |
286 return false; | 286 return false; |
287 } | 287 } |
288 #endif // defined(OS_MACOSX) | 288 #endif // defined(OS_MACOSX) |
289 | 289 |
290 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( | 290 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( |
291 const gfx::Rect& src_subrect, | 291 const gfx::Rect& src_subrect, |
292 const gfx::Size& /* dst_size */, | 292 const gfx::Size& /* dst_size */, |
293 CopyFromCompositingSurfaceCallback& callback, | 293 CopyFromCompositingSurfaceCallback& callback, |
294 const SkColorType color_type) { | 294 const SkColorType color_type) { |
295 callback.Run(false, SkBitmap()); | 295 callback.Run(false, SkBitmap(), content::READBACK_NOTSUPPORTED); |
296 } | 296 } |
297 | 297 |
298 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame( | 298 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame( |
299 const gfx::Rect& src_subrect, | 299 const gfx::Rect& src_subrect, |
300 const scoped_refptr<media::VideoFrame>& target, | 300 const scoped_refptr<media::VideoFrame>& target, |
301 const base::Callback<void(bool)>& callback) { | 301 const base::Callback<void(bool)>& callback) { |
302 NOTIMPLEMENTED(); | 302 NOTIMPLEMENTED(); |
303 callback.Run(false); | 303 callback.Run(false); |
304 } | 304 } |
305 | 305 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 339 } |
340 | 340 |
341 BrowserAccessibilityManager* | 341 BrowserAccessibilityManager* |
342 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 342 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
343 BrowserAccessibilityDelegate* delegate) { | 343 BrowserAccessibilityDelegate* delegate) { |
344 return BrowserAccessibilityManager::Create( | 344 return BrowserAccessibilityManager::Create( |
345 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 345 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
346 } | 346 } |
347 | 347 |
348 } // namespace content | 348 } // namespace content |
OLD | NEW |