| 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 368 |
| 369 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( | 369 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( |
| 370 const gfx::Rect& src_subrect, | 370 const gfx::Rect& src_subrect, |
| 371 const gfx::Size& dst_size, | 371 const gfx::Size& dst_size, |
| 372 const base::Callback<void(bool, const SkBitmap&)>& callback, | 372 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 373 const SkBitmap::Config config) { | 373 const SkBitmap::Config config) { |
| 374 CHECK(guest_); | 374 CHECK(guest_); |
| 375 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); | 375 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { | 378 void RenderWidgetHostViewGuest::SetBackgroundOpaque(bool opaque) { |
| 379 platform_view_->SetBackground(background); | 379 platform_view_->SetBackgroundOpaque(opaque); |
| 380 } | 380 } |
| 381 | 381 |
| 382 void RenderWidgetHostViewGuest::SetScrollOffsetPinning( | 382 void RenderWidgetHostViewGuest::SetScrollOffsetPinning( |
| 383 bool is_pinned_to_left, bool is_pinned_to_right) { | 383 bool is_pinned_to_left, bool is_pinned_to_right) { |
| 384 platform_view_->SetScrollOffsetPinning( | 384 platform_view_->SetScrollOffsetPinning( |
| 385 is_pinned_to_left, is_pinned_to_right); | 385 is_pinned_to_left, is_pinned_to_right); |
| 386 } | 386 } |
| 387 | 387 |
| 388 bool RenderWidgetHostViewGuest::LockMouse() { | 388 bool RenderWidgetHostViewGuest::LockMouse() { |
| 389 return platform_view_->LockMouse(); | 389 return platform_view_->LockMouse(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 return SkBitmap::kARGB_8888_Config; | 570 return SkBitmap::kARGB_8888_Config; |
| 571 } | 571 } |
| 572 | 572 |
| 573 RenderWidgetHostViewBase* | 573 RenderWidgetHostViewBase* |
| 574 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { | 574 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { |
| 575 return static_cast<RenderWidgetHostViewBase*>( | 575 return static_cast<RenderWidgetHostViewBase*>( |
| 576 guest_->GetEmbedderRenderWidgetHostView()); | 576 guest_->GetEmbedderRenderWidgetHostView()); |
| 577 } | 577 } |
| 578 | 578 |
| 579 } // namespace content | 579 } // namespace content |
| OLD | NEW |