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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: DeviceLight API working fine (make the flag back to status=experimental) Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index 26b0afd933790205d564e4dc4f4b4393acac915b..9cc98ddea038ed58ab9732bd76a196e1ae60dabd 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -79,6 +79,16 @@ void WebRuntimeFeatures::enableDeviceOrientation(bool enable)
RuntimeEnabledFeatures::setDeviceOrientationEnabled(enable);
}
+void WebRuntimeFeatures::enableDeviceLight(bool enable)
+{
+ RuntimeEnabledFeatures::setDeviceLightEnabled(enable);
+}
+
+bool WebRuntimeFeatures::isDeviceLightEnabled()
+{
+ return RuntimeEnabledFeatures::deviceLightEnabled();
+}
abarth-chromium 2014/03/04 18:59:32 Why is this needed?
riju_ 2014/03/05 15:47:27 Done.
+
void WebRuntimeFeatures::enableDialogElement(bool enable)
{
RuntimeEnabledFeatures::setDialogElementEnabled(enable);

Powered by Google App Engine
This is Rietveld 408576698