#import <WebKit/WebKit.h>

typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) {
    WMFWKScriptMessageUnknown,
    WMFWKScriptMessagePeek,
    WMFWKScriptMessageConsoleMessage,
    WMFWKScriptMessageClickLink,
    WMFWKScriptMessageClickImage,
    WMFWKScriptMessageClickReference,
    WMFWKScriptMessageClickEdit,
    WMFWKScriptMessageNonAnchorTouchEndedWithoutDragging,
    WMFWKScriptMessageLateJavascriptTransform,
    WMFWKScriptMessageArticleState
};

@interface WKScriptMessage (WMFScriptMessage)

+ (WMFWKScriptMessageType)wmf_typeForMessageName:(NSString*)name;
+ (Class)wmf_expectedMessageBodyClassForType:(WMFWKScriptMessageType)type;

@end

#import <WebKit/WebKit.h>

typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) {
    WMFWKScriptMessagePeek,
    WMFWKScriptMessageConsoleMessage,
    WMFWKScriptMessageClickLink,
    WMFWKScriptMessageClickImage,
    WMFWKScriptMessageClickReference,
    WMFWKScriptMessageClickEdit,
    WMFWKScriptMessageNonAnchorTouchEndedWithoutDragging,
    WMFWKScriptMessageLateJavascriptTransform,
    WMFWKScriptMessageArticleState,
    WMFWKScriptMessageUnknown
};

@interface WKScriptMessage (WMFScriptMessage)

+ (WMFWKScriptMessageType)wmf_typeForMessageName:(NSString*)name;
+ (Class)wmf_expectedMessageBodyClassForType:(WMFWKScriptMessageType)type;

@end

--- 
+++ 
@@ -1,6 +1,7 @@
 #import <WebKit/WebKit.h>
 
 typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) {
+    WMFWKScriptMessageUnknown,
     WMFWKScriptMessagePeek,
     WMFWKScriptMessageConsoleMessage,
     WMFWKScriptMessageClickLink,
@@ -9,8 +10,7 @@
     WMFWKScriptMessageClickEdit,
     WMFWKScriptMessageNonAnchorTouchEndedWithoutDragging,
     WMFWKScriptMessageLateJavascriptTransform,
-    WMFWKScriptMessageArticleState,
-    WMFWKScriptMessageUnknown
+    WMFWKScriptMessageArticleState
 };
 
 @interface WKScriptMessage (WMFScriptMessage)
Move unknown enum entry to top.
