| 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 8 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" | 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 return NULL; | 205 return NULL; |
| 206 } | 206 } |
| 207 | 207 |
| 208 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( | 208 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( |
| 209 const gfx::Rect& src_subrect, | 209 const gfx::Rect& src_subrect, |
| 210 const gfx::Size& /* dst_size */, | 210 const gfx::Size& /* dst_size */, |
| 211 const base::Callback<void(bool, const SkBitmap&)>& callback) { | 211 const base::Callback<void(bool, const SkBitmap&)>& callback) { |
| 212 callback.Run(false, SkBitmap()); | 212 callback.Run(false, SkBitmap()); |
| 213 } | 213 } |
| 214 | 214 |
| 215 #if defined(OS_WIN) |
| 216 void RenderWidgetHostViewGuest::CopyFromCompositingSurfaceToVideoFrame( |
| 217 const gfx::Rect& src_subrect, |
| 218 const scoped_refptr<media::VideoFrame>& target, |
| 219 const base::Callback<void(bool)>& callback) { |
| 220 callback.Run(false); |
| 221 } |
| 222 #endif |
| 223 |
| 215 void RenderWidgetHostViewGuest::AcceleratedSurfaceSuspend() { | 224 void RenderWidgetHostViewGuest::AcceleratedSurfaceSuspend() { |
| 216 } | 225 } |
| 217 | 226 |
| 218 bool RenderWidgetHostViewGuest::HasAcceleratedSurface( | 227 bool RenderWidgetHostViewGuest::HasAcceleratedSurface( |
| 219 const gfx::Size& desired_size) { | 228 const gfx::Size& desired_size) { |
| 220 return false; | 229 return false; |
| 221 } | 230 } |
| 222 | 231 |
| 223 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { | 232 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { |
| 224 } | 233 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 371 |
| 363 #if defined(OS_WIN) && !defined(USE_AURA) | 372 #if defined(OS_WIN) && !defined(USE_AURA) |
| 364 void RenderWidgetHostViewGuest::WillWmDestroy() { | 373 void RenderWidgetHostViewGuest::WillWmDestroy() { |
| 365 } | 374 } |
| 366 #endif | 375 #endif |
| 367 | 376 |
| 368 void RenderWidgetHostViewGuest::GetScreenInfo(WebKit::WebScreenInfo* results) { | 377 void RenderWidgetHostViewGuest::GetScreenInfo(WebKit::WebScreenInfo* results) { |
| 369 } | 378 } |
| 370 | 379 |
| 371 } // namespace content | 380 } // namespace content |
| OLD | NEW |