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

Side by Side Diff: Source/bindings/v8/RuntimeEnabledFeatures.h

Issue 13980003: Add animation support for WebP images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Enclose under runtime flag Created 7 years, 8 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHea derEnabled = isEnabled; } 240 static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHea derEnabled = isEnabled; }
241 static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled ; } 241 static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled ; }
242 242
243 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } 243 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; }
244 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna bled = isEnabled; } 244 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna bled = isEnabled; }
245 245
246 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental WebSocketEnabled = isEnabled; } 246 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental WebSocketEnabled = isEnabled; }
247 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE nabled; } 247 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE nabled; }
248 248
249 static void setAnimatedWebPEnabled(bool isEnabled) { isAnimatedWebPEnabled = isEnabled; }
250 static bool animatedWebPEnabled() { return isAnimatedWebPEnabled; }
251
249 private: 252 private:
250 // Never instantiate. 253 // Never instantiate.
251 RuntimeEnabledFeatures() { } 254 RuntimeEnabledFeatures() { }
252 255
253 static bool isLocalStorageEnabled; 256 static bool isLocalStorageEnabled;
254 static bool isSessionStorageEnabled; 257 static bool isSessionStorageEnabled;
255 static bool isWebkitNotificationsEnabled; 258 static bool isWebkitNotificationsEnabled;
256 static bool isApplicationCacheEnabled; 259 static bool isApplicationCacheEnabled;
257 static bool isGeolocationEnabled; 260 static bool isGeolocationEnabled;
258 static bool isIndexedDBEnabled; 261 static bool isIndexedDBEnabled;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 326
324 static bool areSeamlessIFramesEnabled; 327 static bool areSeamlessIFramesEnabled;
325 328
326 static bool isFontLoadEventsEnabled; 329 static bool isFontLoadEventsEnabled;
327 330
328 static bool isWebPInAcceptHeaderEnabled; 331 static bool isWebPInAcceptHeaderEnabled;
329 332
330 static bool isDirectoryUploadEnabled; 333 static bool isDirectoryUploadEnabled;
331 334
332 static bool isExperimentalWebSocketEnabled; 335 static bool isExperimentalWebSocketEnabled;
336
337 static bool isAnimatedWebPEnabled;
333 }; 338 };
334 339
335 } // namespace WebCore 340 } // namespace WebCore
336 341
337 #endif // RuntimeEnabledFeatures_h 342 #endif // RuntimeEnabledFeatures_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698