From 9d2f31db0c8c611af9f80efa5237f5479388350b Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Mon, 12 Sep 2011 18:35:39 +0000 Subject: [PATCH] Update wxWebView guards to stop backend compilation when wxUSE_WEBVIEW is 0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/webview_webkit.h | 4 ++-- include/wx/gtk/webviewhistoryitem_webkit.h | 4 ++-- include/wx/msw/webview_ie.h | 4 ++-- include/wx/msw/webviewhistoryitem_ie.h | 4 ++-- include/wx/osx/webview_webkit.h | 6 +++--- include/wx/osx/webviewhistoryitem_webkit.h | 6 +++--- src/gtk/webview_webkit.cpp | 4 ++-- src/msw/webview_ie.cpp | 4 ++-- src/osx/webview_webkit.mm | 6 +++--- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/include/wx/gtk/webview_webkit.h b/include/wx/gtk/webview_webkit.h index 3add4d993a..f1aaead3a3 100644 --- a/include/wx/gtk/webview_webkit.h +++ b/include/wx/gtk/webview_webkit.h @@ -12,7 +12,7 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) #include "webkit/webkit.h" #include "wx/sharedptr.h" @@ -154,6 +154,6 @@ private: wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit); }; -#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) #endif diff --git a/include/wx/gtk/webviewhistoryitem_webkit.h b/include/wx/gtk/webviewhistoryitem_webkit.h index 071f3fb9ff..b0a2de1863 100644 --- a/include/wx/gtk/webviewhistoryitem_webkit.h +++ b/include/wx/gtk/webviewhistoryitem_webkit.h @@ -12,7 +12,7 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) #include "webkit/webkit.h" @@ -31,6 +31,6 @@ private: WebKitWebHistoryItem* m_histItem; }; -#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__) #endif // _WX_GTK_WEBVIEWHISTORYITEM_H_ diff --git a/include/wx/msw/webview_ie.h b/include/wx/msw/webview_ie.h index bcc823ac23..cd63f0a8f5 100644 --- a/include/wx/msw/webview_ie.h +++ b/include/wx/msw/webview_ie.h @@ -12,7 +12,7 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_IE && defined(__WXMSW__) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__) #include "wx/control.h" #include "wx/webview.h" @@ -225,6 +225,6 @@ private: wxSharedPtr m_handler; }; -#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__) +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__) #endif // wxWebViewIE_H diff --git a/include/wx/msw/webviewhistoryitem_ie.h b/include/wx/msw/webviewhistoryitem_ie.h index 102b98f516..3283337f81 100644 --- a/include/wx/msw/webviewhistoryitem_ie.h +++ b/include/wx/msw/webviewhistoryitem_ie.h @@ -12,7 +12,7 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_IE && defined(__WXMSW__) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__) class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem { @@ -26,6 +26,6 @@ private: wxString m_url, m_title; }; -#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__) +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__) #endif // _WX_MSW_WEBVIEWHISTORYITEM_H_ diff --git a/include/wx/osx/webview_webkit.h b/include/wx/osx/webview_webkit.h index 32a4d98247..7fea5243a7 100644 --- a/include/wx/osx/webview_webkit.h +++ b/include/wx/osx/webview_webkit.h @@ -15,8 +15,8 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ - || defined(__WXOSX_CARBON__)) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ + || defined(__WXOSX_CARBON__)) #include "wx/control.h" #include "wx/webview.h" @@ -158,6 +158,6 @@ private: //TODO: look into using DECLARE_WXCOCOA_OBJC_CLASS rather than this. }; -#endif // wxUSE_WEBKIT +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT #endif // _WX_WEBKIT_H_ diff --git a/include/wx/osx/webviewhistoryitem_webkit.h b/include/wx/osx/webviewhistoryitem_webkit.h index 9ae2577496..776311cbea 100644 --- a/include/wx/osx/webviewhistoryitem_webkit.h +++ b/include/wx/osx/webviewhistoryitem_webkit.h @@ -12,8 +12,8 @@ #include "wx/setup.h" -#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ - || defined(__WXOSX_CARBON__)) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ + || defined(__WXOSX_CARBON__)) class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem { @@ -30,6 +30,6 @@ private: struct objc_object *m_histItem; }; -#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXOSX_MAC__) +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT #endif // _WX_OSX_WEBVIEWHISTORYITEM_H_ diff --git a/src/gtk/webview_webkit.cpp b/src/gtk/webview_webkit.cpp index 03cb7868e9..08199cd778 100644 --- a/src/gtk/webview_webkit.cpp +++ b/src/gtk/webview_webkit.cpp @@ -10,7 +10,7 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#if wxUSE_WEBVIEW_WEBKIT +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT #include "wx/stockitem.h" #include "wx/gtk/webview_webkit.h" @@ -930,4 +930,4 @@ wxWebViewWebKit::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) } -#endif // wxHAVE_WEB_BACKEND_GTK_WEBKIT +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index 92edb4ecd5..d76af6d707 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -16,7 +16,7 @@ #include "wx/msw/webview_ie.h" -#if wxUSE_WEBVIEW_IE +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE #include #include @@ -1134,4 +1134,4 @@ ULONG ClassFactory::Release(void) } -#endif +#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE diff --git a/src/osx/webview_webkit.mm b/src/osx/webview_webkit.mm index 0d0e0e72e3..74e23a63cc 100644 --- a/src/osx/webview_webkit.mm +++ b/src/osx/webview_webkit.mm @@ -14,8 +14,8 @@ #include "wx/osx/webview_webkit.h" -#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ - || defined(__WXOSX_CARBON__)) +#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \ + || defined(__WXOSX_CARBON__)) // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -1315,4 +1315,4 @@ wxString nsErrorToWxHtmlError(NSError* error, wxWebViewNavigationError* out) @end -#endif //wxUSE_WEBVIEW_WEBKIT +#endif //wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT -- 2.47.2