+2015-01-26 Anders Carlsson <andersca@apple.com>
+
+ Make it easy to test enabling formal delegate protocols
+ https://bugs.webkit.org/show_bug.cgi?id=140892
+
+ Reviewed by Dan Bernstein.
+
+ Add an WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS define that controls whether delegates should be formal protocols.
+
+ * Misc/WebDownload.h:
+ * WebView/WebFrameLoadDelegate.h:
+ * WebView/WebPolicyDelegate.h:
+ * WebView/WebResourceLoadDelegate.h:
+ * WebView/WebUIDelegate.h:
+ * WebView/WebView.h:
+
2015-01-26 Chris Dumez <cdumez@apple.com>
Rename Document::body() to Document::bodyOrFrameset() for clarity
@property UIDelegate
@abstract The WebView's WebUIDelegate.
*/
+#ifdef WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS
+@property (nonatomic, assign) id <WebUIDelegate> UIDelegate;
+#else
@property (nonatomic, assign) id UIDelegate;
+#endif
/*!
@property resourceLoadDelegate
@abstract The WebView's WebResourceLoadDelegate.
*/
+#ifdef WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS
+@property (nonatomic, assign) id <WebResourceLoadDelegate> resourceLoadDelegate;
+#else
@property (nonatomic, assign) id resourceLoadDelegate;
+#endif
/*!
@property downloadDelegate
@abstract The WebView's WebDownloadDelegate.
*/
+#ifdef WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS
+@property (nonatomic, assign) id <WebDownloadDelegate> downloadDelegate;
+#else
@property (nonatomic, assign) id downloadDelegate;
+#endif
/*!
@property frameLoadDelegate
@abstract The WebView's WebFrameLoadDelegate delegate.
*/
+#ifdef WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS
+@property (nonatomic, assign) id <WebFrameLoadDelegate> frameLoadDelegate;
+#else
@property (nonatomic, assign) id frameLoadDelegate;
+#endif
/*!
@property policyDelegate
@abstract The WebView's WebPolicyDelegate.
*/
+#ifdef WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS
+@property (nonatomic, assign) id <WebPolicyDelegate> policyDelegate;
+#else
@property (nonatomic, assign) id policyDelegate;
+#endif
/*!
@property mainFrame