| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 ViewHostMsg_SelectionBounds_Params guest_params(params); | 364 ViewHostMsg_SelectionBounds_Params guest_params(params); |
| 365 guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect); | 365 guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect); |
| 366 guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect); | 366 guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect); |
| 367 rwhv->SelectionBoundsChanged(guest_params); | 367 rwhv->SelectionBoundsChanged(guest_params); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( | 370 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( |
| 371 const gfx::Rect& src_subrect, | 371 const gfx::Rect& src_subrect, |
| 372 const gfx::Size& dst_size, | 372 const gfx::Size& dst_size, |
| 373 const base::Callback<void(bool, const SkBitmap&)>& callback, | 373 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 374 const SkBitmap::Config config) { | 374 const SkBitmap::Config config, |
| 375 scoped_ptr<SkBitmap> bitmap) { |
| 375 CHECK(guest_); | 376 CHECK(guest_); |
| 376 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); | 377 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); |
| 377 } | 378 } |
| 378 | 379 |
| 379 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { | 380 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { |
| 380 platform_view_->SetBackground(background); | 381 platform_view_->SetBackground(background); |
| 381 } | 382 } |
| 382 | 383 |
| 383 void RenderWidgetHostViewGuest::SetHasHorizontalScrollbar( | 384 void RenderWidgetHostViewGuest::SetHasHorizontalScrollbar( |
| 384 bool has_horizontal_scrollbar) { | 385 bool has_horizontal_scrollbar) { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 return; | 570 return; |
| 570 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 571 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
| 571 g_it != gestures->end(); | 572 g_it != gestures->end(); |
| 572 ++g_it) { | 573 ++g_it) { |
| 573 ForwardGestureEventToRenderer(*g_it); | 574 ForwardGestureEventToRenderer(*g_it); |
| 574 } | 575 } |
| 575 } | 576 } |
| 576 | 577 |
| 577 | 578 |
| 578 } // namespace content | 579 } // namespace content |
| OLD | NEW |