Changeset 119404 in webkit
- Timestamp:
- Jun 4, 2012 9:05:02 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r119400 r119404 1 2012-06-04 Mario Sanchez Prada <msanchez@igalia.com> 2 3 [GTK][WK2] Implement geolocation provider for the GTK port 4 https://bugs.webkit.org/show_bug.cgi?id=83877 5 6 Reviewed by Carlos Garcia Campos. 7 8 Add a new client-based geolocation provider for WebKit2GTK+, relying the 9 new Geoclue-based geolocation provider available in WebCore. 10 11 * GNUmakefile.am: 12 * GNUmakefile.list.am: 13 * UIProcess/API/gtk/WebKitGeolocationProvider.cpp: Added. 14 (toGeolocationProvider): 15 (startUpdatingCallback): 16 (stopUpdatingCallback): 17 (WebKitGeolocationProvider::~WebKitGeolocationProvider): 18 (WebKitGeolocationProvider::create): 19 (WebKitGeolocationProvider::WebKitGeolocationProvider): 20 (WebKitGeolocationProvider::startUpdating): 21 (WebKitGeolocationProvider::stopUpdating): 22 (WebKitGeolocationProvider::notifyPositionChanged): 23 (WebKitGeolocationProvider::notifyErrorOccurred): 24 * UIProcess/API/gtk/WebKitGeolocationProvider.h: Added. 25 * UIProcess/API/gtk/WebKitPrivate.h: 26 * UIProcess/API/gtk/WebKitWebContext.cpp: 27 (_WebKitWebContextPrivate): 28 (createDefaultWebContext): 29 1 30 2012-06-04 Zalan Bujtas <zbujtas@gmail.com> 2 31 -
trunk/Source/WebKit2/GNUmakefile.am
r116956 r119404 98 98 $(javascriptcore_cppflags) \ 99 99 $(COVERAGE_CFLAGS) \ 100 $(GEOCLUE_CFLAGS) \ 100 101 $(GLIB_CFLAGS) \ 101 102 $(GTK_CFLAGS) \ -
trunk/Source/WebKit2/GNUmakefile.list.am
r118731 r119404 512 512 Source/WebKit2/UIProcess/API/C/WKFramePolicyListener.cpp \ 513 513 Source/WebKit2/UIProcess/API/C/WKFramePolicyListener.h \ 514 Source/WebKit2/UIProcess/API/C/WKGeolocationManager.cpp \ 514 515 Source/WebKit2/UIProcess/API/C/WKGeolocationManager.h \ 515 516 Source/WebKit2/UIProcess/API/C/WKGeolocationPermissionRequest.h \ 517 Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp \ 516 518 Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.h \ 517 519 Source/WebKit2/UIProcess/API/C/WKGrammarDetail.cpp \ … … 583 585 Source/WebKit2/UIProcess/API/gtk/WebKitFullscreenClient.cpp \ 584 586 Source/WebKit2/UIProcess/API/gtk/WebKitFullscreenClient.h \ 587 Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.cpp \ 588 Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.h \ 585 589 Source/WebKit2/UIProcess/API/gtk/WebKitHitTestResult.cpp \ 586 590 Source/WebKit2/UIProcess/API/gtk/WebKitHitTestResult.h \ -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h
r118146 r119404 31 31 #include <WebKit2/WKFindOptions.h> 32 32 #include <WebKit2/WKFullScreenClientGtk.h> 33 #include <WebKit2/WKGeolocationManager.h> 34 #include <WebKit2/WKGeolocationPosition.h> 33 35 #include <WebKit2/WKInspector.h> 34 36 #include <WebKit2/WKInspectorClientGtk.h> -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp
r117735 r119404 25 25 #include "WebKitDownloadClient.h" 26 26 #include "WebKitDownloadPrivate.h" 27 #include "WebKitGeolocationProvider.h" 27 28 #include "WebKitPluginPrivate.h" 28 29 #include "WebKitPrivate.h" … … 45 46 46 47 GRefPtr<WebKitCookieManager> cookieManager; 48 #if ENABLE(GEOLOCATION) 49 RefPtr<WebKitGeolocationProvider> geolocationProvider; 50 #endif 47 51 }; 48 52 … … 94 98 WKContextSetCacheModel(webContext->priv->context.get(), kWKCacheModelPrimaryWebBrowser); 95 99 attachDownloadClientToContext(webContext.get()); 100 #if ENABLE(GEOLOCATION) 101 WKGeolocationManagerRef wkGeolocationManager = WKContextGetGeolocationManager(webContext->priv->context.get()); 102 webContext->priv->geolocationProvider = WebKitGeolocationProvider::create(wkGeolocationManager); 103 #endif 96 104 return webContext.get(); 97 105 } -
trunk/Tools/ChangeLog
r119377 r119404 1 2012-06-04 Mario Sanchez Prada <msanchez@igalia.com> 2 3 [GTK][WK2] Implement geolocation provider for the GTK port 4 https://bugs.webkit.org/show_bug.cgi?id=83877 5 6 Reviewed by Carlos Garcia Campos. 7 8 * gtk/generate-gtkdoc: 9 (get_webkit2_options): Ignore WebKitGeolocationProvider files. 10 1 11 2012-06-04 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 12 -
trunk/Tools/gtk/generate-gtkdoc
r108039 r119404 99 99 glob.glob(src_path('*Client*')) + \ 100 100 glob.glob(src_path('WebKitWebViewBaseAccessible.*')) + \ 101 glob.glob(src_path('WebKitGeolocationProvider.*')) + \ 101 102 glob.glob(src_path('tests/*.h')) 102 103 })
Note: See TracChangeset
for help on using the changeset viewer.