Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 void WebRuntimeFeatures::enableDeviceMotion(bool enable) | 75 void WebRuntimeFeatures::enableDeviceMotion(bool enable) |
| 76 { | 76 { |
| 77 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); | 77 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void WebRuntimeFeatures::enableDeviceOrientation(bool enable) | 80 void WebRuntimeFeatures::enableDeviceOrientation(bool enable) |
| 81 { | 81 { |
| 82 RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable); | 82 RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable); |
| 83 } | 83 } |
| 84 | 84 |
| 85 void WebRuntimeFeatures::enableDeviceLight(bool enable) | |
| 86 { | |
| 87 RuntimeEnabledFeatures::setDeviceLightEnabled(enable); | |
| 88 } | |
|
abarth-chromium
2014/03/18 22:48:53
There's no need for this function. It should just
riju_
2014/03/19 12:28:13
Done.
| |
| 89 | |
| 85 void WebRuntimeFeatures::enableDialogElement(bool enable) | 90 void WebRuntimeFeatures::enableDialogElement(bool enable) |
| 86 { | 91 { |
| 87 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | 92 RuntimeEnabledFeatures::setDialogElementEnabled(enable); |
| 88 } | 93 } |
| 89 | 94 |
| 90 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) | 95 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) |
| 91 { | 96 { |
| 92 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); | 97 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); |
| 93 // FIXME: Hack to allow MediaKeyError to be enabled for either version. | 98 // FIXME: Hack to allow MediaKeyError to be enabled for either version. |
| 94 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( | 99 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 296 { | 301 { |
| 297 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 302 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
| 298 } | 303 } |
| 299 | 304 |
| 300 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) | 305 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) |
| 301 { | 306 { |
| 302 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); | 307 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); |
| 303 } | 308 } |
| 304 | 309 |
| 305 } // namespace blink | 310 } // namespace blink |
| OLD | NEW |