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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 15315005: Instant Extended: Suppress mouse events for bottom web content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index c1ed3872a4179dd01859fc536f47eb2263b57e46..d699aaaa62a870e03443bfe4644b63649a7758e6 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1728,6 +1728,10 @@ gfx::Rect RenderWidgetHostViewMac::GetScaledOpenGLPixelRect(
// The cursor is over a nonWebContentView - ignore this mouse event.
return YES;
}
+ if ([view isKindOfClass:[self class]] && ![view isEqual:self]) {
Alexei Svitkine (slow) 2013/05/22 03:34:43 Is there a reason to use -isEqual: here rather tha
sail 2013/05/22 17:54:10 This a normal Objective-C convention. For example,
+ // The cursor is over an overlapping render widget.
Alexei Svitkine (slow) 2013/05/22 03:34:43 Please expand the comment to mention that given bo
sail 2013/05/22 17:54:10 Done.
+ return YES;
+ }
view = [view superview];
}
return NO;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698