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

Unified Diff: ui/base/cocoa/tracking_area.mm

Issue 2484973004: [Mac] Refactor Immersive Fullscreen Logic (Closed)
Patch Set: fix for rsesek Created 4 years, 1 month 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 | « ui/base/cocoa/tracking_area.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/tracking_area.mm
diff --git a/ui/base/cocoa/tracking_area.mm b/ui/base/cocoa/tracking_area.mm
index e68fb5beae272e417f9e535508abb52ecdace306..f310514d69bfeb4430dd0355e95b6c0b93cb8bb9 100644
--- a/ui/base/cocoa/tracking_area.mm
+++ b/ui/base/cocoa/tracking_area.mm
@@ -101,6 +101,13 @@
object:window];
}
+- (BOOL)mouseInsideTrackingAreaForView:(NSView*)view {
+ DCHECK(view);
+ NSPoint mouseLoc = [[view window] mouseLocationOutsideOfEventStream];
+ NSPoint mousePos = [view convertPoint:mouseLoc fromView:nil];
+ return NSMouseInRect(mousePos, [self rect], [view isFlipped]);
+}
+
- (void)windowWillClose:(NSNotification*)notif {
[self clearOwner];
}
« no previous file with comments | « ui/base/cocoa/tracking_area.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698