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

Unified Diff: content/renderer/npapi/webplugin_impl.cc

Issue 1023783008: Migrate plugins to support new 'unobscured' rect interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 'git cl format' Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | content/renderer/pepper/pepper_webplugin_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/webplugin_impl.cc
diff --git a/content/renderer/npapi/webplugin_impl.cc b/content/renderer/npapi/webplugin_impl.cc
index 9a447fef0c82977bd8d4f22ced2ed027bc0d34bc..e97410face78a924e57dd1eff183463a7d825404 100644
--- a/content/renderer/npapi/webplugin_impl.cc
+++ b/content/renderer/npapi/webplugin_impl.cc
@@ -312,17 +312,19 @@ void WebPluginImpl::paint(WebCanvas* canvas, const WebRect& paint_rect) {
delegate_->Paint(canvas, paint_rect);
}
-void WebPluginImpl::updateGeometry(
- const WebRect& window_rect, const WebRect& clip_rect,
- const WebVector<WebRect>& cutout_rects, bool is_visible) {
+void WebPluginImpl::updateGeometry(const WebRect& window_rect,
+ const WebRect& clip_rect,
+ const WebRect& unobscured_rect,
+ const WebVector<WebRect>& cut_outs_rects,
+ bool is_visible) {
WebPluginGeometry new_geometry;
new_geometry.window = window_;
new_geometry.window_rect = window_rect;
new_geometry.clip_rect = clip_rect;
new_geometry.visible = is_visible;
new_geometry.rects_valid = true;
- for (size_t i = 0; i < cutout_rects.size(); ++i)
- new_geometry.cutout_rects.push_back(cutout_rects[i]);
+ for (size_t i = 0; i < cut_outs_rects.size(); ++i)
+ new_geometry.cutout_rects.push_back(cut_outs_rects[i]);
// Only send DidMovePlugin if the geometry changed in some way.
if (window_ && (first_geometry_update_ || !new_geometry.Equals(geometry_))) {
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | content/renderer/pepper/pepper_webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698