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

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

Issue 2430863002: [Mac] Refactor the fullscreen menubar (Closed)
Patch Set: Fix for rsesek Created 4 years, 2 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
Index: ui/base/cocoa/appkit_utils.mm
diff --git a/ui/base/cocoa/appkit_utils.mm b/ui/base/cocoa/appkit_utils.mm
index 95483cfd284ed3bf61333d05c78ea3cd2b526d4d..4b53bf6c5f949d2e8fc1574b39e7fa6fae00d9f7 100644
--- a/ui/base/cocoa/appkit_utils.mm
+++ b/ui/base/cocoa/appkit_utils.mm
@@ -109,4 +109,8 @@ bool ForceClickInvokesQuickLook() {
static_cast<NSInteger>(ForceTouchAction::QUICK_LOOK);
}
+bool IsCGFloatEqual(CGFloat a, CGFloat b) {
+ return std::fabs(a - b) <= std::numeric_limits<CGFloat>::epsilon();
+}
+
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698