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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 WebRuntimeFeatures::enableWebAudio( | 578 WebRuntimeFeatures::enableWebAudio( |
579 !command_line.HasSwitch(switches::kDisableWebAudio) && | 579 !command_line.HasSwitch(switches::kDisableWebAudio) && |
580 media::IsMediaLibraryInitialized()); | 580 media::IsMediaLibraryInitialized()); |
581 | 581 |
582 WebRuntimeFeatures::enablePushState(true); | 582 WebRuntimeFeatures::enablePushState(true); |
583 | 583 |
584 WebRuntimeFeatures::enableTouch( | 584 WebRuntimeFeatures::enableTouch( |
585 command_line.HasSwitch(switches::kEnableTouchEvents)); | 585 command_line.HasSwitch(switches::kEnableTouchEvents)); |
586 | 586 |
587 WebRuntimeFeatures::enableDeviceMotion( | 587 WebRuntimeFeatures::enableDeviceMotion( |
588 command_line.HasSwitch(switches::kEnableDeviceMotion)); | 588 !command_line.HasSwitch(switches::kDisableDeviceMotion)); |
589 | 589 |
590 WebRuntimeFeatures::enableDeviceOrientation( | 590 WebRuntimeFeatures::enableDeviceOrientation( |
591 !command_line.HasSwitch(switches::kDisableDeviceOrientation)); | 591 !command_line.HasSwitch(switches::kDisableDeviceOrientation)); |
592 | 592 |
593 WebRuntimeFeatures::enableSpeechInput( | 593 WebRuntimeFeatures::enableSpeechInput( |
594 !command_line.HasSwitch(switches::kDisableSpeechInput)); | 594 !command_line.HasSwitch(switches::kDisableSpeechInput)); |
595 | 595 |
596 WebRuntimeFeatures::enableScriptedSpeech( | 596 WebRuntimeFeatures::enableScriptedSpeech( |
597 command_line.HasSwitch(switches::kEnableScriptedSpeech)); | 597 command_line.HasSwitch(switches::kEnableScriptedSpeech)); |
598 | 598 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 | 1025 |
1026 scoped_refptr<base::MessageLoopProxy> | 1026 scoped_refptr<base::MessageLoopProxy> |
1027 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1027 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1028 DCHECK(message_loop() == MessageLoop::current()); | 1028 DCHECK(message_loop() == MessageLoop::current()); |
1029 if (!file_thread_.get()) { | 1029 if (!file_thread_.get()) { |
1030 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1030 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1031 file_thread_->Start(); | 1031 file_thread_->Start(); |
1032 } | 1032 } |
1033 return file_thread_->message_loop_proxy(); | 1033 return file_thread_->message_loop_proxy(); |
1034 } | 1034 } |
OLD | NEW |