Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 713 | 713 |
| 714 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) | 714 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) |
| 715 WebRuntimeFeatures::enableEncryptedMedia(true); | 715 WebRuntimeFeatures::enableEncryptedMedia(true); |
| 716 | 716 |
| 717 if (command_line.HasSwitch(switches::kDisableLegacyEncryptedMedia)) | 717 if (command_line.HasSwitch(switches::kDisableLegacyEncryptedMedia)) |
| 718 WebRuntimeFeatures::enableLegacyEncryptedMedia(false); | 718 WebRuntimeFeatures::enableLegacyEncryptedMedia(false); |
| 719 | 719 |
| 720 if (command_line.HasSwitch(switches::kEnableWebMIDI)) | 720 if (command_line.HasSwitch(switches::kEnableWebMIDI)) |
| 721 WebRuntimeFeatures::enableWebMIDI(true); | 721 WebRuntimeFeatures::enableWebMIDI(true); |
| 722 | 722 |
| 723 if (command_line.HasSwitch(switches::kEnableDeviceMotion)) | 723 // if (command_line.HasSwitch(switches::kEnableDeviceMotion)) |
|
darin (slow to review)
2013/06/17 05:27:46
nit: unintended change?
timvolodine
2013/06/17 20:10:55
Done.
| |
| 724 WebRuntimeFeatures::enableDeviceMotion(true); | 724 WebRuntimeFeatures::enableDeviceMotion(true); |
| 725 | 725 |
| 726 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) | 726 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) |
| 727 WebRuntimeFeatures::enableDeviceOrientation(false); | 727 WebRuntimeFeatures::enableDeviceOrientation(false); |
| 728 | 728 |
| 729 if (command_line.HasSwitch(switches::kDisableSpeechInput)) | 729 if (command_line.HasSwitch(switches::kDisableSpeechInput)) |
| 730 WebRuntimeFeatures::enableSpeechInput(false); | 730 WebRuntimeFeatures::enableSpeechInput(false); |
| 731 | 731 |
| 732 if (command_line.HasSwitch(switches::kDisableFileSystem)) | 732 if (command_line.HasSwitch(switches::kDisableFileSystem)) |
| 733 WebRuntimeFeatures::enableFileSystem(false); | 733 WebRuntimeFeatures::enableFileSystem(false); |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1379 | 1379 |
| 1380 void RenderThreadImpl::SetFlingCurveParameters( | 1380 void RenderThreadImpl::SetFlingCurveParameters( |
| 1381 const std::vector<float>& new_touchpad, | 1381 const std::vector<float>& new_touchpad, |
| 1382 const std::vector<float>& new_touchscreen) { | 1382 const std::vector<float>& new_touchscreen) { |
| 1383 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1383 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1384 new_touchscreen); | 1384 new_touchscreen); |
| 1385 | 1385 |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 } // namespace content | 1388 } // namespace content |
| OLD | NEW |