Declare Objective-C protocols in the code using web view
This avoids clang -Wincompatible-pointer-types warnings when setting delegates.
This commit is contained in:
@@ -130,7 +130,7 @@ inline int wxNavTypeFromWebNavType(int type){
|
||||
return wxWEBKIT_NAV_OTHER;
|
||||
}
|
||||
|
||||
@interface MyFrameLoadMonitor : NSObject
|
||||
@interface MyFrameLoadMonitor : NSObject <WebFrameLoadDelegate>
|
||||
{
|
||||
wxWebKitCtrl* webKitWindow;
|
||||
}
|
||||
@@ -139,7 +139,7 @@ inline int wxNavTypeFromWebNavType(int type){
|
||||
|
||||
@end
|
||||
|
||||
@interface MyPolicyDelegate : NSObject
|
||||
@interface MyPolicyDelegate : NSObject <WebPolicyDelegate>
|
||||
{
|
||||
wxWebKitCtrl* webKitWindow;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ inline int wxNavTypeFromWebNavType(int type){
|
||||
|
||||
@end
|
||||
|
||||
@interface MyUIDelegate : NSObject
|
||||
@interface MyUIDelegate : NSObject <WebUIDelegate>
|
||||
{
|
||||
wxWebKitCtrl* webKitWindow;
|
||||
}
|
||||
|
@@ -50,7 +50,7 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewWebKit, wxWebView);
|
||||
wxBEGIN_EVENT_TABLE(wxWebViewWebKit, wxControl)
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
@interface WebViewLoadDelegate : NSObject
|
||||
@interface WebViewLoadDelegate : NSObject <WebFrameLoadDelegate>
|
||||
{
|
||||
wxWebViewWebKit* webKitWindow;
|
||||
}
|
||||
@@ -59,7 +59,7 @@ wxEND_EVENT_TABLE()
|
||||
|
||||
@end
|
||||
|
||||
@interface WebViewPolicyDelegate : NSObject
|
||||
@interface WebViewPolicyDelegate : NSObject <WebPolicyDelegate>
|
||||
{
|
||||
wxWebViewWebKit* webKitWindow;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ wxEND_EVENT_TABLE()
|
||||
|
||||
@end
|
||||
|
||||
@interface WebViewUIDelegate : NSObject
|
||||
@interface WebViewUIDelegate : NSObject <WebUIDelegate>
|
||||
{
|
||||
wxWebViewWebKit* webKitWindow;
|
||||
}
|
||||
|
Reference in New Issue
Block a user