Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: Source/web/WebRuntimeFeatures.cpp

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Work in Adam's comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698