Commit 1be1dbcf authored by zandobersek@gmail.com's avatar zandobersek@gmail.com

Build fixes for GCC-using ports after r159965 and later

https://bugs.webkit.org/show_bug.cgi?id=125136

GCC doesn't process API::ClientTraits template instantiations unless they're done
inside the API namespace.

* Shared/WebConnectionClient.h:
* UIProcess/Notifications/WebNotificationProvider.h:
* UIProcess/WebContextClient.h:
* UIProcess/WebContextConnectionClient.h:
* UIProcess/WebContextInjectedBundleClient.h:
* UIProcess/WebCookieManagerProxyClient.h:
* UIProcess/WebDatabaseManagerProxyClient.h:
* UIProcess/WebDownloadClient.h:
* UIProcess/WebFindClient.h:
* UIProcess/WebFormClient.h:
* UIProcess/WebGeolocationProvider.h:
* UIProcess/WebHistoryClient.h:
* UIProcess/WebIconDatabaseClient.h:
* UIProcess/WebLoaderClient.h:
* UIProcess/WebOriginDataManagerProxyChangeClient.h:
* UIProcess/WebPageContextMenuClient.h:
* UIProcess/WebPolicyClient.h:
* UIProcess/WebUIClient.h:
* WebProcess/InjectedBundle/InjectedBundleClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
* WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 95980ca3
2013-12-02 Zan Dobersek <zdobersek@igalia.com>
Build fixes for GCC-using ports after r159965 and later
https://bugs.webkit.org/show_bug.cgi?id=125136
GCC doesn't process API::ClientTraits template instantiations unless they're done
inside the API namespace.
* Shared/WebConnectionClient.h:
* UIProcess/Notifications/WebNotificationProvider.h:
* UIProcess/WebContextClient.h:
* UIProcess/WebContextConnectionClient.h:
* UIProcess/WebContextInjectedBundleClient.h:
* UIProcess/WebCookieManagerProxyClient.h:
* UIProcess/WebDatabaseManagerProxyClient.h:
* UIProcess/WebDownloadClient.h:
* UIProcess/WebFindClient.h:
* UIProcess/WebFormClient.h:
* UIProcess/WebGeolocationProvider.h:
* UIProcess/WebHistoryClient.h:
* UIProcess/WebIconDatabaseClient.h:
* UIProcess/WebLoaderClient.h:
* UIProcess/WebOriginDataManagerProxyChangeClient.h:
* UIProcess/WebPageContextMenuClient.h:
* UIProcess/WebPolicyClient.h:
* UIProcess/WebUIClient.h:
* WebProcess/InjectedBundle/InjectedBundleClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
* WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
2013-12-02 Dan Bernstein <mitz@apple.com>
Build fix.
......
......@@ -30,12 +30,12 @@
#include "WKConnectionRef.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKConnectionClientBase> {
typedef std::tuple<WKConnectionClientV0> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKConnectionClientBase> {
typedef std::tuple<WKConnectionClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -31,9 +31,11 @@
#include <wtf/Forward.h>
#include <wtf/Vector.h>
template<> struct API::ClientTraits<WKNotificationProviderBase> {
namespace API {
template<> struct ClientTraits<WKNotificationProviderBase> {
typedef std::tuple<WKNotificationProviderV0> Versions;
};
}
namespace WebKit {
......
......@@ -29,12 +29,12 @@
#include "APIClient.h"
#include "WKContext.h"
template<> struct API::ClientTraits<WKContextClientBase> {
typedef std::tuple<WKContextClientV0> Versions;
};
namespace API {
class Array;
template<> struct ClientTraits<WKContextClientBase> {
typedef std::tuple<WKContextClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -29,9 +29,11 @@
#include "APIClient.h"
#include "WKContext.h"
template<> struct API::ClientTraits<WKContextConnectionClientBase> {
namespace API {
template<> struct ClientTraits<WKContextConnectionClientBase> {
typedef std::tuple<WKContextConnectionClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -30,12 +30,12 @@
#include "WKContext.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKContextInjectedBundleClientBase> {
typedef std::tuple<WKContextInjectedBundleClientV0, WKContextInjectedBundleClientV1> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKContextInjectedBundleClientBase> {
typedef std::tuple<WKContextInjectedBundleClientV0, WKContextInjectedBundleClientV1> Versions;
};
}
namespace WebKit {
......
......@@ -30,9 +30,11 @@
#include "WKCookieManager.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKCookieManagerClientBase> {
namespace API {
template<> struct ClientTraits<WKCookieManagerClientBase> {
typedef std::tuple<WKCookieManagerClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -30,9 +30,11 @@
#include "WKDatabaseManager.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKDatabaseManagerClientBase> {
namespace API {
template<> struct ClientTraits<WKDatabaseManagerClientBase> {
typedef std::tuple<WKDatabaseManagerClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -30,9 +30,11 @@
#include "WKContext.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKContextDownloadClientBase> {
namespace API {
template<> struct ClientTraits<WKContextDownloadClientBase> {
typedef std::tuple<WKContextDownloadClientV0> Versions;
};
}
namespace WebCore {
class ResourceError;
......
......@@ -30,16 +30,16 @@
#include "WKPage.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKPageFindClientBase> {
namespace API {
class Array;
template<> struct ClientTraits<WKPageFindClientBase> {
typedef std::tuple<WKPageFindClientV0> Versions;
};
template<> struct API::ClientTraits<WKPageFindMatchesClientBase> {
template<> struct ClientTraits<WKPageFindMatchesClientBase> {
typedef std::tuple<WKPageFindMatchesClientV0> Versions;
};
namespace API {
class Array;
}
namespace WebKit {
......
......@@ -32,12 +32,12 @@
#include <wtf/Forward.h>
#include <wtf/Vector.h>
template<> struct API::ClientTraits<WKPageFormClientBase> {
typedef std::tuple<WKPageFormClientV0> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKPageFormClientBase> {
typedef std::tuple<WKPageFormClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -30,9 +30,11 @@
#include "WKGeolocationManager.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKGeolocationProviderBase> {
namespace API {
template<> struct ClientTraits<WKGeolocationProviderBase> {
typedef std::tuple<WKGeolocationProviderV0, WKGeolocationProviderV1> Versions;
};
}
namespace WebKit {
......
......@@ -30,9 +30,11 @@
#include "WKContext.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKContextHistoryClientBase> {
namespace API {
template<> struct ClientTraits<WKContextHistoryClientBase> {
typedef std::tuple<WKContextHistoryClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -29,9 +29,11 @@
#include "APIClient.h"
#include "WKIconDatabase.h"
template<> struct API::ClientTraits<WKIconDatabaseClientBase> {
namespace API {
template<> struct ClientTraits<WKIconDatabaseClientBase> {
typedef std::tuple<WKIconDatabaseClientV0, WKIconDatabaseClientV1> Versions;
};
}
namespace WebKit {
......
......@@ -35,12 +35,12 @@
#include <wtf/RefPtr.h>
#include <wtf/Vector.h>
template<> struct API::ClientTraits<WKPageLoaderClientBase> {
typedef std::tuple<WKPageLoaderClientV0, WKPageLoaderClientV1, WKPageLoaderClientV2, WKPageLoaderClientV3> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKPageLoaderClientBase> {
typedef std::tuple<WKPageLoaderClientV0, WKPageLoaderClientV1, WKPageLoaderClientV2, WKPageLoaderClientV3> Versions;
};
}
namespace WebCore {
......
......@@ -30,9 +30,11 @@
#include "WKOriginDataManager.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKOriginDataManagerChangeClientBase> {
namespace API {
template<> struct ClientTraits<WKOriginDataManagerChangeClientBase> {
typedef std::tuple<WKOriginDataManagerChangeClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -34,9 +34,11 @@
#include <WebCore/IntPoint.h>
#include <wtf/Vector.h>
template<> struct API::ClientTraits<WKPageContextMenuClientBase> {
namespace API {
template<> struct ClientTraits<WKPageContextMenuClientBase> {
typedef std::tuple<WKPageContextMenuClientV0, WKPageContextMenuClientV1, WKPageContextMenuClientV2, WKPageContextMenuClientV3> Versions;
};
}
namespace WebKit {
......
......@@ -32,12 +32,12 @@
#include <WebCore/FrameLoaderTypes.h>
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKPagePolicyClientBase> {
typedef std::tuple<WKPagePolicyClientV0, WKPagePolicyClientV1> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKPagePolicyClientBase> {
typedef std::tuple<WKPagePolicyClientV0, WKPagePolicyClientV1> Versions;
};
}
namespace WebCore {
......
......@@ -34,9 +34,11 @@
#include <wtf/Forward.h>
#include <wtf/PassRefPtr.h>
template<> struct API::ClientTraits<WKPageUIClientBase> {
namespace API {
template<> struct ClientTraits<WKPageUIClientBase> {
typedef std::tuple<WKPageUIClientV0, WKPageUIClientV1, WKPageUIClientV2> Versions;
};
}
namespace WebCore {
class FloatRect;
......
......@@ -30,12 +30,12 @@
#include "WKBundle.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundleClientBase> {
typedef std::tuple<WKBundleClientV0, WKBundleClientV1> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKBundleClientBase> {
typedef std::tuple<WKBundleClientV0, WKBundleClientV1> Versions;
};
}
namespace WebKit {
......
......@@ -32,12 +32,12 @@
#include "WKBundlePage.h"
#include <wtf/Vector.h>
template<> struct API::ClientTraits<WKBundlePageContextMenuClientBase> {
typedef std::tuple<WKBundlePageContextMenuClientV0> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKBundlePageContextMenuClientBase> {
typedef std::tuple<WKBundlePageContextMenuClientV0> Versions;
};
}
namespace WebCore {
......
......@@ -31,9 +31,11 @@
#include <JavaScriptCore/JSBase.h>
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundlePageDiagnosticLoggingClientBase> {
namespace API {
template<> struct ClientTraits<WKBundlePageDiagnosticLoggingClientBase> {
typedef std::tuple<WKBundlePageDiagnosticLoggingClientV0> Versions;
};
}
namespace WebKit {
......
......@@ -33,9 +33,11 @@
#include <WebCore/TextAffinity.h>
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundlePageEditorClientBase> {
namespace API {
template<> struct ClientTraits<WKBundlePageEditorClientBase> {
typedef std::tuple<WKBundlePageEditorClientV0, WKBundlePageEditorClientV1> Versions;
};
}
namespace WebCore {
class CSSStyleDeclaration;
......
......@@ -32,12 +32,12 @@
#include <wtf/Forward.h>
#include <wtf/Vector.h>
template<> struct API::ClientTraits<WKBundlePageFormClientBase> {
typedef std::tuple<WKBundlePageFormClientV0, WKBundlePageFormClientV1, WKBundlePageFormClientV2> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKBundlePageFormClientBase> {
typedef std::tuple<WKBundlePageFormClientV0, WKBundlePageFormClientV1, WKBundlePageFormClientV2> Versions;
};
}
namespace WebCore {
......
......@@ -33,9 +33,11 @@
#include "WebEvent.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundlePageFullScreenClientBase> {
namespace API {
template<> struct ClientTraits<WKBundlePageFullScreenClientBase> {
typedef std::tuple<WKBundlePageFullScreenClientV0, WKBundlePageFullScreenClientV1> Versions;
};
}
namespace WebCore {
class Element;
......
......@@ -36,11 +36,11 @@
namespace API {
class Object;
}
template<> struct API::ClientTraits<WKBundlePageLoaderClientBase> {
template<> struct ClientTraits<WKBundlePageLoaderClientBase> {
typedef std::tuple<WKBundlePageLoaderClientV0, WKBundlePageLoaderClientV1, WKBundlePageLoaderClientV2, WKBundlePageLoaderClientV3, WKBundlePageLoaderClientV4, WKBundlePageLoaderClientV5, WKBundlePageLoaderClientV6, WKBundlePageLoaderClientV7> Versions;
};
}
namespace WebCore {
class DOMWindowExtension;
......
......@@ -31,9 +31,11 @@
#include "WKBundlePage.h"
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundlePagePolicyClientBase> {
namespace API {
template<> struct ClientTraits<WKBundlePagePolicyClientBase> {
typedef std::tuple<WKBundlePagePolicyClientV0> Versions;
};
}
namespace WebCore {
class ResourceError;
......
......@@ -32,9 +32,11 @@
#include <JavaScriptCore/JSBase.h>
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundlePageResourceLoadClientBase> {
namespace API {
template<> struct ClientTraits<WKBundlePageResourceLoadClientBase> {
typedef std::tuple<WKBundlePageResourceLoadClientV0, WKBundlePageResourceLoadClientV1> Versions;
};
}
namespace WebCore {
class ResourceError;
......
......@@ -32,12 +32,12 @@
#include <WebCore/RenderSnapshottedPlugIn.h>
#include <wtf/Forward.h>
template<> struct API::ClientTraits<WKBundlePageUIClientBase> {
typedef std::tuple<WKBundlePageUIClientV0, WKBundlePageUIClientV1, WKBundlePageUIClientV2> Versions;
};
namespace API {
class Object;
template<> struct ClientTraits<WKBundlePageUIClientBase> {
typedef std::tuple<WKBundlePageUIClientV0, WKBundlePageUIClientV1, WKBundlePageUIClientV2> Versions;
};
}
namespace WebCore {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment