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

Unified Diff: base/mac/mac_util.mm

Issue 2355413007: [Mac] Refactor the Fullscreen Toolbar (Closed)
Patch Set: Nits and grits 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 | « base/mac/mac_util.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index 2f54b2799b5b01932b94fce98a63e5145ebae94b..5aaaa3cc462328b4617925888c255604d630b976 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -173,6 +173,10 @@ CGColorSpaceRef GetSystemColorSpace() {
return g_system_color_space;
}
+bool IsCGFloatEqual(CGFloat a, CGFloat b) {
+ return fabs(a - b) <= std::numeric_limits<CGFloat>::epsilon();
+}
+
// Add a request for full screen mode. Must be called on the main thread.
void RequestFullScreen(FullScreenMode mode) {
DCHECK_LT(mode, kNumFullScreenModes);
« no previous file with comments | « base/mac/mac_util.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698