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

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

Issue 10584005: Mouse events pass through Mac Fullscreen Exit Bubble for Mouse Lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
diff --git a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
index c5908f88696bdfe87b121ef9525069e863390452..88ebc6dd8630b6c62a97e1ce5d353f04048270d2 100644
--- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
@@ -76,6 +76,11 @@ const float kHideDuration = 0.7;
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)
Nico 2012/06/20 15:49:58 These two types have no button on the bubble, righ
scheib 2012/06/20 16:41:00 Correct, these are exit instructions only for mous
+ [[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