Index: ios/web_view/public/cwv.h |
diff --git a/ios/web_view/public/cwv.h b/ios/web_view/public/cwv.h |
index 503d5f786a2552d017ac1a2e67a58ee11f2c29af..09f62c0da6ac528c1ad9738be1b6828fd42bea1c 100644 |
--- a/ios/web_view/public/cwv.h |
+++ b/ios/web_view/public/cwv.h |
@@ -8,11 +8,20 @@ |
#import <CoreGraphics/CoreGraphics.h> |
#import <Foundation/Foundation.h> |
+// TODO(crbug.com/704946): Make framework style include work everywhere and |
+// remove this #if. |
+#if defined(CWV_IMPLEMENTATION) |
+#include "ios/web_view/public/cwv_export.h" |
+#else |
+#include <ChromeWebView/cwv_export.h> |
+#endif |
+ |
@protocol CWVDelegate; |
@class CWVWebView; |
// Main interface for the CWV library. |
-__attribute__((visibility("default"))) @interface CWV : NSObject |
+CWV_EXPORT |
+@interface CWV : NSObject |
// Initializes the CWV library. This function should be called from |
// |application:didFinishLaunchingWithOptions:|. |