Unreviewed. Fix typo in GLib geolocation API after r243285.
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 11:18:29 +0000 (11:18 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 11:18:29 +0000 (11:18 +0000)
gelocation -> geolocation.

Source/WebKit:

* UIProcess/API/glib/WebKitGeolocationManager.cpp:
(webkit_geolocation_manager_class_init):
(webkit_geolocation_manager_update_position):
(webkit_geolocation_manager_failed):
(webkit_gelocation_manager_update_position): Deleted.
(webkit_gelocation_manager_failed): Deleted.
* UIProcess/API/gtk/WebKitGeolocationManager.h:
* UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
* UIProcess/API/wpe/WebKitGeolocationManager.h:
* UIProcess/API/wpe/docs/wpe-1.0-sections.txt:

Tools:

* TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp:
(testGeolocationManagerWatchPosition):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243491 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/glib/WebKitGeolocationManager.cpp
Source/WebKit/UIProcess/API/gtk/WebKitGeolocationManager.h
Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt
Source/WebKit/UIProcess/API/wpe/WebKitGeolocationManager.h
Source/WebKit/UIProcess/API/wpe/docs/wpe-1.0-sections.txt
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp

index 4f8c3b7..b33c8c1 100644 (file)
@@ -1,3 +1,20 @@
+2019-03-26  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        Unreviewed. Fix typo in GLib geolocation API after r243285.
+
+        gelocation -> geolocation.
+
+        * UIProcess/API/glib/WebKitGeolocationManager.cpp:
+        (webkit_geolocation_manager_class_init):
+        (webkit_geolocation_manager_update_position):
+        (webkit_geolocation_manager_failed):
+        (webkit_gelocation_manager_update_position): Deleted.
+        (webkit_gelocation_manager_failed): Deleted.
+        * UIProcess/API/gtk/WebKitGeolocationManager.h:
+        * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
+        * UIProcess/API/wpe/WebKitGeolocationManager.h:
+        * UIProcess/API/wpe/docs/wpe-1.0-sections.txt:
+
 2019-03-26  Patrick Griffis  <pgriffis@igalia.com>
 
         [GTK][WPE] Disable process warming
index 1ee7d2f..2e15945 100644 (file)
@@ -41,7 +41,7 @@ using namespace WebCore;
  * Once a #WebKitGeolocationPermissionRequest is allowed, when WebKit needs to know the
  * user location #WebKitGeolocationManager::start signal is emitted. If the signal is handled
  * and returns %TRUE, the application is responsible for providing the position every time it's
- * updated by calling webkit_gelocation_manager_update_position(). The signal #WebKitGeolocationManager::stop
+ * updated by calling webkit_geolocation_manager_update_position(). The signal #WebKitGeolocationManager::stop
  * will be emitted when location updates are no longer needed.
  *
  * Since: 2.26
@@ -87,7 +87,7 @@ struct _WebKitGeolocationPosition {
  * WebKitGeolocationPosition:
  *
  * WebKitGeolocationPosition is an opaque struct used to provide position updates to a
- * #WebKitGeolocationManager using webkit_gelocation_manager_update_position().
+ * #WebKitGeolocationManager using webkit_geolocation_manager_update_position().
  *
  * Since: 2.26
  */
@@ -254,12 +254,12 @@ static void webkitGeolocationManagerStart(WebKitGeolocationManager* manager)
     }
     manager->priv->geoclueProvider->start([manager](GeolocationPosition&& corePosition, Optional<CString> error) {
         if (error) {
-            webkit_gelocation_manager_failed(manager, error->data());
+            webkit_geolocation_manager_failed(manager, error->data());
             return;
         }
 
         WebKitGeolocationPosition position(WTFMove(corePosition));
-        webkit_gelocation_manager_update_position(manager, &position);
+        webkit_geolocation_manager_update_position(manager, &position);
     });
 }
 
@@ -359,8 +359,8 @@ static void webkit_geolocation_manager_class_init(WebKitGeolocationManagerClass*
      *
      * The signal is emitted to notify that @manager needs to start receiving
      * position updates. After this signal is emitted the user should provide
-     * the updates using webkit_gelocation_manager_update_position() every time
-     * the position changes, or use webkit_gelocation_manager_failed() in case
+     * the updates using webkit_geolocation_manager_update_position() every time
+     * the position changes, or use webkit_geolocation_manager_failed() in case
      * it isn't possible to determine the current position.
      *
      * If the signal is not handled, WebKit will try to determine the position
@@ -400,7 +400,7 @@ static void webkit_geolocation_manager_class_init(WebKitGeolocationManagerClass*
 }
 
 /**
- * webkit_gelocation_manager_update_position:
+ * webkit_geolocation_manager_update_position:
  * @manager: a #WebKitGeolocationManager
  * @position: a #WebKitGeolocationPosition
  *
@@ -408,7 +408,7 @@ static void webkit_geolocation_manager_class_init(WebKitGeolocationManagerClass*
  *
  * Since: 2.26
  */
-void webkit_gelocation_manager_update_position(WebKitGeolocationManager* manager, WebKitGeolocationPosition* position)
+void webkit_geolocation_manager_update_position(WebKitGeolocationManager* manager, WebKitGeolocationPosition* position)
 {
     g_return_if_fail(WEBKIT_IS_GEOLOCATION_MANAGER(manager));
     g_return_if_fail(position);
@@ -419,7 +419,7 @@ void webkit_gelocation_manager_update_position(WebKitGeolocationManager* manager
 }
 
 /**
- * webkit_gelocation_manager_failed:
+ * webkit_geolocation_manager_failed:
  * @manager: a #WebKitGeolocationManager
  * @error_message: the error message
  *
@@ -427,7 +427,7 @@ void webkit_gelocation_manager_update_position(WebKitGeolocationManager* manager
  *
  * Since: 2.26
  */
-void webkit_gelocation_manager_failed(WebKitGeolocationManager* manager, const char* errorMessage)
+void webkit_geolocation_manager_failed(WebKitGeolocationManager* manager, const char* errorMessage)
 {
     g_return_if_fail(WEBKIT_IS_GEOLOCATION_MANAGER(manager));
 
index 207c5f8..d456da4 100644 (file)
@@ -63,11 +63,11 @@ WEBKIT_API GType
 webkit_geolocation_manager_get_type                 (void);
 
 WEBKIT_API void
-webkit_gelocation_manager_update_position           (WebKitGeolocationManager  *manager,
+webkit_geolocation_manager_update_position           (WebKitGeolocationManager  *manager,
                                                      WebKitGeolocationPosition *position);
 
 WEBKIT_API void
-webkit_gelocation_manager_failed                    (WebKitGeolocationManager  *manager,
+webkit_geolocation_manager_failed                    (WebKitGeolocationManager  *manager,
                                                      const char                *error_message);
 
 WEBKIT_API gboolean
index eee101a..6bcd7c3 100644 (file)
@@ -1497,8 +1497,8 @@ WEBKIT_TYPE_APPLICATION_INFO
 <SECTION>
 <FILE>WebKitGeolocationManager</FILE>
 WebKitGeolocationManager
-webkit_gelocation_manager_update_position
-webkit_gelocation_manager_failed
+webkit_geolocation_manager_update_position
+webkit_geolocation_manager_failed
 webkit_geolocation_manager_get_enable_high_accuracy
 
 <SUBSECTION Position>
index 609cb4c..c06b5f0 100644 (file)
@@ -63,11 +63,11 @@ WEBKIT_API GType
 webkit_geolocation_manager_get_type                 (void);
 
 WEBKIT_API void
-webkit_gelocation_manager_update_position           (WebKitGeolocationManager  *manager,
+webkit_geolocation_manager_update_position           (WebKitGeolocationManager  *manager,
                                                      WebKitGeolocationPosition *position);
 
 WEBKIT_API void
-webkit_gelocation_manager_failed                    (WebKitGeolocationManager  *manager,
+webkit_geolocation_manager_failed                    (WebKitGeolocationManager  *manager,
                                                      const char                *error_message);
 
 WEBKIT_API gboolean
index 5677f56..ad4d60c 100644 (file)
@@ -1371,8 +1371,8 @@ WEBKIT_TYPE_APPLICATION_INFO
 <SECTION>
 <FILE>WebKitGeolocationManager</FILE>
 WebKitGeolocationManager
-webkit_gelocation_manager_update_position
-webkit_gelocation_manager_failed
+webkit_geolocation_manager_update_position
+webkit_geolocation_manager_failed
 webkit_geolocation_manager_get_enable_high_accuracy
 
 <SUBSECTION Position>
index b2a60e1..e3ebc0a 100644 (file)
@@ -1,3 +1,12 @@
+2019-03-26  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        Unreviewed. Fix typo in GLib geolocation API after r243285.
+
+        gelocation -> geolocation.
+
+        * TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp:
+        (testGeolocationManagerWatchPosition):
+
 2019-03-25  Alex Christensen  <achristensen@webkit.org>
 
         Do not terminate the NetworkProcess if a third party application sends a NSCredential with a SecIdentityRef
index 981b5ef..5be0b87 100644 (file)
@@ -91,12 +91,12 @@ public:
 
         if (m_errorMessage) {
             g_assert_false(m_checkPosition);
-            webkit_gelocation_manager_failed(m_manager, m_errorMessage.get());
+            webkit_geolocation_manager_failed(m_manager, m_errorMessage.get());
         }
 
         if (m_checkPosition) {
             g_assert_false(m_errorMessage.get());
-            webkit_gelocation_manager_update_position(m_manager, m_checkPosition);
+            webkit_geolocation_manager_update_position(m_manager, m_checkPosition);
         }
 
         g_main_loop_quit(m_mainLoop);
@@ -307,7 +307,7 @@ static void testGeolocationManagerWatchPosition(GeolocationTest* test, gconstpoi
     g_assert_true(test->m_updating);
 
     WebKitGeolocationPosition* position = webkit_geolocation_position_new(37.1760783, -3.59033, 17);
-    webkit_gelocation_manager_update_position(test->m_manager, position);
+    webkit_geolocation_manager_update_position(test->m_manager, position);
     webkit_geolocation_position_free(position);
     auto result = test->lastPosition();
     g_assert_cmpfloat(result.latitude, ==, 37.1760783);
@@ -315,7 +315,7 @@ static void testGeolocationManagerWatchPosition(GeolocationTest* test, gconstpoi
     g_assert_cmpfloat(result.accuracy, ==, 17);
 
     position = webkit_geolocation_position_new(38.1770783, -3.60033, 17);
-    webkit_gelocation_manager_update_position(test->m_manager, position);
+    webkit_geolocation_manager_update_position(test->m_manager, position);
     webkit_geolocation_position_free(position);
     result = test->lastPosition();
     g_assert_cmpfloat(result.latitude, ==, 38.1770783);