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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 { | 177 { |
178 #if ENABLE(WEB_AUDIO) | 178 #if ENABLE(WEB_AUDIO) |
179 return RuntimeEnabledFeatures::webkitAudioContextEnabled(); | 179 return RuntimeEnabledFeatures::webkitAudioContextEnabled(); |
180 #else | 180 #else |
181 return false; | 181 return false; |
182 #endif | 182 #endif |
183 } | 183 } |
184 | 184 |
185 void WebRuntimeFeatures::enableTouch(bool enable) | 185 void WebRuntimeFeatures::enableTouch(bool enable) |
186 { | 186 { |
187 #if ENABLE(TOUCH_EVENTS) | |
188 RuntimeEnabledFeatures::setTouchEnabled(enable); | 187 RuntimeEnabledFeatures::setTouchEnabled(enable); |
189 #endif | |
190 } | 188 } |
191 | 189 |
192 bool WebRuntimeFeatures::isTouchEnabled() | 190 bool WebRuntimeFeatures::isTouchEnabled() |
193 { | 191 { |
194 #if ENABLE(TOUCH_EVENTS) | |
195 return RuntimeEnabledFeatures::touchEnabled(); | 192 return RuntimeEnabledFeatures::touchEnabled(); |
196 #else | |
197 return false; | |
198 #endif | |
199 } | 193 } |
200 | 194 |
201 void WebRuntimeFeatures::enableDeviceMotion(bool enable) | 195 void WebRuntimeFeatures::enableDeviceMotion(bool enable) |
202 { | 196 { |
203 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); | 197 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); |
204 } | 198 } |
205 | 199 |
206 bool WebRuntimeFeatures::isDeviceMotionEnabled() | 200 bool WebRuntimeFeatures::isDeviceMotionEnabled() |
207 { | 201 { |
208 return RuntimeEnabledFeatures::deviceMotionEnabled(); | 202 return RuntimeEnabledFeatures::deviceMotionEnabled(); |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 { | 578 { |
585 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 579 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
586 } | 580 } |
587 | 581 |
588 bool WebRuntimeFeatures::isExperimentalWebSocketEnabled() | 582 bool WebRuntimeFeatures::isExperimentalWebSocketEnabled() |
589 { | 583 { |
590 return RuntimeEnabledFeatures::experimentalWebSocketEnabled(); | 584 return RuntimeEnabledFeatures::experimentalWebSocketEnabled(); |
591 } | 585 } |
592 | 586 |
593 } // namespace WebKit | 587 } // namespace WebKit |
OLD | NEW |