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

Unified Diff: ios/chrome/browser/ui/contextual_search/contextual_search_mask_view.mm

Issue 2626073003: [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:contextual_search to ARC. (Closed)
Patch Set: format Created 3 years, 11 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: ios/chrome/browser/ui/contextual_search/contextual_search_mask_view.mm
diff --git a/ios/chrome/browser/ui/contextual_search/contextual_search_mask_view.mm b/ios/chrome/browser/ui/contextual_search/contextual_search_mask_view.mm
index 23592c66040ece9ca3adaefc0a1c2698825cf01b..e9651ec71ac1cb3f25bc574fe46906826a9389b8 100644
--- a/ios/chrome/browser/ui/contextual_search/contextual_search_mask_view.mm
+++ b/ios/chrome/browser/ui/contextual_search/contextual_search_mask_view.mm
@@ -11,6 +11,10 @@
// Linearly map |delta| in the range [0, 1] to a value in [min, max].
#define LERP(min, max, delta) (min * (1 - delta) + max * delta)
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
const CGFloat kPhoneMaskLimit = 1.0;
const CGFloat kPadMaskLimit = 0.8;

Powered by Google App Engine
This is Rietveld 408576698