Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 143683003: Support format using enum argument for Async readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code changes as per review. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 ViewHostMsg_SelectionBounds_Params guest_params(params); 340 ViewHostMsg_SelectionBounds_Params guest_params(params);
341 guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect); 341 guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect);
342 guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect); 342 guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect);
343 rwhv->SelectionBoundsChanged(guest_params); 343 rwhv->SelectionBoundsChanged(guest_params);
344 } 344 }
345 345
346 void RenderWidgetHostViewGuest::CopyFromCompositingSurface( 346 void RenderWidgetHostViewGuest::CopyFromCompositingSurface(
347 const gfx::Rect& src_subrect, 347 const gfx::Rect& src_subrect,
348 const gfx::Size& dst_size, 348 const gfx::Size& dst_size,
349 const base::Callback<void(bool, const SkBitmap&)>& callback, 349 const base::Callback<void(bool, const SkBitmap&)>& callback,
350 bool readback_config_rgb565) { 350 const SkBitmap::Config config) {
351 CHECK(guest_); 351 CHECK(guest_);
352 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); 352 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback);
353 } 353 }
354 354
355 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) { 355 void RenderWidgetHostViewGuest::SetBackground(const SkBitmap& background) {
356 platform_view_->SetBackground(background); 356 platform_view_->SetBackground(background);
357 } 357 }
358 358
359 void RenderWidgetHostViewGuest::SetHasHorizontalScrollbar( 359 void RenderWidgetHostViewGuest::SetHasHorizontalScrollbar(
360 bool has_horizontal_scrollbar) { 360 bool has_horizontal_scrollbar) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 return; 546 return;
547 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); 547 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin();
548 g_it != gestures->end(); 548 g_it != gestures->end();
549 ++g_it) { 549 ++g_it) {
550 ForwardGestureEventToRenderer(*g_it); 550 ForwardGestureEventToRenderer(*g_it);
551 } 551 }
552 } 552 }
553 553
554 554
555 } // namespace content 555 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698