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

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

Issue 2686723003: Use correct timestamp for generated mouse events on Mac. (Closed)
Patch Set: fix Created 3 years, 10 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 | ui/base/cocoa/tool_tip_base_view.mm » ('j') | 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 79061b448a4830f99fb8958cb6b72d51a3b1ced9..b2363ee21de8d470c9c934b20061d04ad0b3592b 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1167,10 +1167,11 @@ void RenderWidgetHostViewMac::SetShowingContextMenu(bool showing) {
// in the pipeline. Find a way to use the mouse location from the event that
// dismissed the context menu.
NSPoint location = [window mouseLocationOutsideOfEventStream];
+ NSTimeInterval event_time = [[NSApp currentEvent] timestamp];
NSEvent* event = [NSEvent mouseEventWithType:NSMouseMoved
location:location
modifierFlags:0
- timestamp:0
+ timestamp:event_time
windowNumber:window_number()
context:nil
eventNumber:0
« no previous file with comments | « no previous file | ui/base/cocoa/tool_tip_base_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698