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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 void WebRuntimeFeatures::enableDeviceMotion(bool enable) | 72 void WebRuntimeFeatures::enableDeviceMotion(bool enable) |
| 73 { | 73 { |
| 74 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); | 74 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void WebRuntimeFeatures::enableDeviceOrientation(bool enable) | 77 void WebRuntimeFeatures::enableDeviceOrientation(bool enable) |
| 78 { | 78 { |
| 79 RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable); | 79 RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void WebRuntimeFeatures::enableDeviceLight(bool enable) | |
| 83 { | |
| 84 RuntimeEnabledFeatures::setDeviceLightEnabled(enable); | |
| 85 } | |
| 86 | |
| 87 bool WebRuntimeFeatures::isDeviceLightEnabled() | |
| 88 { | |
| 89 return RuntimeEnabledFeatures::deviceLightEnabled(); | |
| 90 } | |
|
abarth-chromium
2014/03/04 18:59:32
Why is this needed?
riju_
2014/03/05 15:47:27
Done.
| |
| 91 | |
| 82 void WebRuntimeFeatures::enableDialogElement(bool enable) | 92 void WebRuntimeFeatures::enableDialogElement(bool enable) |
| 83 { | 93 { |
| 84 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | 94 RuntimeEnabledFeatures::setDialogElementEnabled(enable); |
| 85 } | 95 } |
| 86 | 96 |
| 87 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) | 97 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) |
| 88 { | 98 { |
| 89 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); | 99 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); |
| 90 // FIXME: Hack to allow MediaKeyError to be enabled for either version. | 100 // FIXME: Hack to allow MediaKeyError to be enabled for either version. |
| 91 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( | 101 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 { | 308 { |
| 299 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 309 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
| 300 } | 310 } |
| 301 | 311 |
| 302 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) | 312 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) |
| 303 { | 313 { |
| 304 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); | 314 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); |
| 305 } | 315 } |
| 306 | 316 |
| 307 } // namespace blink | 317 } // namespace blink |
| OLD | NEW |