| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 void WebRuntimeFeatures::enableTouch(bool enable) | 342 void WebRuntimeFeatures::enableTouch(bool enable) |
| 343 { | 343 { |
| 344 RuntimeEnabledFeatures::setTouchEnabled(enable); | 344 RuntimeEnabledFeatures::setTouchEnabled(enable); |
| 345 } | 345 } |
| 346 | 346 |
| 347 bool WebRuntimeFeatures::isTouchEnabled() | 347 bool WebRuntimeFeatures::isTouchEnabled() |
| 348 { | 348 { |
| 349 return RuntimeEnabledFeatures::touchEnabled(); | 349 return RuntimeEnabledFeatures::touchEnabled(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 void WebRuntimeFeatures::enableWebAnimationsCSS() | 352 void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable) |
| 353 { | 353 { |
| 354 RuntimeEnabledFeatures::setWebAnimationsEnabled(true); | 354 RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeat
ures::webAnimationsSVGEnabled()); |
| 355 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true); | 355 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(enable); |
| 356 } | 356 } |
| 357 | 357 |
| 358 void WebRuntimeFeatures::enableWebAnimationsSVG() | 358 void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable) |
| 359 { | 359 { |
| 360 RuntimeEnabledFeatures::setWebAnimationsEnabled(true); | 360 RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeat
ures::webAnimationsCSSEnabled()); |
| 361 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true); | 361 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable); |
| 362 } | 362 } |
| 363 | 363 |
| 364 void WebRuntimeFeatures::enableWebAudio(bool enable) | 364 void WebRuntimeFeatures::enableWebAudio(bool enable) |
| 365 { | 365 { |
| 366 RuntimeEnabledFeatures::setWebAudioEnabled(enable); | 366 RuntimeEnabledFeatures::setWebAudioEnabled(enable); |
| 367 } | 367 } |
| 368 | 368 |
| 369 bool WebRuntimeFeatures::isWebAudioEnabled() | 369 bool WebRuntimeFeatures::isWebAudioEnabled() |
| 370 { | 370 { |
| 371 return RuntimeEnabledFeatures::webAudioEnabled(); | 371 return RuntimeEnabledFeatures::webAudioEnabled(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 { | 440 { |
| 441 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); | 441 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); |
| 442 } | 442 } |
| 443 | 443 |
| 444 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) | 444 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) |
| 445 { | 445 { |
| 446 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); | 446 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); |
| 447 } | 447 } |
| 448 | 448 |
| 449 } // namespace blink | 449 } // namespace blink |
| OLD | NEW |