Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / web / WebRuntimeFeatures.h
1 /*
2  * Copyright (C) 2013 Google Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  *     * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *     * Redistributions in binary form must reproduce the above
11  * copyright notice, this list of conditions and the following disclaimer
12  * in the documentation and/or other materials provided with the
13  * distribution.
14  *     * Neither the name of Google Inc. nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30
31 #ifndef WebRuntimeFeatures_h
32 #define WebRuntimeFeatures_h
33
34 #include "../platform/WebCommon.h"
35
36 namespace blink {
37
38 // This class is used to enable runtime features of Blink.
39 // Stable features are enabled by default.
40 class WebRuntimeFeatures {
41 public:
42     BLINK_EXPORT static void enableExperimentalFeatures(bool);
43     BLINK_EXPORT static void enableTestOnlyFeatures(bool);
44
45     BLINK_EXPORT static void enableApplicationCache(bool);
46
47     BLINK_EXPORT static void enableDatabase(bool);
48
49     BLINK_EXPORT static void enableCompositedSelectionUpdate(bool);
50     BLINK_EXPORT static bool isCompositedSelectionUpdateEnabled();
51
52     BLINK_EXPORT static void enableDecodeToYUV(bool);
53
54     BLINK_EXPORT static void enableDisplayList2dCanvas(bool);
55
56     BLINK_EXPORT static void enableEncryptedMedia(bool);
57     BLINK_EXPORT static bool isEncryptedMediaEnabled();
58
59     BLINK_EXPORT static void enablePrefixedEncryptedMedia(bool);
60     BLINK_EXPORT static bool isPrefixedEncryptedMediaEnabled();
61
62     BLINK_EXPORT static void enableBleedingEdgeFastPaths(bool);
63
64     BLINK_EXPORT static void enableExperimentalCanvasFeatures(bool);
65
66     BLINK_EXPORT static void enableFastMobileScrolling(bool);
67
68     BLINK_EXPORT static void enableFileSystem(bool);
69
70     BLINK_EXPORT static void enableGamepad(bool);
71
72     BLINK_EXPORT static void enableLocalStorage(bool);
73
74     BLINK_EXPORT static void enableMediaPlayer(bool);
75
76     BLINK_EXPORT static void enableSubpixelFontScaling(bool);
77
78     BLINK_EXPORT static void enableMediaCapture(bool);
79
80     BLINK_EXPORT static void enableMediaSource(bool);
81
82     BLINK_EXPORT static void enableMediaStream(bool);
83
84     BLINK_EXPORT static void enableNotifications(bool);
85
86     BLINK_EXPORT static void enableNavigatorContentUtils(bool);
87
88     BLINK_EXPORT static void enableNavigationTransitions(bool);
89
90     BLINK_EXPORT static void enableNetworkInformation(bool);
91
92     BLINK_EXPORT static void enableOrientationEvent(bool);
93
94     BLINK_EXPORT static void enablePagePopup(bool);
95
96     BLINK_EXPORT static void enablePeerConnection(bool);
97
98     BLINK_EXPORT static void enableRequestAutocomplete(bool);
99
100     BLINK_EXPORT static void enableScreenOrientation(bool);
101
102     BLINK_EXPORT static void enableScriptedSpeech(bool);
103
104     BLINK_EXPORT static void enableServiceWorker(bool);
105
106     BLINK_EXPORT static void enableSessionStorage(bool);
107
108     BLINK_EXPORT static void enableTouch(bool);
109
110     BLINK_EXPORT static void enableTouchIconLoading(bool);
111
112     BLINK_EXPORT static void enableWebAudio(bool);
113
114     BLINK_EXPORT static void enableWebGLDraftExtensions(bool);
115
116     BLINK_EXPORT static void enableWebGLImageChromium(bool);
117
118     BLINK_EXPORT static void enableWebMIDI(bool);
119
120     BLINK_EXPORT static void enableXSLT(bool);
121
122     BLINK_EXPORT static void enableOverlayScrollbars(bool);
123
124     BLINK_EXPORT static void enableOverlayFullscreenVideo(bool);
125
126     BLINK_EXPORT static void enableSharedWorker(bool);
127
128     BLINK_EXPORT static void enablePreciseMemoryInfo(bool);
129
130     BLINK_EXPORT static void enableLayerSquashing(bool);
131
132     BLINK_EXPORT static void enableShowModalDialog(bool);
133
134     BLINK_EXPORT static void enableLaxMixedContentChecking(bool);
135
136 private:
137     WebRuntimeFeatures();
138 };
139
140 } // namespace blink
141
142 #endif