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

Unified Diff: base/mac/sdk_forward_declarations.h

Issue 2734703002: RELAND: ShapeDetection: add support for Text Detection in Mac (Closed)
Patch Set: Forward-declare CIRectangleFeature to avoid partial availability warnings Created 3 years, 10 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 | « no previous file | base/mac/sdk_forward_declarations.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/sdk_forward_declarations.h
diff --git a/base/mac/sdk_forward_declarations.h b/base/mac/sdk_forward_declarations.h
index 7ea7829d9afeb38f0fa224317093c04c88012f02..b477347216803dad26b55d5085514e3989a03d92 100644
--- a/base/mac/sdk_forward_declarations.h
+++ b/base/mac/sdk_forward_declarations.h
@@ -163,6 +163,18 @@ BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight;
#endif // MAC_OS_X_VERSION_10_10
+// ----------------------------------------------------------------------------
+// Define NSStrings only available in newer versions of the OSX SDK to force
+// them to be statically linked.
+// ----------------------------------------------------------------------------
+
+extern "C" {
+#if !defined(MAC_OS_X_VERSION_10_11) || \
+ MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11
+BASE_EXPORT extern NSString* const CIDetectorTypeText;
+#endif // MAC_OS_X_VERSION_10_11
+} // extern "C"
+
// Once Chrome no longer supports OSX 10.10, everything within this
// preprocessor block can be removed.
#if !defined(MAC_OS_X_VERSION_10_11) || \
@@ -187,6 +199,12 @@ BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight;
- (void)performWindowDragWithEvent:(NSEvent*)event;
@end
+@interface CIRectangleFeature (ElCapitanSDK)
+@property(readonly) CGRect bounds;
+@end
+
+@class CIRectangleFeature;
+
#endif // MAC_OS_X_VERSION_10_11
// Once Chrome no longer supports OSX 10.11, everything within this
« no previous file with comments | « no previous file | base/mac/sdk_forward_declarations.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698