Create string tightly when retrive string from cbhm callback event
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / ewk_geolocation.h
1 /*
2    Copyright (C) 2012 Samsung Electronics
3
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.
8
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.
13
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.
18 */
19
20 #ifndef ewk_geolocation_h
21 #define ewk_geolocation_h
22
23 #include "ewk_security_origin.h"
24 #include <Eina.h>
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 typedef struct _Ewk_Geolocation_Permission_Request Ewk_Geolocation_Permission_Request;
31
32 /**
33  * Requests for getting origin of geolocation permission request.
34  *
35  * @param request Ewk_Geolocation_Permission_Request object to get origin
36  *
37  * @return security origin of geolocation permission data
38  */
39 EAPI const Ewk_Security_Origin *ewk_geolocation_permission_request_origin_get(const Ewk_Geolocation_Permission_Request *request);
40
41 /**
42  * Request to allow / deny the geolocation permission request
43  *
44  * @param request permission request to allow or deny permission
45  * @param allow allow or deny permission for geolocation
46  *
47  * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise
48  */
49 EAPI Eina_Bool ewk_geolocation_permission_request_set(Ewk_Geolocation_Permission_Request *request, Eina_Bool allow);
50
51 /**
52  * Suspend the operation for permission request.
53  *
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.
56  *
57  * @param request Ewk_Geolocation_Permission_Request object to suspend permission request
58  */
59 EAPI void ewk_geolocation_permission_request_suspend(Ewk_Geolocation_Permission_Request *request);
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif // ewk_geolocation_h