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

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

Issue 2356193002: [Sensors] Adding chrome flag to enable Generic Sensor based APIs (Closed)
Patch Set: rebased Created 4 years, 2 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 void WebRuntimeFeatures::enableFileSystem(bool enable) { 129 void WebRuntimeFeatures::enableFileSystem(bool enable) {
130 RuntimeEnabledFeatures::setFileSystemEnabled(enable); 130 RuntimeEnabledFeatures::setFileSystemEnabled(enable);
131 } 131 }
132 132
133 void WebRuntimeFeatures::enableGamepadExtensions(bool enable) { 133 void WebRuntimeFeatures::enableGamepadExtensions(bool enable) {
134 RuntimeEnabledFeatures::setGamepadExtensionsEnabled(enable); 134 RuntimeEnabledFeatures::setGamepadExtensionsEnabled(enable);
135 } 135 }
136 136
137 void WebRuntimeFeatures::enableGenericSensor(bool enable) {
138 RuntimeEnabledFeatures::setSensorEnabled(enable);
139 }
140
137 void WebRuntimeFeatures::enableInputMultipleFieldsUI(bool enable) { 141 void WebRuntimeFeatures::enableInputMultipleFieldsUI(bool enable) {
138 RuntimeEnabledFeatures::setInputMultipleFieldsUIEnabled(enable); 142 RuntimeEnabledFeatures::setInputMultipleFieldsUIEnabled(enable);
139 } 143 }
140 144
141 void WebRuntimeFeatures::enableMediaCapture(bool enable) { 145 void WebRuntimeFeatures::enableMediaCapture(bool enable) {
142 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable); 146 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable);
143 } 147 }
144 148
145 void WebRuntimeFeatures::enableMediaDocumentDownloadButton(bool enable) { 149 void WebRuntimeFeatures::enableMediaDocumentDownloadButton(bool enable) {
146 RuntimeEnabledFeatures::setMediaDocumentDownloadButtonEnabled(enable); 150 RuntimeEnabledFeatures::setMediaDocumentDownloadButtonEnabled(enable);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 336 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
333 } 337 }
334 338
335 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( 339 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(
336 bool enable) { 340 bool enable) {
337 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( 341 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(
338 enable); 342 enable);
339 } 343 }
340 344
341 } // namespace blink 345 } // namespace blink
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698