OLD | NEW |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 static bool openDatabaseEnabled(); | 126 static bool openDatabaseEnabled(); |
127 static bool openDatabaseSyncEnabled(); | 127 static bool openDatabaseSyncEnabled(); |
128 | 128 |
129 #if ENABLE(WEB_AUDIO) | 129 #if ENABLE(WEB_AUDIO) |
130 static void setWebkitAudioContextEnabled(bool isEnabled) { isWebAudioEnabled
= isEnabled; } | 130 static void setWebkitAudioContextEnabled(bool isEnabled) { isWebAudioEnabled
= isEnabled; } |
131 static bool webkitAudioContextEnabled() { return isWebAudioEnabled; } | 131 static bool webkitAudioContextEnabled() { return isWebAudioEnabled; } |
132 static bool webkitOfflineAudioContextEnabled() { return isWebAudioEnabled; } | 132 static bool webkitOfflineAudioContextEnabled() { return isWebAudioEnabled; } |
133 #endif | 133 #endif |
134 | 134 |
| 135 static void setWebMIDIEnabled(bool isEnabled) { isWebMIDIEnabled = isEnabled
; } |
| 136 static bool webMIDIEnabled() { return isWebMIDIEnabled; } |
| 137 |
135 static bool touchEnabled() { return isTouchEnabled; } | 138 static bool touchEnabled() { return isTouchEnabled; } |
136 static void setTouchEnabled(bool isEnabled) { isTouchEnabled = isEnabled; } | 139 static void setTouchEnabled(bool isEnabled) { isTouchEnabled = isEnabled; } |
137 | 140 |
138 static void setDeviceMotionEnabled(bool isEnabled) { isDeviceMotionEnabled =
isEnabled; } | 141 static void setDeviceMotionEnabled(bool isEnabled) { isDeviceMotionEnabled =
isEnabled; } |
139 static bool deviceMotionEnabled() { return isDeviceMotionEnabled; } | 142 static bool deviceMotionEnabled() { return isDeviceMotionEnabled; } |
140 static bool deviceMotionEventEnabled() { return isDeviceMotionEnabled; } | 143 static bool deviceMotionEventEnabled() { return isDeviceMotionEnabled; } |
141 static bool ondevicemotionEnabled() { return isDeviceMotionEnabled; } | 144 static bool ondevicemotionEnabled() { return isDeviceMotionEnabled; } |
142 | 145 |
143 static void setDeviceOrientationEnabled(bool isEnabled) { isDeviceOrientatio
nEnabled = isEnabled; } | 146 static void setDeviceOrientationEnabled(bool isEnabled) { isDeviceOrientatio
nEnabled = isEnabled; } |
144 static bool deviceOrientationEnabled() { return isDeviceOrientationEnabled;
} | 147 static bool deviceOrientationEnabled() { return isDeviceOrientationEnabled;
} |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // Never instantiate. | 255 // Never instantiate. |
253 RuntimeEnabledFeatures() { } | 256 RuntimeEnabledFeatures() { } |
254 | 257 |
255 static bool isLocalStorageEnabled; | 258 static bool isLocalStorageEnabled; |
256 static bool isSessionStorageEnabled; | 259 static bool isSessionStorageEnabled; |
257 static bool isWebkitNotificationsEnabled; | 260 static bool isWebkitNotificationsEnabled; |
258 static bool isApplicationCacheEnabled; | 261 static bool isApplicationCacheEnabled; |
259 static bool isGeolocationEnabled; | 262 static bool isGeolocationEnabled; |
260 static bool isIndexedDBEnabled; | 263 static bool isIndexedDBEnabled; |
261 static bool isWebAudioEnabled; | 264 static bool isWebAudioEnabled; |
| 265 static bool isWebMIDIEnabled; |
262 static bool isTouchEnabled; | 266 static bool isTouchEnabled; |
263 static bool isDeviceMotionEnabled; | 267 static bool isDeviceMotionEnabled; |
264 static bool isDeviceOrientationEnabled; | 268 static bool isDeviceOrientationEnabled; |
265 static bool isSpeechInputEnabled; | 269 static bool isSpeechInputEnabled; |
266 static bool isCanvasPathEnabled; | 270 static bool isCanvasPathEnabled; |
267 static bool isCSSExclusionsEnabled; | 271 static bool isCSSExclusionsEnabled; |
268 static bool isCSSRegionsEnabled; | 272 static bool isCSSRegionsEnabled; |
269 static bool isCSSCompositingEnabled; | 273 static bool isCSSCompositingEnabled; |
270 static bool isLangAttributeAwareFormControlUIEnabled; | 274 static bool isLangAttributeAwareFormControlUIEnabled; |
271 static bool isScriptedSpeechEnabled; | 275 static bool isScriptedSpeechEnabled; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 static bool isWebPInAcceptHeaderEnabled; | 335 static bool isWebPInAcceptHeaderEnabled; |
332 | 336 |
333 static bool isDirectoryUploadEnabled; | 337 static bool isDirectoryUploadEnabled; |
334 | 338 |
335 static bool isExperimentalWebSocketEnabled; | 339 static bool isExperimentalWebSocketEnabled; |
336 }; | 340 }; |
337 | 341 |
338 } // namespace WebCore | 342 } // namespace WebCore |
339 | 343 |
340 #endif // RuntimeEnabledFeatures_h | 344 #endif // RuntimeEnabledFeatures_h |
OLD | NEW |