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

Unified Diff: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm

Issue 10752015: Merge 143189 - Mouse events pass through Mac Fullscreen Exit Bubble for Mouse Lock. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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/ui/cocoa/fullscreen_exit_bubble_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm (revision 145778)
+++ chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm (working copy)
@@ -76,6 +76,11 @@
owner_ = owner;
url_ = url;
bubbleType_ = bubbleType;
+ // Mouse lock expects mouse events to reach the main window immediately.
+ // Make the bubble transparent for mouse events if mouse lock is enabled.
+ if (bubbleType_ == FEB_TYPE_FULLSCREEN_MOUSELOCK_EXIT_INSTRUCTION ||
+ bubbleType_ == FEB_TYPE_MOUSELOCK_EXIT_INSTRUCTION)
+ [[self window] setIgnoresMouseEvents:YES];
}
return self;
}
« 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