Changed the postion of context menu to avaliable space
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / tizen / WebTizenClient.h
1 /*
2  * Copyright (C) 2011 Samsung Electronics
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #ifndef WebTizenClient_h
27 #define WebTizenClient_h
28
29 #include "APIClient.h"
30 #include "WKPageTizen.h"
31 #include <wtf/Forward.h>
32
33 namespace WebKit {
34
35 class WebPageProxy;
36 class WebFrameProxy;
37 #if ENABLE(TIZEN_FILE_SYSTEM)
38 class WebSecurityOrigin;
39 #endif
40
41 #if ENABLE(TIZEN_MEDIA_STREAM)
42 class UserMediaPermissionRequest;
43 #endif
44
45 class WebTizenClient : public APIClient<WKPageTizenClient, kWKPageTizenClientCurrentVersion> {
46 public:
47 #if ENABLE(TIZEN_MEDIA_STREAM)
48     bool decidePolicyForUserMediaPermissionRequest(WebPageProxy*, UserMediaPermissionRequest*);
49 #endif
50
51 #if ENABLE(TIZEN_JSBRIDGE_PLUGIN)
52     void processJSBridgePlugin(WebPageProxy*, const String& request, const String& message);
53 #endif
54
55 #if ENABLE(TIZEN_CERTIFICATE_HANDLING)
56     bool decidePolicyForCertificateError(WebPageProxy*, const String& url, const String& certificate, int error);
57 #endif
58
59 #if ENABLE(TIZEN_FILE_SYSTEM)
60     bool allowFileSystem(WebPageProxy*, WebFrameProxy*, WebSecurityOrigin*);
61 #endif
62
63 #if ENABLE(TIZEN_APPLICATION_CACHE)
64     bool decidePolicyForApplicationCachePermissionRequest(WebPageProxy*, WebSecurityOrigin*, WebFrameProxy*);
65 #endif
66
67 #if ENABLE(TIZEN_INDEXED_DATABASE)
68     bool exceededIndexedDatabaseQuota(WebPageProxy*, WebSecurityOrigin*, long long, WebFrameProxy*);
69 #endif
70
71 #if ENABLE(TIZEN_FILE_SYSTEM)
72     bool exceededLocalFileSystemQuota(WebPageProxy*, WebSecurityOrigin*, long long, WebFrameProxy*);
73 #endif
74 };
75
76 } // namespace WebKit
77
78 #endif // WebTizenClient_h