Changeset 243285 in webkit
- Timestamp:
- Mar 21, 2019, 3:10:35 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 deleted
- 28 edited
- 1 copied
-
ChangeLog (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/PlatformGTK.cmake (modified) (1 diff)
-
Source/WebCore/platform/geoclue/GeolocationProviderGeoclue.cpp (modified) (2 diffs)
-
Source/WebCore/platform/geoclue/GeolocationProviderGeoclue.h (modified) (2 diffs)
-
Source/WebCore/platform/geoclue/GeolocationProviderGeoclueClient.h (modified) (2 diffs)
-
Source/WebCore/platform/gtk/po/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/gtk/po/POTFILES.in (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/PlatformGTK.cmake (modified) (1 diff)
-
Source/WebKit/PlatformWPE.cmake (modified) (1 diff)
-
Source/WebKit/SourcesGTK.txt (modified) (1 diff)
-
Source/WebKit/SourcesWPE.txt (modified) (1 diff)
-
Source/WebKit/UIProcess/API/glib/WebKitGeolocationManager.cpp (added)
-
Source/WebKit/UIProcess/API/glib/WebKitGeolocationManagerPrivate.h (copied) (copied from trunk/Source/WebCore/platform/geoclue/GeolocationProviderGeoclueClient.h ) (2 diffs)
-
Source/WebKit/UIProcess/API/glib/WebKitGeolocationProvider.cpp (deleted)
-
Source/WebKit/UIProcess/API/glib/WebKitGeolocationProvider.h (deleted)
-
Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp (modified) (5 diffs)
-
Source/WebKit/UIProcess/API/gtk/WebKitGeolocationManager.h (added)
-
Source/WebKit/UIProcess/API/gtk/WebKitWebContext.h (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0.types (modified) (1 diff)
-
Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/gtk/webkit2.h (modified) (1 diff)
-
Source/WebKit/UIProcess/API/wpe/WebKitGeolocationManager.h (added)
-
Source/WebKit/UIProcess/API/wpe/WebKitWebContext.h (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/wpe/docs/wpe-1.0-sections.txt (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/wpe/docs/wpe-docs.sgml (modified) (2 diffs)
-
Source/WebKit/UIProcess/API/wpe/webkit.h (modified) (1 diff)
-
Source/cmake/OptionsGTK.cmake (modified) (3 diffs)
-
Source/cmake/OptionsWPE.cmake (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp (added)
-
Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp (modified) (3 diffs)
-
Tools/TestWebKitAPI/glib/CMakeLists.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r243275 r243285 1 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Add API to provide geolocation information 4 https://bugs.webkit.org/show_bug.cgi?id=195940 5 6 Reviewed by Michael Catanzaro. 7 8 Build with geolocation enabled by default in both GTK and WPE. In GTK add a specific USE_GEOCLUE build option 9 instead of using ENABLE_GEOLOCATION. 10 11 * Source/cmake/OptionsGTK.cmake: 12 * Source/cmake/OptionsWPE.cmake: 13 1 14 2019-03-20 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r243284 r243285 1 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Add API to provide geolocation information 4 https://bugs.webkit.org/show_bug.cgi?id=195940 5 6 Reviewed by Michael Catanzaro. 7 8 Replace ENABLE(GEOLOCATION) with USE(GEOCLUE). 9 10 * PlatformGTK.cmake: 11 * platform/geoclue/GeolocationProviderGeoclue.cpp: 12 * platform/geoclue/GeolocationProviderGeoclue.h: 13 * platform/geoclue/GeolocationProviderGeoclueClient.h: 14 1 15 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 16 -
trunk/Source/WebCore/PlatformGTK.cmake
r238675 r243285 76 76 ) 77 77 78 if ( ENABLE_GEOLOCATION)78 if (USE_GEOCLUE) 79 79 list(APPEND WebCore_SOURCES 80 80 ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c -
trunk/Source/WebCore/platform/geoclue/GeolocationProviderGeoclue.cpp
r235115 r243285 27 27 #include "GeolocationProviderGeoclue.h" 28 28 29 #if ENABLE(GEOLOCATION)29 #if USE(GEOCLUE) 30 30 31 31 #include <wtf/glib/GLibUtilities.h> … … 213 213 } // namespace WebCore 214 214 215 #endif // ENABLE(GEOLOCATION)215 #endif // USE(GEOCLUE) -
trunk/Source/WebCore/platform/geoclue/GeolocationProviderGeoclue.h
r220515 r243285 19 19 */ 20 20 21 #ifndef GeolocationProviderGeoclue_h 22 #define GeolocationProviderGeoclue_h 21 #pragma once 23 22 24 #if ENABLE(GEOLOCATION)23 #if USE(GEOCLUE) 25 24 26 25 #include "GeolocationProviderGeoclueClient.h" … … 72 71 } // namespace WebCore 73 72 74 #endif // ENABLE(GEOLOCATION) 75 76 #endif // GeolocationProviderGeoclue_h 73 #endif // USE(GEOCLUE) -
trunk/Source/WebCore/platform/geoclue/GeolocationProviderGeoclueClient.h
r119249 r243285 18 18 */ 19 19 20 #ifndef GeolocationProviderGeoclueClient_h 21 #define GeolocationProviderGeoclueClient_h 20 #pragma once 22 21 23 #if ENABLE(GEOLOCATION)22 #if USE(GEOCLUE) 24 23 25 24 namespace WebCore { … … 33 32 } // namespace WebCore 34 33 35 #endif // ENABLE(GEOLOCATION) 36 37 #endif // GeolocationProviderGeoclueClient_h 34 #endif // USE(GEOCLUE) -
trunk/Source/WebCore/platform/gtk/po/ChangeLog
r242863 r243285 1 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Add API to provide geolocation information 4 https://bugs.webkit.org/show_bug.cgi?id=195940 5 6 Reviewed by Michael Catanzaro. 7 8 * POTFILES.in: Add WebKitGeolocationManager.cpp. 9 1 10 2019-03-13 Milo Casagrande <milo@milo.name> 2 11 -
trunk/Source/WebCore/platform/gtk/po/POTFILES.in
r242348 r243285 17 17 ../../../WebKit/UIProcess/API/glib/WebKitFileChooserRequest.cpp 18 18 ../../../WebKit/UIProcess/API/glib/WebKitFindController.cpp 19 ../../../WebKit/UIProcess/API/glib/WebKitGeolocationManager.cpp 19 20 ../../../WebKit/UIProcess/API/glib/WebKitNavigationPolicyDecision.cpp 20 21 ../../../WebKit/UIProcess/API/glib/WebKitNotification.cpp -
trunk/Source/WebKit/ChangeLog
r243276 r243285 1 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Add API to provide geolocation information 4 https://bugs.webkit.org/show_bug.cgi?id=195940 5 6 Reviewed by Michael Catanzaro. 7 8 Add WebKitGeolocationManager public class to handle geolocation position updates. WebKitGeolocationProvider has 9 been removed and the default implementation based on GeoClue is done by WebKitGeolocationManager. 10 11 * PlatformGTK.cmake: 12 * PlatformWPE.cmake: 13 * SourcesGTK.txt: 14 * SourcesWPE.txt: 15 * UIProcess/API/glib/WebKitGeolocationManager.cpp: Added. 16 (_WebKitGeolocationPosition::_WebKitGeolocationPosition): 17 (webkit_geolocation_position_new): 18 (webkit_geolocation_position_copy): 19 (webkit_geolocation_position_free): 20 (webkit_geolocation_position_set_timestamp): 21 (webkit_geolocation_position_set_altitude): 22 (webkit_geolocation_position_set_altitude_accuracy): 23 (webkit_geolocation_position_set_heading): 24 (webkit_geolocation_position_set_speed): 25 (webkitGeolocationManagerStop): 26 (webkitGeolocationManagerSetEnableHighAccuracy): 27 (webkitGeolocationManagerCreate): 28 (webkitGeolocationManagerGetProperty): 29 (webkit_geolocation_manager_class_init): 30 (webkit_gelocation_manager_update_position): 31 (webkit_gelocation_manager_failed): 32 (webkit_geolocation_manager_get_enable_high_accuracy): 33 * UIProcess/API/glib/WebKitGeolocationManagerPrivate.h: Copied from Source/WebCore/platform/geoclue/GeolocationProviderGeoclueClient.h. 34 * UIProcess/API/glib/WebKitGeolocationProvider.cpp: Removed. 35 * UIProcess/API/glib/WebKitGeolocationProvider.h: Removed. 36 * UIProcess/API/glib/WebKitWebContext.cpp: 37 (webkitWebContextConstructed): Create a WebKitGeolocationManager instead of a WebKitGeolocationProvider. 38 (webkit_web_context_get_geolocation_manager): Get the WebKitGeolocationManager. 39 * UIProcess/API/gtk/WebKitGeolocationManager.h: Added. 40 * UIProcess/API/gtk/WebKitWebContext.h: 41 * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: 42 * UIProcess/API/gtk/docs/webkit2gtk-4.0.types: 43 * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: 44 * UIProcess/API/gtk/webkit2.h: 45 * UIProcess/API/wpe/WebKitGeolocationManager.h: Added. 46 * UIProcess/API/wpe/WebKitWebContext.h: 47 * UIProcess/API/wpe/docs/wpe-0.1-sections.txt: 48 * UIProcess/API/wpe/docs/wpe-docs.sgml: 49 * UIProcess/API/wpe/webkit.h: 50 1 51 2019-03-20 Youenn Fablet <youenn@apple.com> 2 52 -
trunk/Source/WebKit/PlatformGTK.cmake
r242346 r243285 83 83 ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFormSubmissionRequest.h 84 84 ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitForwardDeclarations.h 85 ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitGeolocationManager.h 85 86 ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h 86 87 ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h -
trunk/Source/WebKit/PlatformWPE.cmake
r242709 r243285 114 114 ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitFindController.h 115 115 ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitFormSubmissionRequest.h 116 ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitGeolocationManager.h 116 117 ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitGeolocationPermissionRequest.h 117 118 ${WEBKIT_DIR}/UIProcess/API/wpe/WebKitHitTestResult.h -
trunk/Source/WebKit/SourcesGTK.txt
r242346 r243285 147 147 UIProcess/API/glib/WebKitFormClient.cpp @no-unify 148 148 UIProcess/API/glib/WebKitFormSubmissionRequest.cpp @no-unify 149 UIProcess/API/glib/WebKitGeolocationManager.cpp @no-unify 149 150 UIProcess/API/glib/WebKitGeolocationPermissionRequest.cpp @no-unify 150 UIProcess/API/glib/WebKitGeolocationProvider.cpp @no-unify151 151 UIProcess/API/glib/WebKitIconLoadingClient.cpp @no-unify 152 152 UIProcess/API/glib/WebKitInjectedBundleClient.cpp @no-unify -
trunk/Source/WebKit/SourcesWPE.txt
r242346 r243285 132 132 UIProcess/API/glib/WebKitFormClient.cpp @no-unify 133 133 UIProcess/API/glib/WebKitFormSubmissionRequest.cpp @no-unify 134 UIProcess/API/glib/WebKitGeolocationManager.cpp @no-unify 134 135 UIProcess/API/glib/WebKitGeolocationPermissionRequest.cpp @no-unify 135 UIProcess/API/glib/WebKitGeolocationProvider.cpp @no-unify136 136 UIProcess/API/glib/WebKitInjectedBundleClient.cpp @no-unify 137 137 UIProcess/API/glib/WebKitInstallMissingMediaPluginsPermissionRequest.cpp @no-unify -
trunk/Source/WebKit/UIProcess/API/glib/WebKitGeolocationManagerPrivate.h
r243284 r243285 1 1 /* 2 * Copyright (C) 201 2Igalia S.L.2 * Copyright (C) 2019 Igalia S.L. 3 3 * 4 4 * This library is free software; you can redistribute it and/or … … 18 18 */ 19 19 20 #ifndef GeolocationProviderGeoclueClient_h 21 #define GeolocationProviderGeoclueClient_h 20 #pragma once 22 21 23 #if ENABLE(GEOLOCATION) 22 #include "WebGeolocationManagerProxy.h" 23 #include "WebKitGeolocationManager.h" 24 24 25 namespace WebCore { 26 27 class GeolocationProviderGeoclueClient { 28 public: 29 virtual void notifyPositionChanged(int timestamp, double latitude, double longitude, double altitude, double accuracy, double altitudeAccuracy) = 0; 30 virtual void notifyErrorOccurred(const char* message) = 0; 31 }; 32 33 } // namespace WebCore 34 35 #endif // ENABLE(GEOLOCATION) 36 37 #endif // GeolocationProviderGeoclueClient_h 25 WebKitGeolocationManager* webkitGeolocationManagerCreate(WebKit::WebGeolocationManagerProxy*); -
trunk/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
r243110 r243285 32 32 #include "WebAutomationSession.h" 33 33 #include "WebCertificateInfo.h" 34 #include "WebGeolocationManagerProxy.h"35 34 #include "WebKitAutomationSessionPrivate.h" 36 35 #include "WebKitCustomProtocolManagerClient.h" … … 38 37 #include "WebKitDownloadPrivate.h" 39 38 #include "WebKitFaviconDatabasePrivate.h" 40 #include "WebKitGeolocation Provider.h"39 #include "WebKitGeolocationManagerPrivate.h" 41 40 #include "WebKitInjectedBundleClient.h" 42 41 #include "WebKitNetworkProxySettingsPrivate.h" … … 171 170 URISchemeHandlerMap uriSchemeHandlers; 172 171 URISchemeRequestMap uriSchemeRequests; 173 #if ENABLE(GEOLOCATION) 174 std::unique_ptr<WebKitGeolocationProvider> geolocationProvider; 175 #endif 172 GRefPtr<WebKitGeolocationManager> geolocationManager; 176 173 std::unique_ptr<WebKitNotificationProvider> notificationProvider; 177 174 GRefPtr<WebKitWebsiteDataManager> websiteDataManager; … … 368 365 attachCustomProtocolManagerClientToContext(webContext); 369 366 370 #if ENABLE(GEOLOCATION) 371 priv->geolocationProvider = std::make_unique<WebKitGeolocationProvider>(priv->processPool->supplement<WebGeolocationManagerProxy>()); 372 #endif 367 priv->geolocationManager = adoptGRef(webkitGeolocationManagerCreate(priv->processPool->supplement<WebGeolocationManagerProxy>())); 373 368 priv->notificationProvider = std::make_unique<WebKitNotificationProvider>(priv->processPool->supplement<WebNotificationManagerProxy>(), webContext); 374 369 #if PLATFORM(GTK) && ENABLE(REMOTE_INSPECTOR) … … 868 863 } 869 864 865 /** 866 * webkit_web_context_get_geolocation_manager: 867 * @context: a #WebKitWebContext 868 * 869 * Get the #WebKitGeolocationManager of @context. 870 * 871 * Returns: (transfer none): the #WebKitGeolocationManager of @context. 872 * 873 * Since: 2.26 874 */ 875 WebKitGeolocationManager* webkit_web_context_get_geolocation_manager(WebKitWebContext* context) 876 { 877 g_return_val_if_fail(WEBKIT_IS_WEB_CONTEXT(context), nullptr); 878 879 return context->priv->geolocationManager.get(); 880 } 881 870 882 static void ensureFaviconDatabase(WebKitWebContext* context) 871 883 { -
trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebContext.h
r240473 r243285 31 31 #include <webkit2/WebKitDownload.h> 32 32 #include <webkit2/WebKitFaviconDatabase.h> 33 #include <webkit2/WebKitGeolocationManager.h> 33 34 #include <webkit2/WebKitNetworkProxySettings.h> 34 35 #include <webkit2/WebKitSecurityManager.h> … … 215 216 webkit_web_context_get_cookie_manager (WebKitWebContext *context); 216 217 218 WEBKIT_API WebKitGeolocationManager * 219 webkit_web_context_get_geolocation_manager (WebKitWebContext *context); 220 217 221 WEBKIT_API WebKitFaviconDatabase * 218 222 webkit_web_context_get_favicon_database (WebKitWebContext *context); -
trunk/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt
r241790 r243285 45 45 webkit_web_context_download_uri 46 46 webkit_web_context_get_cookie_manager 47 webkit_web_context_get_geolocation_manager 47 48 webkit_web_context_get_favicon_database 48 49 webkit_web_context_set_favicon_database_directory … … 1495 1496 1496 1497 <SECTION> 1498 <FILE>WebKitGeolocationManager</FILE> 1499 WebKitGeolocationManager 1500 webkit_gelocation_manager_update_position 1501 webkit_gelocation_manager_failed 1502 webkit_geolocation_manager_get_enable_high_accuracy 1503 1504 <SUBSECTION Position> 1505 WebKitGeolocationPosition 1506 webkit_geolocation_position_new 1507 webkit_geolocation_position_copy 1508 webkit_geolocation_position_free 1509 webkit_geolocation_position_set_timestamp 1510 webkit_geolocation_position_set_altitude 1511 webkit_geolocation_position_set_altitude_accuracy 1512 webkit_geolocation_position_set_heading 1513 webkit_geolocation_position_set_speed 1514 1515 <SUBSECTION Private> 1516 WebKitGeolocationManagerPrivate 1517 webkit_geolocation_manager_get_type 1518 webkit_geolocation_position_get_type 1519 1520 <SUBSECTION Standard> 1521 WebKitGeolocationManagerClass 1522 WEBKIT_TYPE_GEOLOCATION_MANAGER 1523 WEBKIT_GEOLOCATION_MANAGER 1524 WEBKIT_IS_GEOLOCATION_MANAGER 1525 WEBKIT_GEOLOCATION_MANAGER_CLASS 1526 WEBKIT_IS_GEOLOCATION_MANAGER_CLASS 1527 WEBKIT_GEOLOCATION_MANAGER_GET_CLASS 1528 WEBKIT_TYPE_GEOLOCATION_POSITION 1529 </SECTION> 1530 1531 <SECTION> 1497 1532 <FILE>WebKitWebExtension</FILE> 1498 1533 WebKitWebExtension -
trunk/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0.types
r241936 r243285 41 41 webkit_option_menu_item_get_type 42 42 webkit_device_info_permission_request_get_type 43 webkit_geolocation_manager_get_type 44 webkit_geolocation_position_get_type -
trunk/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml
r241936 r243285 63 63 <xi:include href="xml/WebKitAutomationSession.xml"/> 64 64 <xi:include href="xml/WebKitApplicationInfo.xml"/> 65 <xi:include href="xml/WebKitGeolocationManager.xml"/> 65 66 </chapter> 66 67 … … 150 151 </index> 151 152 153 <index id="api-index-2-26" role="2.26"> 154 <title>Index of new symbols in 2.26</title> 155 <xi:include href="xml/api-index-2.26.xml"><xi:fallback /></xi:include> 156 </index> 157 152 158 <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include> 153 159 </book> -
trunk/Source/WebKit/UIProcess/API/gtk/webkit2.h
r241790 r243285 50 50 #include <webkit2/WebKitFindController.h> 51 51 #include <webkit2/WebKitFormSubmissionRequest.h> 52 #include <webkit2/WebKitGeolocationManager.h> 52 53 #include <webkit2/WebKitGeolocationPermissionRequest.h> 53 54 #include <webkit2/WebKitHitTestResult.h> -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitWebContext.h
r240473 r243285 31 31 #include <wpe/WebKitDownload.h> 32 32 #include <wpe/WebKitFaviconDatabase.h> 33 #include <wpe/WebKitGeolocationManager.h> 33 34 #include <wpe/WebKitNetworkProxySettings.h> 34 35 #include <wpe/WebKitSecurityManager.h> … … 215 216 webkit_web_context_get_cookie_manager (WebKitWebContext *context); 216 217 218 WEBKIT_API WebKitGeolocationManager * 219 webkit_web_context_get_geolocation_manager (WebKitWebContext *context); 220 217 221 WEBKIT_API WebKitFaviconDatabase * 218 222 webkit_web_context_get_favicon_database (WebKitWebContext *context); -
trunk/Source/WebKit/UIProcess/API/wpe/docs/wpe-1.0-sections.txt
r243073 r243285 23 23 webkit_web_context_download_uri 24 24 webkit_web_context_get_cookie_manager 25 webkit_web_context_get_geolocation_manager 25 26 webkit_web_context_get_favicon_database 26 27 webkit_web_context_set_favicon_database_directory … … 1369 1370 1370 1371 <SECTION> 1372 <FILE>WebKitGeolocationManager</FILE> 1373 WebKitGeolocationManager 1374 webkit_gelocation_manager_update_position 1375 webkit_gelocation_manager_failed 1376 webkit_geolocation_manager_get_enable_high_accuracy 1377 1378 <SUBSECTION Position> 1379 WebKitGeolocationPosition 1380 webkit_geolocation_position_new 1381 webkit_geolocation_position_copy 1382 webkit_geolocation_position_free 1383 webkit_geolocation_position_set_timestamp 1384 webkit_geolocation_position_set_altitude 1385 webkit_geolocation_position_set_altitude_accuracy 1386 webkit_geolocation_position_set_heading 1387 webkit_geolocation_position_set_speed 1388 1389 <SUBSECTION Private> 1390 WebKitGeolocationManagerPrivate 1391 webkit_geolocation_manager_get_type 1392 webkit_geolocation_position_get_type 1393 1394 <SUBSECTION Standard> 1395 WebKitGeolocationManagerClass 1396 WEBKIT_TYPE_GEOLOCATION_MANAGER 1397 WEBKIT_GEOLOCATION_MANAGER 1398 WEBKIT_IS_GEOLOCATION_MANAGER 1399 WEBKIT_GEOLOCATION_MANAGER_CLASS 1400 WEBKIT_IS_GEOLOCATION_MANAGER_CLASS 1401 WEBKIT_GEOLOCATION_MANAGER_GET_CLASS 1402 WEBKIT_TYPE_GEOLOCATION_POSITION 1403 </SECTION> 1404 1405 <SECTION> 1371 1406 <FILE>WebKitURIUtilities</FILE> 1372 1407 webkit_uri_for_display -
trunk/Source/WebKit/UIProcess/API/wpe/docs/wpe-docs.sgml
r242082 r243285 57 57 <xi:include href="xml/WebKitApplicationInfo.xml"/> 58 58 <xi:include href="xml/WebKitColor.xml"/> 59 <xi:include href="xml/WebKitGeolocationManager.xml"/> 59 60 </chapter> 60 61 … … 83 84 </index> 84 85 86 <index id="api-index-2-24" role="2.24"> 87 <title>Index of new symbols in 2.24</title> 88 <xi:include href="xml/api-index-2.24.xml"><xi:fallback /></xi:include> 89 </index> 90 91 <index id="api-index-2-26" role="2.26"> 92 <title>Index of new symbols in 2.26</title> 93 <xi:include href="xml/api-index-2.62.xml"><xi:fallback /></xi:include> 94 </index> 95 85 96 <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include> 86 97 </book> -
trunk/Source/WebKit/UIProcess/API/wpe/webkit.h
r242312 r243285 48 48 #include <wpe/WebKitFindController.h> 49 49 #include <wpe/WebKitFormSubmissionRequest.h> 50 #include <wpe/WebKitGeolocationManager.h> 50 51 #include <wpe/WebKitGeolocationPermissionRequest.h> 51 52 #include <wpe/WebKitHitTestResult.h> -
trunk/Source/cmake/OptionsGTK.cmake
r242709 r243285 81 81 WEBKIT_OPTION_DEFINE(ENABLE_X11_TARGET "Whether to enable support for the X11 windowing target." PUBLIC ${GTK3_SUPPORTS_X11}) 82 82 WEBKIT_OPTION_DEFINE(ENABLE_WAYLAND_TARGET "Whether to enable support for the Wayland windowing target." PUBLIC ${GTK3_SUPPORTS_WAYLAND}) 83 WEBKIT_OPTION_DEFINE(USE_GEOCLUE "Whether to enable default geolocation implementation using GeoClue2" PUBLIC ON) 83 84 WEBKIT_OPTION_DEFINE(USE_LIBNOTIFY "Whether to enable the default web notification implementation." PUBLIC ON) 84 85 WEBKIT_OPTION_DEFINE(USE_LIBHYPHEN "Whether to enable the default automatic hyphenation implementation." PUBLIC ON) … … 141 142 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ASYNC_SCROLLING PRIVATE ON) 142 143 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DRAG_SUPPORT PUBLIC ON) 143 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_GEOLOCATION PUBLIC ON)144 144 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ICONDATABASE PUBLIC ON) 145 145 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SPELLCHECK PUBLIC ON) … … 223 223 endif () 224 224 225 if ( ENABLE_GEOLOCATION)225 if (USE_GEOCLUE) 226 226 find_package(GeoClue2 2.1.5) 227 227 if (NOT GEOCLUE2_FOUND) 228 message(FATAL_ERROR "Geoclue is needed for ENABLE_GEOLOCATION.")228 message(FATAL_ERROR "Geoclue is needed for USE_GEOCLUE.") 229 229 endif () 230 230 endif () -
trunk/Source/cmake/OptionsWPE.cmake
r243073 r243285 49 49 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ASYNC_SCROLLING PRIVATE ON) 50 50 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CONTENT_EXTENSIONS PRIVATE ON) 51 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_GEOLOCATION PRIVATE OFF)52 51 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MHTML PRIVATE ON) 53 52 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NETSCAPE_PLUGIN_API PRIVATE OFF) -
trunk/Tools/ChangeLog
r243283 r243285 1 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Add API to provide geolocation information 4 https://bugs.webkit.org/show_bug.cgi?id=195940 5 6 Reviewed by Michael Catanzaro. 7 8 Add a new test to check the new API. 9 10 * TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp: Added. 11 (testGeolocationManagerCurrentPosition): 12 (testGeolocationManagerWatchPosition): 13 (beforeAll): 14 (afterAll): 15 * TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp: 16 (testWebViewGeolocationPermissionRequests): Stop using ENABLE(GEOLOCATION) conditionals for geolocation tests. 17 (beforeAll): Ditto. 18 * TestWebKitAPI/glib/CMakeLists.txt: 19 1 20 2019-03-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 21 -
trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp
r239772 r243285 787 787 #endif // PLATFORM(GTK) 788 788 789 #if ENABLE(GEOLOCATION)790 789 static void testWebViewGeolocationPermissionRequests(UIClientTest* test, gconstpointer) 791 790 { … … 832 831 test->addLogFatalFlag(G_LOG_LEVEL_WARNING); 833 832 } 834 #endif // ENABLE(GEOLOCATION)835 833 836 834 #if ENABLE(MEDIA_STREAM) … … 1194 1192 UIClientTest::add("WebKitWebView", "mouse-target", testWebViewMouseTarget); 1195 1193 #endif 1196 #if ENABLE(GEOLOCATION)1197 1194 UIClientTest::add("WebKitWebView", "geolocation-permission-requests", testWebViewGeolocationPermissionRequests); 1198 #endif1199 1195 #if ENABLE(MEDIA_STREAM) 1200 1196 UIClientTest::add("WebKitWebView", "usermedia-enumeratedevices-permission-check", testWebViewUserMediaEnumerateDevicesPermissionCheck); -
trunk/Tools/TestWebKitAPI/glib/CMakeLists.txt
r241790 r243285 147 147 ADD_WK2_TEST(TestConsoleMessage ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp) 148 148 ADD_WK2_TEST(TestDOMElement ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestDOMElement.cpp) 149 ADD_WK2_TEST(TestGeolocationManager ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp) 149 150 150 151 # FIXME: Enable for WPE
Note:
See TracChangeset
for help on using the changeset viewer.