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

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

Issue 2430863002: [Mac] Refactor the fullscreen menubar (Closed)
Patch Set: Fix for rsesek 2 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
« no previous file with comments | « ui/base/cocoa/appkit_utils.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/appkit_utils.mm
diff --git a/ui/base/cocoa/appkit_utils.mm b/ui/base/cocoa/appkit_utils.mm
index 95483cfd284ed3bf61333d05c78ea3cd2b526d4d..6c3e7e2d9cbe5d68ddf091f92e580d30952e4bf1 100644
--- a/ui/base/cocoa/appkit_utils.mm
+++ b/ui/base/cocoa/appkit_utils.mm
@@ -4,6 +4,8 @@
#import "ui/base/cocoa/appkit_utils.h"
+#include <cmath>
+
#include "base/mac/mac_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -109,4 +111,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
« no previous file with comments | « ui/base/cocoa/appkit_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698