Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: Source/WebKit/chromium/public/WebRuntimeFeatures.h

Issue 13980003: Add animation support for WebP images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adapt to recent animation code changes Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "../../../../public/webview/WebRuntimeFeatures.h" 1 /*
Noel Gordon 2013/06/07 08:06:21 Looks to me like this file was re-written by you.
urvang (Google) 2013/06/10 22:11:59 Ohh, I thought I had take care of this. Fixed now.
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 "../../../../public/platform/WebCommon.h"
35
36 namespace WebKit {
37
38 // This class is used to enable runtime features of Blink.
39 // All features are disabled by default.
40 // Most clients should call enableStableFeatures() to enable
41 // features Blink has made API commitments to.
42 class WebRuntimeFeatures {
43 public:
44 WEBKIT_EXPORT static void enableStableFeatures(bool);
45 WEBKIT_EXPORT static void enableExperimentalFeatures(bool);
46 WEBKIT_EXPORT static void enableTestOnlyFeatures(bool);
47
48 // FIXME: Delete after removing all callers in Content.
49 static void enableFullScreenAPI(bool enable) { enableFullscreen(enable); }
50 static void enableIndexedDatabase(bool enable) { enableIndexedDB(enable); }
51
52 WEBKIT_EXPORT static void enableApplicationCache(bool);
53 WEBKIT_EXPORT static bool isApplicationCacheEnabled();
54
55 WEBKIT_EXPORT static void enableCanvasPath(bool);
56 WEBKIT_EXPORT static bool isCanvasPathEnabled();
57
58 WEBKIT_EXPORT static void enableCSSCompositing(bool);
59 WEBKIT_EXPORT static bool isCSSCompositingEnabled();
60
61 WEBKIT_EXPORT static void enableCSSExclusions(bool);
62 WEBKIT_EXPORT static bool isCSSExclusionsEnabled();
63
64 WEBKIT_EXPORT static void enableCSSRegions(bool);
65 WEBKIT_EXPORT static bool isCSSRegionsEnabled();
66
67 WEBKIT_EXPORT static void enableCSSTouchAction(bool);
68 WEBKIT_EXPORT static bool isCSSTouchActionEnabled();
69
70 WEBKIT_EXPORT static void enableCustomDOMElements(bool);
71 WEBKIT_EXPORT static bool isCustomDOMElementsEnabled();
72
73 WEBKIT_EXPORT static void enableDatabase(bool);
74 WEBKIT_EXPORT static bool isDatabaseEnabled();
75
76 WEBKIT_EXPORT static void enableDeviceMotion(bool);
77 WEBKIT_EXPORT static bool isDeviceMotionEnabled();
78
79 WEBKIT_EXPORT static void enableDeviceOrientation(bool);
80 WEBKIT_EXPORT static bool isDeviceOrientationEnabled();
81
82 WEBKIT_EXPORT static void enableDialogElement(bool);
83 WEBKIT_EXPORT static bool isDialogElementEnabled();
84
85 WEBKIT_EXPORT static void enableDirectoryUpload(bool);
86 WEBKIT_EXPORT static bool isDirectoryUploadEnabled();
87
88 WEBKIT_EXPORT static void enableEncryptedMedia(bool);
89 WEBKIT_EXPORT static bool isEncryptedMediaEnabled();
90
91 WEBKIT_EXPORT static void enableLegacyEncryptedMedia(bool);
92 WEBKIT_EXPORT static bool isLegacyEncryptedMediaEnabled();
93
94 WEBKIT_EXPORT static void enableExperimentalCanvasFeatures(bool);
95 WEBKIT_EXPORT static bool isExperimentalCanvasFeaturesEnabled();
96
97 WEBKIT_EXPORT static void enableExperimentalContentSecurityPolicyFeatures(bo ol);
98 WEBKIT_EXPORT static bool isExperimentalContentSecurityPolicyFeaturesEnabled ();
99
100 WEBKIT_EXPORT static void enableExperimentalShadowDOM(bool);
101 WEBKIT_EXPORT static bool isExperimentalShadowDOMEnabled();
102
103 WEBKIT_EXPORT static void enableExperimentalWebSocket(bool);
104 WEBKIT_EXPORT static bool isExperimentalWebSocketEnabled();
105
106 WEBKIT_EXPORT static void enableFileSystem(bool);
107 WEBKIT_EXPORT static bool isFileSystemEnabled();
108
109 WEBKIT_EXPORT static void enableFontLoadEvents(bool);
110 WEBKIT_EXPORT static bool isFontLoadEventsEnabled();
111
112 WEBKIT_EXPORT static void enableFullscreen(bool);
113 WEBKIT_EXPORT static bool isFullscreenEnabled();
114
115 WEBKIT_EXPORT static void enableGamepad(bool);
116 WEBKIT_EXPORT static bool isGamepadEnabled();
117
118 WEBKIT_EXPORT static void enableGeolocation(bool);
119 WEBKIT_EXPORT static bool isGeolocationEnabled();
120
121 WEBKIT_EXPORT static void enableIMEAPI(bool);
122 WEBKIT_EXPORT static bool isIMEAPIEnabled();
123
124 WEBKIT_EXPORT static void enableIndexedDB(bool);
125 WEBKIT_EXPORT static bool isIndexedDBEnabled();
126
127 WEBKIT_EXPORT static void enableInputTypeWeek(bool);
128 WEBKIT_EXPORT static bool isInputTypeWeekEnabled();
129
130 WEBKIT_EXPORT static void enableJavaScriptI18NAPI(bool);
131 WEBKIT_EXPORT static bool isJavaScriptI18NAPIEnabled();
132
133 WEBKIT_EXPORT static void enableLazyLayout(bool);
134 WEBKIT_EXPORT static bool isLazyLayoutEnabled();
135
136 WEBKIT_EXPORT static void enableLocalStorage(bool);
137 WEBKIT_EXPORT static bool isLocalStorageEnabled();
138
139 WEBKIT_EXPORT static void enableMediaPlayer(bool);
140 WEBKIT_EXPORT static bool isMediaPlayerEnabled();
141
142 WEBKIT_EXPORT static void enableMediaSource(bool);
143 WEBKIT_EXPORT static bool isMediaSourceEnabled();
144
145 WEBKIT_EXPORT static void enableWebKitMediaSource(bool);
146 WEBKIT_EXPORT static bool isWebKitMediaSourceEnabled();
147
148 WEBKIT_EXPORT static void enableMediaStream(bool);
149 WEBKIT_EXPORT static bool isMediaStreamEnabled();
150
151 WEBKIT_EXPORT static void enableNotifications(bool);
152 WEBKIT_EXPORT static bool isNotificationsEnabled();
153
154 WEBKIT_EXPORT static void enablePagePopup(bool);
155 WEBKIT_EXPORT static bool isPagePopupEnabled();
156
157 WEBKIT_EXPORT static void enableParseSVGAsHTML(bool);
158 WEBKIT_EXPORT static bool isParseSVGAsHTMLEnabled();
159
160 WEBKIT_EXPORT static void enablePeerConnection(bool);
161 WEBKIT_EXPORT static bool isPeerConnectionEnabled();
162
163 WEBKIT_EXPORT static void enableQuota(bool);
164 WEBKIT_EXPORT static bool isQuotaEnabled();
165
166 WEBKIT_EXPORT static void enableRequestAutocomplete(bool);
167 WEBKIT_EXPORT static bool isRequestAutocompleteEnabled();
168
169 WEBKIT_EXPORT static void enableScriptedSpeech(bool);
170 WEBKIT_EXPORT static bool isScriptedSpeechEnabled();
171
172 WEBKIT_EXPORT static void enableSeamlessIFrames(bool);
173 WEBKIT_EXPORT static bool isSeamlessIFramesEnabled();
174
175 WEBKIT_EXPORT static void enableSessionStorage(bool);
176 WEBKIT_EXPORT static bool isSessionStorageEnabled();
177
178 WEBKIT_EXPORT static void enableSpeechInput(bool);
179 WEBKIT_EXPORT static bool isSpeechInputEnabled();
180
181 WEBKIT_EXPORT static void enableSpeechSynthesis(bool);
182 WEBKIT_EXPORT static bool isSpeechSynthesisEnabled();
183
184 WEBKIT_EXPORT static void enableStyleScoped(bool);
185 WEBKIT_EXPORT static bool isStyleScopedEnabled();
186
187 WEBKIT_EXPORT static void enableTouch(bool);
188 WEBKIT_EXPORT static bool isTouchEnabled();
189
190 WEBKIT_EXPORT static void enableVideoTrack(bool);
191 WEBKIT_EXPORT static bool isVideoTrackEnabled();
192
193 WEBKIT_EXPORT static void enableWebAudio(bool);
194 WEBKIT_EXPORT static bool isWebAudioEnabled();
195
196 WEBKIT_EXPORT static void enableWebGLDraftExtensions(bool);
197 WEBKIT_EXPORT static bool isWebGLDraftExtensionsEnabled();
198
199 WEBKIT_EXPORT static void enableWebMIDI(bool);
200 WEBKIT_EXPORT static bool isWebMIDIEnabled();
201
202 WEBKIT_EXPORT static void enableWebPInAcceptHeader(bool);
203 WEBKIT_EXPORT static bool isWebPInAcceptHeaderEnabled();
204
205 WEBKIT_EXPORT static void enableDataListElement(bool);
206 WEBKIT_EXPORT static bool isDataListElementEnabled();
207
208 WEBKIT_EXPORT static void enableAnimatedWebP(bool);
209 WEBKIT_EXPORT static bool isAnimatedWebPEnabled();
210
211 private:
212 WebRuntimeFeatures();
213 };
214
215 } // namespace WebKit
216
217 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/WebKitUnitTests.gyp ('k') | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698