2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @author Jihoon Chung (jihoon.chung@samsung.com)
21 #ifndef DPL_PLATFORM_H
22 #define DPL_PLATFORM_H
24 // Use Features definition
25 // Use a particular optional platform service or third-party library
27 // Description : <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)
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
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
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
47 // Description : Webkit version-up
48 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 01.14.2013
49 #define USE_WEBKIT_UPVERSION 0
51 // Enable Features definition
52 // Turn on a specific feature of WRT
54 // Description : <text>
56 // Author : <text>(<email>) - <date>
57 // #define ENABLE_<FEATURE_NAME> <value>(0 or 1)
58 #define ENABLE(FEATURE) (defined ENABLE_##FEATURE && ENABLE_##FEATURE)
60 // Description : Support onbeforeunload event
61 // Author : Jihoon Chung(jihoon.chung@samsung.com) - 11.15.2013
62 #define ENABLE_JAVASCRIPT_ONBEFOREUNLOAD_EVENT 0
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
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
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
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
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
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
92 #endif // DPL_PLATFORM_H