| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void WebRuntimeFeatures::enableApplicationCache(bool enable) | 65 void WebRuntimeFeatures::enableApplicationCache(bool enable) |
| 66 { | 66 { |
| 67 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); | 67 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void WebRuntimeFeatures::enableDatabase(bool enable) | 70 void WebRuntimeFeatures::enableDatabase(bool enable) |
| 71 { | 71 { |
| 72 RuntimeEnabledFeatures::setDatabaseEnabled(enable); | 72 RuntimeEnabledFeatures::setDatabaseEnabled(enable); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void WebRuntimeFeatures::enableDeviceMotion(bool enable) | |
| 76 { | |
| 77 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); | |
| 78 } | |
| 79 | |
| 80 void WebRuntimeFeatures::enableDeviceOrientation(bool enable) | |
| 81 { | |
| 82 RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable); | |
| 83 } | |
| 84 | |
| 85 void WebRuntimeFeatures::enableDialogElement(bool enable) | 75 void WebRuntimeFeatures::enableDialogElement(bool enable) |
| 86 { | 76 { |
| 87 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | 77 RuntimeEnabledFeatures::setDialogElementEnabled(enable); |
| 88 } | 78 } |
| 89 | 79 |
| 90 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) | 80 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) |
| 91 { | 81 { |
| 92 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); | 82 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); |
| 93 // FIXME: Hack to allow MediaKeyError to be enabled for either version. | 83 // FIXME: Hack to allow MediaKeyError to be enabled for either version. |
| 94 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( | 84 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 { | 286 { |
| 297 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 287 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
| 298 } | 288 } |
| 299 | 289 |
| 300 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) | 290 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) |
| 301 { | 291 { |
| 302 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); | 292 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); |
| 303 } | 293 } |
| 304 | 294 |
| 305 } // namespace blink | 295 } // namespace blink |
| OLD | NEW |