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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 bool RenderWidgetHostViewChildFrame::PostProcessEventForPluginIme( | 255 bool RenderWidgetHostViewChildFrame::PostProcessEventForPluginIme( |
256 const NativeWebKeyboardEvent& event) { | 256 const NativeWebKeyboardEvent& event) { |
257 return false; | 257 return false; |
258 } | 258 } |
259 #endif // defined(OS_MACOSX) | 259 #endif // defined(OS_MACOSX) |
260 | 260 |
261 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( | 261 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( |
262 const gfx::Rect& src_subrect, | 262 const gfx::Rect& src_subrect, |
263 const gfx::Size& /* dst_size */, | 263 const gfx::Size& /* dst_size */, |
264 ReadbackRequestCallback& callback, | 264 ReadbackRequestCallback& callback, |
265 const SkColorType color_type) { | 265 const SkColorType preferred_color_type) { |
266 callback.Run(SkBitmap(), READBACK_NOT_SUPPORTED); | 266 callback.Run(SkBitmap(), READBACK_FAILED); |
267 } | 267 } |
268 | 268 |
269 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame( | 269 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurfaceToVideoFrame( |
270 const gfx::Rect& src_subrect, | 270 const gfx::Rect& src_subrect, |
271 const scoped_refptr<media::VideoFrame>& target, | 271 const scoped_refptr<media::VideoFrame>& target, |
272 const base::Callback<void(bool)>& callback) { | 272 const base::Callback<void(bool)>& callback) { |
273 NOTIMPLEMENTED(); | 273 NOTIMPLEMENTED(); |
274 callback.Run(false); | 274 callback.Run(false); |
275 } | 275 } |
276 | 276 |
(...skipping 14 matching lines...) Expand all Loading... |
291 void RenderWidgetHostViewChildFrame::SetParentNativeViewAccessible( | 291 void RenderWidgetHostViewChildFrame::SetParentNativeViewAccessible( |
292 gfx::NativeViewAccessible accessible_parent) { | 292 gfx::NativeViewAccessible accessible_parent) { |
293 } | 293 } |
294 | 294 |
295 gfx::NativeViewId RenderWidgetHostViewChildFrame::GetParentForWindowlessPlugin() | 295 gfx::NativeViewId RenderWidgetHostViewChildFrame::GetParentForWindowlessPlugin() |
296 const { | 296 const { |
297 return NULL; | 297 return NULL; |
298 } | 298 } |
299 #endif // defined(OS_WIN) | 299 #endif // defined(OS_WIN) |
300 | 300 |
301 SkColorType RenderWidgetHostViewChildFrame::PreferredReadbackFormat() { | |
302 return kN32_SkColorType; | |
303 } | |
304 | |
305 BrowserAccessibilityManager* | 301 BrowserAccessibilityManager* |
306 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 302 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
307 BrowserAccessibilityDelegate* delegate) { | 303 BrowserAccessibilityDelegate* delegate) { |
308 return BrowserAccessibilityManager::Create( | 304 return BrowserAccessibilityManager::Create( |
309 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 305 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
310 } | 306 } |
311 | 307 |
312 } // namespace content | 308 } // namespace content |
OLD | NEW |