⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243491 in webkit


Ignore:
Timestamp:
Mar 26, 2019, 4:18:29 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Unreviewed. Fix typo in GLib geolocation API after r243285.

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):

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243490 r243491  
     12019-03-26  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Unreviewed. Fix typo in GLib geolocation API after r243285.
     4
     5        gelocation -> geolocation.
     6
     7        * UIProcess/API/glib/WebKitGeolocationManager.cpp:
     8        (webkit_geolocation_manager_class_init):
     9        (webkit_geolocation_manager_update_position):
     10        (webkit_geolocation_manager_failed):
     11        (webkit_gelocation_manager_update_position): Deleted.
     12        (webkit_gelocation_manager_failed): Deleted.
     13        * UIProcess/API/gtk/WebKitGeolocationManager.h:
     14        * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
     15        * UIProcess/API/wpe/WebKitGeolocationManager.h:
     16        * UIProcess/API/wpe/docs/wpe-1.0-sections.txt:
     17
    1182019-03-26  Patrick Griffis  <pgriffis@igalia.com>
    219
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitGeolocationManager.cpp

    r243409 r243491  
    4242 * user location #WebKitGeolocationManager::start signal is emitted. If the signal is handled
    4343 * and returns %TRUE, the application is responsible for providing the position every time it's
    44  * updated by calling webkit_gelocation_manager_update_position(). The signal #WebKitGeolocationManager::stop
     44 * updated by calling webkit_geolocation_manager_update_position(). The signal #WebKitGeolocationManager::stop
    4545 * will be emitted when location updates are no longer needed.
    4646 *
     
    8888 *
    8989 * WebKitGeolocationPosition is an opaque struct used to provide position updates to a
    90  * #WebKitGeolocationManager using webkit_gelocation_manager_update_position().
     90 * #WebKitGeolocationManager using webkit_geolocation_manager_update_position().
    9191 *
    9292 * Since: 2.26
     
    255255    manager->priv->geoclueProvider->start([manager](GeolocationPosition&& corePosition, Optional<CString> error) {
    256256        if (error) {
    257             webkit_gelocation_manager_failed(manager, error->data());
     257            webkit_geolocation_manager_failed(manager, error->data());
    258258            return;
    259259        }
    260260
    261261        WebKitGeolocationPosition position(WTFMove(corePosition));
    262         webkit_gelocation_manager_update_position(manager, &position);
     262        webkit_geolocation_manager_update_position(manager, &position);
    263263    });
    264264}
     
    360360     * The signal is emitted to notify that @manager needs to start receiving
    361361     * position updates. After this signal is emitted the user should provide
    362      * the updates using webkit_gelocation_manager_update_position() every time
    363      * the position changes, or use webkit_gelocation_manager_failed() in case
     362     * the updates using webkit_geolocation_manager_update_position() every time
     363     * the position changes, or use webkit_geolocation_manager_failed() in case
    364364     * it isn't possible to determine the current position.
    365365     *
     
    401401
    402402/**
    403  * webkit_gelocation_manager_update_position:
     403 * webkit_geolocation_manager_update_position:
    404404 * @manager: a #WebKitGeolocationManager
    405405 * @position: a #WebKitGeolocationPosition
     
    409409 * Since: 2.26
    410410 */
    411 void webkit_gelocation_manager_update_position(WebKitGeolocationManager* manager, WebKitGeolocationPosition* position)
     411void webkit_geolocation_manager_update_position(WebKitGeolocationManager* manager, WebKitGeolocationPosition* position)
    412412{
    413413    g_return_if_fail(WEBKIT_IS_GEOLOCATION_MANAGER(manager));
     
    420420
    421421/**
    422  * webkit_gelocation_manager_failed:
     422 * webkit_geolocation_manager_failed:
    423423 * @manager: a #WebKitGeolocationManager
    424424 * @error_message: the error message
     
    428428 * Since: 2.26
    429429 */
    430 void webkit_gelocation_manager_failed(WebKitGeolocationManager* manager, const char* errorMessage)
     430void webkit_geolocation_manager_failed(WebKitGeolocationManager* manager, const char* errorMessage)
    431431{
    432432    g_return_if_fail(WEBKIT_IS_GEOLOCATION_MANAGER(manager));
  • trunk/Source/WebKit/UIProcess/API/gtk/WebKitGeolocationManager.h

    r243285 r243491  
    6464
    6565WEBKIT_API void
    66 webkit_gelocation_manager_update_position           (WebKitGeolocationManager  *manager,
     66webkit_geolocation_manager_update_position           (WebKitGeolocationManager  *manager,
    6767                                                     WebKitGeolocationPosition *position);
    6868
    6969WEBKIT_API void
    70 webkit_gelocation_manager_failed                    (WebKitGeolocationManager  *manager,
     70webkit_geolocation_manager_failed                    (WebKitGeolocationManager  *manager,
    7171                                                     const char                *error_message);
    7272
  • trunk/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt

    r243285 r243491  
    14981498<FILE>WebKitGeolocationManager</FILE>
    14991499WebKitGeolocationManager
    1500 webkit_gelocation_manager_update_position
    1501 webkit_gelocation_manager_failed
     1500webkit_geolocation_manager_update_position
     1501webkit_geolocation_manager_failed
    15021502webkit_geolocation_manager_get_enable_high_accuracy
    15031503
  • trunk/Source/WebKit/UIProcess/API/wpe/WebKitGeolocationManager.h

    r243285 r243491  
    6464
    6565WEBKIT_API void
    66 webkit_gelocation_manager_update_position           (WebKitGeolocationManager  *manager,
     66webkit_geolocation_manager_update_position           (WebKitGeolocationManager  *manager,
    6767                                                     WebKitGeolocationPosition *position);
    6868
    6969WEBKIT_API void
    70 webkit_gelocation_manager_failed                    (WebKitGeolocationManager  *manager,
     70webkit_geolocation_manager_failed                    (WebKitGeolocationManager  *manager,
    7171                                                     const char                *error_message);
    7272
  • trunk/Source/WebKit/UIProcess/API/wpe/docs/wpe-1.0-sections.txt

    r243285 r243491  
    13721372<FILE>WebKitGeolocationManager</FILE>
    13731373WebKitGeolocationManager
    1374 webkit_gelocation_manager_update_position
    1375 webkit_gelocation_manager_failed
     1374webkit_geolocation_manager_update_position
     1375webkit_geolocation_manager_failed
    13761376webkit_geolocation_manager_get_enable_high_accuracy
    13771377
  • trunk/Tools/ChangeLog

    r243487 r243491  
     12019-03-26  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Unreviewed. Fix typo in GLib geolocation API after r243285.
     4
     5        gelocation -> geolocation.
     6
     7        * TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp:
     8        (testGeolocationManagerWatchPosition):
     9
    1102019-03-25  Alex Christensen  <achristensen@webkit.org>
    211
  • trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestGeolocationManager.cpp

    r243285 r243491  
    9292        if (m_errorMessage) {
    9393            g_assert_false(m_checkPosition);
    94             webkit_gelocation_manager_failed(m_manager, m_errorMessage.get());
     94            webkit_geolocation_manager_failed(m_manager, m_errorMessage.get());
    9595        }
    9696
    9797        if (m_checkPosition) {
    9898            g_assert_false(m_errorMessage.get());
    99             webkit_gelocation_manager_update_position(m_manager, m_checkPosition);
     99            webkit_geolocation_manager_update_position(m_manager, m_checkPosition);
    100100        }
    101101
     
    308308
    309309    WebKitGeolocationPosition* position = webkit_geolocation_position_new(37.1760783, -3.59033, 17);
    310     webkit_gelocation_manager_update_position(test->m_manager, position);
     310    webkit_geolocation_manager_update_position(test->m_manager, position);
    311311    webkit_geolocation_position_free(position);
    312312    auto result = test->lastPosition();
     
    316316
    317317    position = webkit_geolocation_position_new(38.1770783, -3.60033, 17);
    318     webkit_gelocation_manager_update_position(test->m_manager, position);
     318    webkit_geolocation_manager_update_position(test->m_manager, position);
    319319    webkit_geolocation_position_free(position);
    320320    result = test->lastPosition();
Note: See TracChangeset for help on using the changeset viewer.