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 |
82 void WebRuntimeFeatures::enableDialogElement(bool enable) | 87 void WebRuntimeFeatures::enableDialogElement(bool enable) |
83 { | 88 { |
84 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | 89 RuntimeEnabledFeatures::setDialogElementEnabled(enable); |
85 } | 90 } |
86 | 91 |
87 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) | 92 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) |
88 { | 93 { |
89 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); | 94 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); |
90 // FIXME: Hack to allow MediaKeyError to be enabled for either version. | 95 // FIXME: Hack to allow MediaKeyError to be enabled for either version. |
91 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( | 96 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 { | 303 { |
299 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 304 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
300 } | 305 } |
301 | 306 |
302 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) | 307 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) |
303 { | 308 { |
304 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); | 309 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); |
305 } | 310 } |
306 | 311 |
307 } // namespace blink | 312 } // namespace blink |
OLD | NEW |