2 Copyright (C) 2012 Samsung Electronics
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef ewk_geolocation_h
21 #define ewk_geolocation_h
23 #include "ewk_security_origin.h"
30 typedef struct _Ewk_Geolocation_Permission_Request Ewk_Geolocation_Permission_Request;
33 * Requests for getting origin of geolocation permission request.
35 * @param request Ewk_Geolocation_Permission_Request object to get origin
37 * @return security origin of geolocation permission data
39 EAPI const Ewk_Security_Origin *ewk_geolocation_permission_request_origin_get(const Ewk_Geolocation_Permission_Request *request);
42 * Request to allow / deny the geolocation permission request
44 * @param request permission request to allow or deny permission
45 * @param allow allow or deny permission for geolocation
47 * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise
49 EAPI Eina_Bool ewk_geolocation_permission_request_set(Ewk_Geolocation_Permission_Request *request, Eina_Bool allow);
52 * Suspend the operation for permission request.
54 * This suspends the operation for permission request.
55 * This is very useful to decide the policy from the additional UI operation like the popup.
57 * @param request Ewk_Geolocation_Permission_Request object to suspend permission request
59 EAPI void ewk_geolocation_permission_request_suspend(Ewk_Geolocation_Permission_Request *request);
65 #endif // ewk_geolocation_h