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;
|
return wxWEBKIT_NAV_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@interface MyFrameLoadMonitor : NSObject
|
@interface MyFrameLoadMonitor : NSObject <WebFrameLoadDelegate>
|
||||||
{
|
{
|
||||||
wxWebKitCtrl* webKitWindow;
|
wxWebKitCtrl* webKitWindow;
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,7 @@ inline int wxNavTypeFromWebNavType(int type){
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface MyPolicyDelegate : NSObject
|
@interface MyPolicyDelegate : NSObject <WebPolicyDelegate>
|
||||||
{
|
{
|
||||||
wxWebKitCtrl* webKitWindow;
|
wxWebKitCtrl* webKitWindow;
|
||||||
}
|
}
|
||||||
@@ -148,7 +148,7 @@ inline int wxNavTypeFromWebNavType(int type){
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface MyUIDelegate : NSObject
|
@interface MyUIDelegate : NSObject <WebUIDelegate>
|
||||||
{
|
{
|
||||||
wxWebKitCtrl* webKitWindow;
|
wxWebKitCtrl* webKitWindow;
|
||||||
}
|
}
|
||||||
|
@@ -50,7 +50,7 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewWebKit, wxWebView);
|
|||||||
wxBEGIN_EVENT_TABLE(wxWebViewWebKit, wxControl)
|
wxBEGIN_EVENT_TABLE(wxWebViewWebKit, wxControl)
|
||||||
wxEND_EVENT_TABLE()
|
wxEND_EVENT_TABLE()
|
||||||
|
|
||||||
@interface WebViewLoadDelegate : NSObject
|
@interface WebViewLoadDelegate : NSObject <WebFrameLoadDelegate>
|
||||||
{
|
{
|
||||||
wxWebViewWebKit* webKitWindow;
|
wxWebViewWebKit* webKitWindow;
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ wxEND_EVENT_TABLE()
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface WebViewPolicyDelegate : NSObject
|
@interface WebViewPolicyDelegate : NSObject <WebPolicyDelegate>
|
||||||
{
|
{
|
||||||
wxWebViewWebKit* webKitWindow;
|
wxWebViewWebKit* webKitWindow;
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ wxEND_EVENT_TABLE()
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface WebViewUIDelegate : NSObject
|
@interface WebViewUIDelegate : NSObject <WebUIDelegate>
|
||||||
{
|
{
|
||||||
wxWebViewWebKit* webKitWindow;
|
wxWebViewWebKit* webKitWindow;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user