Initialize Tizen 2.3
[framework/web/wrt-commons.git] / modules_wearable / core / include / dpl / platform.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /*
17  * @file        platform.h
18  * @author      Jihoon Chung (jihoon.chung@samsung.com)
19  * @version     1.0
20  */
21 #ifndef DPL_PLATFORM_H
22 #define DPL_PLATFORM_H
23
24 // Use Features definition
25 //   Use a particular optional platform service or third-party library
26 //
27 // Description : <text>
28 //               <text>
29 // Author : <text>(<email>) - <date>
30 // #define USE_<DEPENDENT_MODULE_NAME>_<FEATURE_NAME> <value>(0 or 1)
31 #define USE(FEATURE) (defined USE_##FEATURE && USE_##FEATURE)
32
33 // Description : Application side patch to use manual rotation feature in webkit
34 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 10.26.2013
35 #define USE_WEBKIT_MANUAL_ROTATION 1
36
37 // Description : Temporary patch about enable/disable webapp specific settings, especially for web-provider.
38 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 11.09.2013
39 #define USE_WEB_PROVIDER_EXCEPTION_IN_EWK_CONTEXT 1
40
41 // Description : Enhanced "progress bar" user experience.
42 //               Show "progress bar" in "load,started" webkit callback to show earlier.
43 //               Confirmed by webkit loader team.
44 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 11.21.2013
45 #define USE_WEBKIT_SHOW_PROGRESS_BAR_EARLIER 1
46
47 // Description : Webkit version-up
48 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 01.14.2013
49 #define USE_WEBKIT_UPVERSION 0
50
51 // Enable Features definition
52 //   Turn on a specific feature of WRT
53 //
54 // Description : <text>
55 //               <text>
56 // Author : <text>(<email>) - <date>
57 // #define ENABLE_<FEATURE_NAME> <value>(0 or 1)
58 #define ENABLE(FEATURE) (defined ENABLE_##FEATURE && ENABLE_##FEATURE)
59
60 // Description : Support onbeforeunload event
61 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 11.15.2013
62 #define ENABLE_JAVASCRIPT_ONBEFOREUNLOAD_EVENT 0
63
64 // Description : Support app scheme(app://)
65 //               App scheme(app://) supports special scheme to packaged resources.
66 //               Main reason of requirement is that enhance cross origin security and deprecate file scheme(file://).
67 // Author : Tomasz Iwanek(t.iwanek@samsung.com) - 11.16.2013
68 #define ENABLE_APP_SCHEME 0
69
70 // Description : Custom user agent support by tizen widget setting
71 // Author : Tae-Jeong Lee (taejeong.lee@samsung.com) - 11.26.2013
72 #define ENABLE_CUSTOM_USER_AGENT_SUPPORT 0
73
74 // Description : Support CORS(Cross-origin resource sharing) whitelisting
75 //               Allow to use resource by trust origin. Basically, trust domain includes own app scheme(app://).
76 // Author : Tomasz Iwanek(t.iwanek@samsung.com) - 01.02.2014
77 #define ENABLE_CORS_WHITELISTING 0
78
79 // Description : Support CSP(Content security policy)
80 // Author : Tomasz Iwanek(t.iwanek@samsung.com) - 01.03.2014
81 #define ENABLE_CONTENT_SECURITY_POLICY 1
82
83 // Description : Enabling background decryption for encrypted resources
84 // Author : Tomasz Iwanek(t.iwanek@samsung.com) - 16.12.2013
85 #define ENABLE_BACKGROUND_THREAD_DECRYPTION 0
86
87 // Description : Support allow-navigation
88 //               Origin based navigation control of main resource.
89 // Author : Jihoon Chung (jihoon.chung@samsung.com) - 01.08.2014
90 #define ENABLE_ALLOW_NAVIGATION 1
91
92 #endif // DPL_PLATFORM_H