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

Unified Diff: components/plugins/renderer/webview_plugin.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 | « components/plugins/renderer/webview_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 062e6e102b1bc5586d5a51a2206315700308c6ca..04d74071c732abc4cbfb0e8f030928d0427df698 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -157,13 +157,14 @@ void WebViewPlugin::paint(WebCanvas* canvas, const WebRect& rect) {
}
// Coordinates are relative to the containing window.
-void WebViewPlugin::updateGeometry(const WebRect& frame_rect,
+void WebViewPlugin::updateGeometry(const WebRect& window_rect,
const WebRect& clip_rect,
- const WebVector<WebRect>& cut_out_rects,
+ const WebRect& unobscured_rect,
+ const WebVector<WebRect>& cut_outs_rects,
bool is_visible) {
- if (static_cast<gfx::Rect>(frame_rect) != rect_) {
- rect_ = frame_rect;
- WebSize newSize(frame_rect.width, frame_rect.height);
+ if (static_cast<gfx::Rect>(window_rect) != rect_) {
+ rect_ = window_rect;
+ WebSize newSize(window_rect.width, window_rect.height);
web_view_->resize(newSize);
}
}
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698