Fix style issues and add availability macros missed in r178634
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 18 Jan 2015 22:16:35 +0000 (22:16 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 18 Jan 2015 22:16:35 +0000 (22:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=140597

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:
Add missing availability macros.

* UIProcess/API/Cocoa/_WKUserContentFilter.h:
* UIProcess/API/Cocoa/_WKUserContentFilter.mm:
(-[_WKUserContentFilter initWithName:serializedRules:]):
(-[_WKUserContentFilter _initWithName:serializedRules:]): Deleted.
Removed unnecessary leading underscore from init method.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178635 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKUserContentControllerPrivate.h
Source/WebKit2/UIProcess/API/Cocoa/_WKUserContentFilter.h
Source/WebKit2/UIProcess/API/Cocoa/_WKUserContentFilter.mm

index 4d0dfdc..527376d 100644 (file)
@@ -1,3 +1,19 @@
+2015-01-18  Sam Weinig  <sam@webkit.org>
+
+        Fix style issues and add availability macros missed in r178634
+        https://bugs.webkit.org/show_bug.cgi?id=140597
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:
+        Add missing availability macros.
+
+        * UIProcess/API/Cocoa/_WKUserContentFilter.h:
+        * UIProcess/API/Cocoa/_WKUserContentFilter.mm:
+        (-[_WKUserContentFilter initWithName:serializedRules:]):
+        (-[_WKUserContentFilter _initWithName:serializedRules:]): Deleted.
+        Removed unnecessary leading underscore from init method.
+
 2015-01-17  Sam Weinig  <sam@webkit.org>
 
         Add initial experimental user content filtering API
index 02ca300..732ad4a 100644 (file)
@@ -31,8 +31,8 @@
 
 @interface WKUserContentController (WKPrivate)
 
-- (void)_addUserContentFilter:(_WKUserContentFilter *)userContentFilter;
-- (void)_removeAllUserContentFilters;
+- (void)_addUserContentFilter:(_WKUserContentFilter *)userContentFilter WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
+- (void)_removeAllUserContentFilters WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
 
 @end
 
index 48bacff..bd83046 100644 (file)
@@ -30,7 +30,7 @@
 WK_CLASS_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA)
 @interface _WKUserContentFilter : NSObject
 
-- (instancetype)_initWithName:(NSString *)name serializedRules:(NSString *)serializedRules;
+- (instancetype)initWithName:(NSString *)name serializedRules:(NSString *)serializedRules;
 
 @end
 
index a4f6106..c6cdf49 100644 (file)
@@ -30,7 +30,7 @@
 
 @implementation _WKUserContentFilter
 
-- (instancetype)_initWithName:(NSString *)name serializedRules:(NSString *)serializedRules
+- (instancetype)initWithName:(NSString *)name serializedRules:(NSString *)serializedRules
 {
     if (!(self = [super init]))
         return nil;