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

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

Issue 3117035: Mac: Unregress right-clicks for CoreAnimation plugins. (Closed)
Patch Set: '' Created 10 years, 4 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: chrome/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index 49d653a3ce68328a2eea9c26d49a327b3dd27503..3f1c15ae37f2a5375ced2cd6ab1f8d05226065a6 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -237,6 +237,15 @@ static CVReturn DrawOneAcceleratedPluginCallback(
[self drawView];
}
+- (void)rightMouseDown:(NSEvent*)event {
+ // The NSResponder documentation: "Note: The NSView implementation of this
+ // method does not pass the message up the responder chain, it handles it
+ // directly."
+ // That's bad, we want the next responder (RWHVMac) to handle this event to
+ // dispatch it to the renderer.
+ [[self nextResponder] rightMouseDown:event];
+}
+
- (void)globalFrameDidChange:(NSNotification*)notification {
CGLLockContext(cglContext_);
[glContext_ update];
« 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