Changeset 119404 in webkit


Ignore:
Timestamp:
Jun 4, 2012 9:05:02 AM (12 years ago)
Author:
mario@webkit.org
Message:

[GTK][WK2] Implement geolocation provider for the GTK port
https://bugs.webkit.org/show_bug.cgi?id=83877

Reviewed by Carlos Garcia Campos.

Source/WebKit2:

Add a new client-based geolocation provider for WebKit2GTK+, relying the
new Geoclue-based geolocation provider available in WebCore.

  • GNUmakefile.am:
  • GNUmakefile.list.am:
  • UIProcess/API/gtk/WebKitGeolocationProvider.cpp: Added.

(toGeolocationProvider):
(startUpdatingCallback):
(stopUpdatingCallback):
(WebKitGeolocationProvider::~WebKitGeolocationProvider):
(WebKitGeolocationProvider::create):
(WebKitGeolocationProvider::WebKitGeolocationProvider):
(WebKitGeolocationProvider::startUpdating):
(WebKitGeolocationProvider::stopUpdating):
(WebKitGeolocationProvider::notifyPositionChanged):
(WebKitGeolocationProvider::notifyErrorOccurred):

  • UIProcess/API/gtk/WebKitGeolocationProvider.h: Added.
  • UIProcess/API/gtk/WebKitPrivate.h:
  • UIProcess/API/gtk/WebKitWebContext.cpp:

(_WebKitWebContextPrivate):
(createDefaultWebContext):

Tools:

  • gtk/generate-gtkdoc:

(get_webkit2_options): Ignore WebKitGeolocationProvider files.

Location:
trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r119400 r119404  
     12012-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
    1302012-06-04  Zalan Bujtas  <zbujtas@gmail.com>
    231
  • trunk/Source/WebKit2/GNUmakefile.am

    r116956 r119404  
    9898        $(javascriptcore_cppflags) \
    9999        $(COVERAGE_CFLAGS) \
     100        $(GEOCLUE_CFLAGS) \
    100101        $(GLIB_CFLAGS) \
    101102        $(GTK_CFLAGS) \
  • trunk/Source/WebKit2/GNUmakefile.list.am

    r118731 r119404  
    512512        Source/WebKit2/UIProcess/API/C/WKFramePolicyListener.cpp \
    513513        Source/WebKit2/UIProcess/API/C/WKFramePolicyListener.h \
     514        Source/WebKit2/UIProcess/API/C/WKGeolocationManager.cpp \
    514515        Source/WebKit2/UIProcess/API/C/WKGeolocationManager.h \
    515516        Source/WebKit2/UIProcess/API/C/WKGeolocationPermissionRequest.h \
     517        Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp \
    516518        Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.h \
    517519        Source/WebKit2/UIProcess/API/C/WKGrammarDetail.cpp \
     
    583585        Source/WebKit2/UIProcess/API/gtk/WebKitFullscreenClient.cpp \
    584586        Source/WebKit2/UIProcess/API/gtk/WebKitFullscreenClient.h \
     587        Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.cpp \
     588        Source/WebKit2/UIProcess/API/gtk/WebKitGeolocationProvider.h \
    585589        Source/WebKit2/UIProcess/API/gtk/WebKitHitTestResult.cpp \
    586590        Source/WebKit2/UIProcess/API/gtk/WebKitHitTestResult.h \
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h

    r118146 r119404  
    3131#include <WebKit2/WKFindOptions.h>
    3232#include <WebKit2/WKFullScreenClientGtk.h>
     33#include <WebKit2/WKGeolocationManager.h>
     34#include <WebKit2/WKGeolocationPosition.h>
    3335#include <WebKit2/WKInspector.h>
    3436#include <WebKit2/WKInspectorClientGtk.h>
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp

    r117735 r119404  
    2525#include "WebKitDownloadClient.h"
    2626#include "WebKitDownloadPrivate.h"
     27#include "WebKitGeolocationProvider.h"
    2728#include "WebKitPluginPrivate.h"
    2829#include "WebKitPrivate.h"
     
    4546
    4647    GRefPtr<WebKitCookieManager> cookieManager;
     48#if ENABLE(GEOLOCATION)
     49    RefPtr<WebKitGeolocationProvider> geolocationProvider;
     50#endif
    4751};
    4852
     
    9498    WKContextSetCacheModel(webContext->priv->context.get(), kWKCacheModelPrimaryWebBrowser);
    9599    attachDownloadClientToContext(webContext.get());
     100#if ENABLE(GEOLOCATION)
     101    WKGeolocationManagerRef wkGeolocationManager = WKContextGetGeolocationManager(webContext->priv->context.get());
     102    webContext->priv->geolocationProvider = WebKitGeolocationProvider::create(wkGeolocationManager);
     103#endif
    96104    return webContext.get();
    97105}
  • trunk/Tools/ChangeLog

    r119377 r119404  
     12012-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
    1112012-06-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    212
  • trunk/Tools/gtk/generate-gtkdoc

    r108039 r119404  
    9999                         glob.glob(src_path('*Client*')) + \
    100100                         glob.glob(src_path('WebKitWebViewBaseAccessible.*')) + \
     101                         glob.glob(src_path('WebKitGeolocationProvider.*')) + \
    101102                         glob.glob(src_path('tests/*.h'))
    102103    })
Note: See TracChangeset for help on using the changeset viewer.