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

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

Issue 690263003: <webview>: Remove broken captureVisibleRegion code until feature is properly supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 if (!rwhv) 343 if (!rwhv)
344 return; 344 return;
345 ViewHostMsg_SelectionBounds_Params guest_params(params); 345 ViewHostMsg_SelectionBounds_Params guest_params(params);
346 guest_params.anchor_rect.set_origin( 346 guest_params.anchor_rect.set_origin(
347 guest_->GetScreenCoordinates(params.anchor_rect.origin())); 347 guest_->GetScreenCoordinates(params.anchor_rect.origin()));
348 guest_params.focus_rect.set_origin( 348 guest_params.focus_rect.set_origin(
349 guest_->GetScreenCoordinates(params.focus_rect.origin())); 349 guest_->GetScreenCoordinates(params.focus_rect.origin()));
350 rwhv->SelectionBoundsChanged(guest_params); 350 rwhv->SelectionBoundsChanged(guest_params);
351 } 351 }
352 352
353 void RenderWidgetHostViewGuest::CopyFromCompositingSurface(
354 const gfx::Rect& src_subrect,
355 const gfx::Size& dst_size,
356 CopyFromCompositingSurfaceCallback& callback,
357 const SkColorType color_type) {
358 CHECK(guest_);
359 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback);
360 }
361
362 void RenderWidgetHostViewGuest::SetBackgroundColor(SkColor color) { 353 void RenderWidgetHostViewGuest::SetBackgroundColor(SkColor color) {
363 // Content embedders can toggle opaque backgrounds through this API. 354 // Content embedders can toggle opaque backgrounds through this API.
364 // We plumb the value here so that BrowserPlugin updates its compositing 355 // We plumb the value here so that BrowserPlugin updates its compositing
365 // state in response to this change. We also want to preserve this flag 356 // state in response to this change. We also want to preserve this flag
366 // after recovering from a crash so we let BrowserPluginGuest store it. 357 // after recovering from a crash so we let BrowserPluginGuest store it.
367 if (!guest_) 358 if (!guest_)
368 return; 359 return;
369 RenderWidgetHostViewBase::SetBackgroundColor(color); 360 RenderWidgetHostViewBase::SetBackgroundColor(color);
370 bool opaque = GetBackgroundOpaque(); 361 bool opaque = GetBackgroundOpaque();
371 host_->SetBackgroundOpaque(opaque); 362 host_->SetBackgroundOpaque(opaque);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 } 585 }
595 586
596 if (blink::WebInputEvent::isGestureEventType(event->type)) { 587 if (blink::WebInputEvent::isGestureEventType(event->type)) {
597 host_->ForwardGestureEvent( 588 host_->ForwardGestureEvent(
598 *static_cast<const blink::WebGestureEvent*>(event)); 589 *static_cast<const blink::WebGestureEvent*>(event));
599 return; 590 return;
600 } 591 }
601 } 592 }
602 593
603 } // namespace content 594 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/common/browser_plugin/browser_plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698