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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 return; | 327 return; |
328 ViewHostMsg_SelectionBounds_Params guest_params(params); | 328 ViewHostMsg_SelectionBounds_Params guest_params(params); |
329 guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect); | 329 guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect); |
330 guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect); | 330 guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect); |
331 rwhv->SelectionBoundsChanged(guest_params); | 331 rwhv->SelectionBoundsChanged(guest_params); |
332 } | 332 } |
333 | 333 |
334 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( | 334 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( |
335 const gfx::Rect& src_subrect, | 335 const gfx::Rect& src_subrect, |
336 const gfx::Size& dst_size, | 336 const gfx::Size& dst_size, |
337 const base::Callback<void(bool, const SkBitmap&)>& callback) { | 337 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 338 bool readback_config_rgb565) { |
338 CHECK(guest_); | 339 CHECK(guest_); |
339 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); | 340 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); |
340 } | 341 } |
341 | 342 |
342 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { | 343 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { |
343 platform_view_->SetBackground(background); | 344 platform_view_->SetBackground(background); |
344 } | 345 } |
345 | 346 |
346 void RenderWidgetHostViewGuest::SetHasHorizontalScrollbar( | 347 void RenderWidgetHostViewGuest::SetHasHorizontalScrollbar( |
347 bool has_horizontal_scrollbar) { | 348 bool has_horizontal_scrollbar) { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 return; | 532 return; |
532 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 533 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
533 g_it != gestures->end(); | 534 g_it != gestures->end(); |
534 ++g_it) { | 535 ++g_it) { |
535 ForwardGestureEventToRenderer(*g_it); | 536 ForwardGestureEventToRenderer(*g_it); |
536 } | 537 } |
537 } | 538 } |
538 | 539 |
539 | 540 |
540 } // namespace content | 541 } // namespace content |
OLD | NEW |