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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 #if ENABLE(WEB_AUDIO) | 124 #if ENABLE(WEB_AUDIO) |
125 static void setWebkitAudioContextEnabled(bool isEnabled) { isWebAudioEnabled
= isEnabled; } | 125 static void setWebkitAudioContextEnabled(bool isEnabled) { isWebAudioEnabled
= isEnabled; } |
126 static bool webkitAudioContextEnabled() { return isWebAudioEnabled; } | 126 static bool webkitAudioContextEnabled() { return isWebAudioEnabled; } |
127 static bool webkitOfflineAudioContextEnabled() { return isWebAudioEnabled; } | 127 static bool webkitOfflineAudioContextEnabled() { return isWebAudioEnabled; } |
128 #endif | 128 #endif |
129 | 129 |
130 static void setWebMIDIEnabled(bool isEnabled) { isWebMIDIEnabled = isEnabled
; } | 130 static void setWebMIDIEnabled(bool isEnabled) { isWebMIDIEnabled = isEnabled
; } |
131 static bool webMIDIEnabled() { return isWebMIDIEnabled; } | 131 static bool webMIDIEnabled() { return isWebMIDIEnabled; } |
132 | 132 |
| 133 #if ENABLE(TOUCH_EVENTS) |
133 static bool touchEnabled() { return isTouchEnabled; } | 134 static bool touchEnabled() { return isTouchEnabled; } |
134 static void setTouchEnabled(bool isEnabled) { isTouchEnabled = isEnabled; } | 135 static void setTouchEnabled(bool isEnabled) { isTouchEnabled = isEnabled; } |
| 136 #endif |
135 | 137 |
136 static void setDeviceMotionEnabled(bool isEnabled) { isDeviceMotionEnabled =
isEnabled; } | 138 static void setDeviceMotionEnabled(bool isEnabled) { isDeviceMotionEnabled =
isEnabled; } |
137 static bool deviceMotionEnabled() { return isDeviceMotionEnabled; } | 139 static bool deviceMotionEnabled() { return isDeviceMotionEnabled; } |
138 static bool deviceMotionEventEnabled() { return isDeviceMotionEnabled; } | 140 static bool deviceMotionEventEnabled() { return isDeviceMotionEnabled; } |
139 static bool ondevicemotionEnabled() { return isDeviceMotionEnabled; } | 141 static bool ondevicemotionEnabled() { return isDeviceMotionEnabled; } |
140 | 142 |
141 static void setDeviceOrientationEnabled(bool isEnabled) { isDeviceOrientatio
nEnabled = isEnabled; } | 143 static void setDeviceOrientationEnabled(bool isEnabled) { isDeviceOrientatio
nEnabled = isEnabled; } |
142 static bool deviceOrientationEnabled() { return isDeviceOrientationEnabled;
} | 144 static bool deviceOrientationEnabled() { return isDeviceOrientationEnabled;
} |
143 static bool deviceOrientationEventEnabled() { return isDeviceOrientationEnab
led; } | 145 static bool deviceOrientationEventEnabled() { return isDeviceOrientationEnab
led; } |
144 static bool ondeviceorientationEnabled() { return isDeviceOrientationEnabled
; } | 146 static bool ondeviceorientationEnabled() { return isDeviceOrientationEnabled
; } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 static bool isWebPInAcceptHeaderEnabled; | 330 static bool isWebPInAcceptHeaderEnabled; |
329 | 331 |
330 static bool isDirectoryUploadEnabled; | 332 static bool isDirectoryUploadEnabled; |
331 | 333 |
332 static bool isExperimentalWebSocketEnabled; | 334 static bool isExperimentalWebSocketEnabled; |
333 }; | 335 }; |
334 | 336 |
335 } // namespace WebCore | 337 } // namespace WebCore |
336 | 338 |
337 #endif // RuntimeEnabledFeatures_h | 339 #endif // RuntimeEnabledFeatures_h |
OLD | NEW |