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

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

Issue 571413002: Declare a new name for CompositingSurface completion callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 6 years, 3 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 guest_params.anchor_rect.set_origin( 363 guest_params.anchor_rect.set_origin(
364 guest_->GetScreenCoordinates(params.anchor_rect.origin())); 364 guest_->GetScreenCoordinates(params.anchor_rect.origin()));
365 guest_params.focus_rect.set_origin( 365 guest_params.focus_rect.set_origin(
366 guest_->GetScreenCoordinates(params.focus_rect.origin())); 366 guest_->GetScreenCoordinates(params.focus_rect.origin()));
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 CopyFromCompositingSurfaceCallback& callback,
374 const SkColorType color_type) { 374 const SkColorType color_type) {
375 CHECK(guest_); 375 CHECK(guest_);
376 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); 376 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback);
377 } 377 }
378 378
379 void RenderWidgetHostViewGuest::SetBackgroundOpaque(bool opaque) { 379 void RenderWidgetHostViewGuest::SetBackgroundOpaque(bool opaque) {
380 platform_view_->SetBackgroundOpaque(opaque); 380 platform_view_->SetBackgroundOpaque(opaque);
381 } 381 }
382 382
383 bool RenderWidgetHostViewGuest::LockMouse() { 383 bool RenderWidgetHostViewGuest::LockMouse() {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } 604 }
605 605
606 if (blink::WebInputEvent::isGestureEventType(event->type)) { 606 if (blink::WebInputEvent::isGestureEventType(event->type)) {
607 host_->ForwardGestureEvent( 607 host_->ForwardGestureEvent(
608 *static_cast<const blink::WebGestureEvent*>(event)); 608 *static_cast<const blink::WebGestureEvent*>(event));
609 return; 609 return;
610 } 610 }
611 } 611 }
612 612
613 } // namespace content 613 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698